
.gallery-view-toggle{display:flex;gap:8px;margin:0 0 18px;flex-wrap:wrap}
.gallery-view-toggle button{font:600 13px Barlow,Arial,sans-serif;color:#edf1f7;padding:12px 20px;border:1px solid #ffffff40;border-radius:999px;background:linear-gradient(145deg,#ffffff20,#ffffff08);cursor:pointer}
.gallery-view-toggle button[aria-pressed=true]{color:#111820;background:linear-gradient(140deg,#f7faff,#b4bfce);box-shadow:inset 0 1px #fff,0 5px 18px #0003}
.gallery-controls[hidden]{display:none!important}
#gallery-track.is-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;overflow:visible;scroll-snap-type:none;background:transparent;border:0;padding:0;border-radius:0}
#gallery-track.is-grid .gallery-slide{width:100%;height:auto;aspect-ratio:1;min-width:0;border-radius:14px;overflow:hidden;border:1px solid #ffffff30;background:#13181e}
#gallery-track.is-grid .gallery-open{display:block;width:100%;height:100%;padding:0}
#gallery-track.is-grid img{width:100%;height:100%;object-fit:cover;transition:transform .2s}
#gallery-track.is-grid .gallery-open:hover img{transform:scale(1.035)}
@media(max-width:1000px){#gallery-track.is-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){#gallery-track.is-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}
@media(prefers-reduced-motion:reduce){#gallery-track.is-grid img{transition:none}}
