/* Screenshot galleries inherit the landing page's emerald palette and Inter type. */
.showcase-gallery { margin-top:2.5rem; min-width:0; }
.gallery-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.gallery-heading h3 { font-size:1.15rem; line-height:1.35; }
.gallery-heading p, .gallery-note { color:var(--text-secondary); font-size:.875rem; line-height:1.55; max-width:75ch; }
.gallery-heading p { margin-top:.3rem; }
.gallery-controls { display:flex; align-items:center; gap:.45rem; flex-shrink:0; }
.gallery-control, .lightbox-control { border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg-elevated); color:var(--text-primary); padding:.55rem .75rem; cursor:pointer; font:inherit; }
.gallery-control:hover, .lightbox-control:hover { border-color:var(--color-primary); }
.gallery-control:disabled { opacity:.4; cursor:default; }
.gallery-position { color:var(--text-secondary); font-size:.8rem; min-width:3.5rem; text-align:center; }
.gallery-track { display:flex; gap:1rem; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-inline:contain; scrollbar-width:thin; scrollbar-color:var(--color-primary) var(--bg-surface); padding:3px 3px 1rem; scroll-padding:3px; }
.gallery-shot { flex:0 0 100%; min-width:0; scroll-snap-align:start; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--bg-elevated); overflow:hidden; margin:0; }
.shot-open { display:block; width:100%; border:0; padding:0; background:#f3f5f5; color:#183333; cursor:zoom-in; text-align:left; }
.shot-open picture { display:block; }
.shot-open img { display:block; width:100%; height:auto; aspect-ratio:36/25; object-fit:contain; background:#f3f5f5; }
.gallery-shot figcaption { padding:1rem 1.1rem 1.15rem; }
.gallery-shot h4 { font-size:1rem; margin:0 0 .4rem; line-height:1.4; }
.gallery-shot p { color:var(--text-secondary); font-size:.875rem; line-height:1.55; }
.gallery-note { margin:.8rem 0 0; }
.shot-open:focus-visible, .gallery-track:focus-visible, .gallery-control:focus-visible, .lightbox-control:focus-visible, .lightbox-link:focus-visible { outline:3px solid var(--color-primary); outline-offset:3px; }
.hero-visual::after { display:none; }
.hero-visual .shot-open { border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-xl); }
.hero-visual .shot-open img { aspect-ratio:36/25; object-fit:contain; border-radius:0; box-shadow:none; }
.hero-shot-caption { margin-top:.75rem; color:var(--text-secondary); font-size:.8rem; }
.vcard-media .shot-open img { aspect-ratio:36/25; object-fit:contain; }
.spot-visual.gallery-visual { min-width:0; padding:1rem; }
.gallery-visual .showcase-gallery { margin-top:0; }
.gallery-visual .gallery-shot { flex-basis:100%; }
.gallery-visual .gallery-heading { align-items:flex-start; }
.gallery-visual .gallery-heading h3 { font-size:1rem; }
.gallery-visual .gallery-controls { flex-wrap:wrap; justify-content:flex-end; }
.showcase-notice { color:var(--text-secondary); border-left:3px solid var(--color-primary); padding:.65rem 1rem; margin-top:1.5rem; font-size:.9rem; line-height:1.55; }
.lightbox { color:var(--text-primary); background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-md); width:min(96vw,1650px); max-width:96vw; max-height:96dvh; padding:0; margin:auto; overflow:auto; }
.lightbox::backdrop { background:rgba(0,0,0,.85); }
.lightbox-body { padding:1rem; }
.lightbox-bar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.75rem; margin-bottom:.8rem; }
.lightbox-bar h2 { font-size:1rem; max-width:65ch; }
.lightbox-actions { display:flex; gap:.5rem; align-items:center; }
.lightbox picture { display:block; background:#f3f5f5; }
.lightbox img { display:block; width:100%; max-height:72dvh; object-fit:contain; margin:auto; }
.lightbox-caption { color:var(--text-secondary); margin-top:.8rem; font-size:.9rem; line-height:1.55; max-width:100ch; }
.lightbox-link { color:var(--color-primary); font-size:.875rem; }
.screenshot-credit { margin:1.25rem auto 0; color:var(--text-secondary); font-size:.8rem; max-width:var(--max-width); padding:0 1.5rem; }
@media (max-width:600px) {
 .gallery-heading { flex-wrap:wrap; align-items:flex-start; }
 .gallery-controls { margin-left:auto; }
 .gallery-shot { flex-basis:100%; }
 .gallery-shot figcaption { padding:.9rem; }
 .showcase-gallery { margin-top:2rem; }
 .lightbox { width:96vw; }
 .lightbox-body { padding:.75rem; }
 .lightbox img { max-height:64dvh; }
 .gallery-visual .gallery-heading { display:block; }
 .gallery-visual .gallery-controls { margin-top:.75rem; }
}
@media (prefers-reduced-motion:reduce) { .gallery-track { scroll-behavior:auto; } }
