/* SimpleCMS public content modules: gallery, mini front page, content list, search */
.scms-gallery-grid,.scms-gallery-list{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.scms-gallery-list.scms-cols-1{grid-template-columns:1fr}
.scms-gallery-list.scms-cols-2{grid-template-columns:repeat(2,1fr)}
.scms-gallery-list.scms-cols-3{grid-template-columns:repeat(3,1fr)}
.scms-gallery-list.scms-cols-4{grid-template-columns:repeat(4,1fr)}
.scms-gallery-list.scms-cols-5{grid-template-columns:repeat(5,1fr)}
.scms-gallery-list.scms-cols-6{grid-template-columns:repeat(6,1fr)}
@media (max-width:768px){.scms-gallery-list[class*="scms-cols-"]{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.scms-gallery-list[class*="scms-cols-"]{grid-template-columns:1fr}}
.scms-gallery-item,.scms-gallery-card{display:block;text-decoration:none;color:inherit;position:relative}
.scms-gallery-item img,.scms-gallery-thumb img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;border-radius:4px}
.scms-gallery-thumb{display:block;background:#e9ecef;border-radius:4px;overflow:hidden}
.scms-gallery-noimg{display:block;aspect-ratio:4/3}
.scms-gallery-caption{display:block;font-size:.85rem;padding:.25rem 0;color:#555}
.scms-gallery-card-title{display:block;font-weight:600;margin-top:.5rem}
.scms-gallery-count{display:block;font-size:.8rem;color:#777}
.scms-gallery-card:hover .scms-gallery-thumb,.scms-gallery-item:hover img{opacity:.88}

.scms-lb{position:fixed;inset:0;background:rgba(0,0,0,.9);z-index:2000;display:flex;align-items:center;justify-content:center}
.scms-lb[hidden]{display:none}
.scms-lb-fig{margin:0;max-width:90vw;max-height:90vh;text-align:center}
.scms-lb-img{max-width:90vw;max-height:80vh;display:block;margin:0 auto}
.scms-lb-cap{color:#fff;padding:.75rem;font-size:.95rem}
.scms-lb button{position:absolute;background:none;border:0;color:#fff;font-size:2.2rem;cursor:pointer;padding:.5rem 1rem}
.scms-lb-close{top:.5rem;right:.75rem}
.scms-lb-prev{left:.5rem;top:50%}
.scms-lb-next{right:.5rem;top:50%}
.scms-lb-single .scms-lb-prev,.scms-lb-single .scms-lb-next{display:none}
body.scms-lb-open{overflow:hidden}

/* Mini front page */
.scms-mfp-title{margin-bottom:1rem}
.scms-mfp-grid{display:grid;gap:1.25rem}
.scms-mfp-cols-1{grid-template-columns:1fr}
.scms-mfp-cols-2{grid-template-columns:repeat(2,1fr)}
.scms-mfp-cols-3{grid-template-columns:repeat(3,1fr)}
.scms-mfp-cols-4{grid-template-columns:repeat(4,1fr)}
.scms-mfp-cols-5{grid-template-columns:repeat(5,1fr)}
.scms-mfp-cols-6{grid-template-columns:repeat(6,1fr)}
@media (max-width:900px){.scms-mfp-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:540px){.scms-mfp-grid{grid-template-columns:1fr}}
.scms-mfp-item{display:flex;flex-direction:column;gap:.6rem;background:#fff;border:1px solid #e1e1e1;padding:.6rem .6rem 1rem;min-width:0}
.scms-mfp-head{display:flex;gap:.85rem;align-items:flex-start}
.scms-mfp-img{flex:0 0 104px;max-width:40%}
.scms-mfp-img img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}
.scms-mfp-meta{min-width:0;flex:1}
.scms-mfp-item h3{font-size:1.05rem;line-height:1.25;margin:0 0 .35rem;font-weight:700;color:var(--primary,#3f4499)}
.scms-mfp-item h3 a{text-decoration:none;color:inherit;overflow-wrap:anywhere}
.scms-mfp-item p{margin:0;font-size:.9rem;color:#777;line-height:1.5}
.scms-mfp-date{display:block;font-size:.8rem;color:#777}
.scms-mfp-title{text-transform:uppercase;color:var(--primary,#3f4499);border-bottom:3px double #d6d6d6;padding-bottom:.25rem}
.scms-mfp-more{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:space-between;margin-top:1.5rem;padding:.75rem 1rem;background:#f1f3f5;border-radius:4px}
.scms-mfp-more-title{font-weight:700}
.scms-mfp-more-btns{display:flex;gap:.5rem;flex-wrap:wrap}
.scms-mfp-btn{display:inline-block;padding:.4rem .9rem;border-radius:3px;background:#0d6efd;color:#fff;text-decoration:none;font-size:.9rem}
.scms-mfp-btn:hover{opacity:.88}

/* Content list */
.scms-cl-list{list-style:none;padding:0;margin:0}
.scms-cl-list li{display:flex;justify-content:space-between;gap:1rem;padding:.5rem 0;border-bottom:1px solid #e5e5e5}
.scms-cl-list a{text-decoration:none}
.scms-cl-date{color:#777;font-size:.85rem;white-space:nowrap}

/* Search */
.scms-search-form{display:flex;gap:.5rem;margin-bottom:1.25rem}
.scms-search-form input[type=search]{flex:1;padding:.5rem .75rem;border:1px solid #ced4da;border-radius:3px}
.scms-search-form button{padding:.5rem 1rem;border:0;border-radius:3px;background:#0d6efd;color:#fff;cursor:pointer}
.scms-search-results{list-style:none;padding:0;margin:0}
.scms-search-results li{padding:.75rem 0;border-bottom:1px solid #e5e5e5}
.scms-search-results h3{font-size:1.1rem;margin:0 0 .25rem}
.scms-search-type{font-size:.75rem;text-transform:uppercase;color:#777;margin-right:.5rem}
.scms-search-msg{color:#555}
.scms-search-results mark{padding:0 .1em}
