/* Scoped to the Visual Story gallery. */
.project-story-gallery{position:relative;isolation:isolate;margin-top:36px;min-width:0}
.story-gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;scrollbar-width:none;border:1px solid #b995553d;background:#101510}
.story-gallery-track::-webkit-scrollbar{display:none}
.story-gallery-slide{flex:0 0 100%;min-width:0;margin:0;scroll-snap-align:start;scroll-snap-stop:always}
.story-gallery-slide img{display:block;width:100%;height:clamp(250px,48vw,610px);object-fit:contain;background:#101510;filter:none;opacity:1}
.story-gallery-slide figcaption{padding:14px 20px;color:#eee6d7;font-size:13px;line-height:1.5}
.story-gallery-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:18px 0;color:inherit}
.story-gallery-controls{display:flex;align-items:center;gap:18px}
.project-story-gallery button{border:1px solid #aa874d;background:transparent;color:inherit;cursor:pointer}
.story-gallery-controls button{width:46px;height:46px;border-radius:50%;font-size:22px}
.project-story-gallery button:focus-visible,.story-gallery-track:focus-visible{outline:2px solid #d8ad73;outline-offset:4px}
.story-gallery-thumbs{display:flex;gap:10px;overflow-x:auto;padding:5px 2px 14px;scrollbar-width:thin}
.story-gallery-thumbs button{flex:0 0 100px;padding:3px;opacity:.55}
.story-gallery-thumbs button[aria-current=true]{opacity:1;border-color:#d8ad73}
.story-gallery-thumbs img{width:100%;height:64px;object-fit:contain;display:block;filter:none}
.story-gallery-downloads{display:flex;flex-wrap:wrap;gap:14px 24px;margin:20px 0}
.story-gallery-downloads a{color:inherit;text-underline-offset:5px;font-size:13px}
@media(max-width:600px){.story-gallery-toolbar{align-items:flex-start;font-size:12px}.story-gallery-thumbs button{flex-basis:76px}.story-gallery-thumbs img{height:50px}.story-gallery-slide figcaption{padding:12px}.story-gallery-controls{gap:10px}}
@media(prefers-reduced-motion:reduce){.story-gallery-track{scroll-behavior:auto}}
