/* V7 isolated folder gallery; do not reuse .gallery-grid or .server-gallery-item selectors */
body.s67-child-site #gallery .s67-photo-app{width:100%;max-width:100%;}
body.s67-child-site #gallery .s67-photo-filters{display:flex;gap:9px;flex-wrap:wrap;margin:22px 0 26px}
body.s67-child-site #gallery .s67-photo-filters button{padding:10px 19px;border:1px solid #cad2c3;border-radius:999px;background:white;color:#273033;cursor:pointer;font-weight:700;line-height:1.3}
body.s67-child-site #gallery .s67-photo-filters button.is-active{background:#a7d23d;color:#20292d;border-color:#a7d23d}
body.s67-child-site #gallery .s67-photo-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;min-width:0}
body.s67-child-site #gallery .s67-photo-tile{display:block!important;position:relative!important;width:100%!important;min-width:0!important;aspect-ratio:16/10!important;border:0!important;padding:0!important;background:#e9eee9!important;overflow:hidden!important;border-radius:16px!important;cursor:pointer}
body.s67-child-site #gallery .s67-photo-tile[hidden],body.s67-child-site #gallery [data-s67-more][hidden],body.s67-child-site #gallery .s67-photo-empty[hidden]{display:none!important}
body.s67-child-site #gallery .s67-photo-tile img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:0!important}
body.s67-child-site #gallery .s67-photo-more-wrap{text-align:center;margin:25px 0 10px}
body.s67-child-site #gallery .s67-photo-empty{padding:18px;color:#525b57}
body.s67-child-site .s67-photo-dialog{position:fixed;max-width:95vw;max-height:95dvh;border:0;border-radius:16px;padding:16px;background:#111;overflow:auto;z-index:30000}
body.s67-child-site .s67-photo-dialog::backdrop{background:rgba(0,0,0,.88)}
body.s67-child-site .s67-photo-dialog img{display:block;max-width:min(1100px,88vw);max-height:80dvh;width:auto;height:auto;object-fit:contain}
body.s67-child-site .s67-photo-close{display:block;float:right;border:0;border-radius:100%;width:42px;height:42px;font-size:26px;background:white;color:#111;cursor:pointer;margin-bottom:8px}
body.s67-child-site .s67-photo-diagnostics{margin:22px 0;font-size:12px;overflow-wrap:anywhere}
@media(max-width:900px){body.s67-child-site #gallery .s67-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){body.s67-child-site #gallery .s67-photo-grid{grid-template-columns:1fr!important;gap:12px!important}body.s67-child-site #gallery .s67-photo-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}body.s67-child-site #gallery .s67-photo-filters button{flex:none}body.s67-child-site #gallery .s67-photo-filters::-webkit-scrollbar{display:none}}
