/* Photo slider: one featured frame and a separate strip of fixed-size thumbnails. */
.product-gallery .gallery-slider{display:flex;align-items:stretch;aspect-ratio:auto;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;scroll-behavior:smooth;border-radius:10px;background:var(--soft);touch-action:pan-x pan-y pinch-zoom}
.product-gallery .gallery-slider::-webkit-scrollbar{display:none}
.product-gallery .gallery-slide{flex:0 0 100%;min-width:0;margin:0;scroll-snap-align:start;scroll-snap-stop:always;display:flex;flex-direction:column}
.product-gallery .gallery-photo{position:relative;flex:none;aspect-ratio:3/2;width:100%;background:var(--color-photo-stage);overflow:hidden}
.product-gallery .gallery-photo img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain;user-select:none;-webkit-user-drag:none}
.product-gallery .gallery-slide figcaption{flex:1;margin:0;padding:14px 16px;font-size:.8125rem;line-height:1.55;color:var(--muted);background:var(--soft);overflow-wrap:anywhere}
.product-gallery .gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px}
.product-gallery .gallery-count{font-family:var(--font-mono);font-size:.8125rem;color:var(--muted)}
.product-gallery .gallery-arrows{display:flex;gap:8px}
.product-gallery .gallery-arrow{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:10px;border:0;border-radius:50%;background:var(--soft);color:var(--ink);transition:background-color var(--duration-220),color var(--duration-220)}
.product-gallery .gallery-arrow:hover,.product-gallery .gallery-arrow:focus-visible{background:var(--yellow);color:var(--ink)}
.product-gallery [data-gallery-prev] .icon{rotate:180deg}
.product-gallery .gallery-thumbs{position:relative;display:flex;flex-wrap:nowrap;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;padding:3px 0 8px;margin-top:12px;scrollbar-width:thin}
.product-gallery .gallery-thumb{position:relative;display:block;flex:0 0 84px;width:84px;height:64px;padding:5px;border:1px solid var(--line);border-radius:8px;background:var(--soft);overflow:hidden;transition:background-color var(--duration-220),border-color var(--duration-220)}
.product-gallery .gallery-thumb img{width:100%;height:100%;max-height:none;object-fit:contain;pointer-events:none}
.product-gallery .gallery-thumb:hover,.product-gallery .gallery-thumb:focus-visible,.product-gallery .gallery-thumb[aria-current=true]{background:var(--yellow);border-color:transparent;text-decoration:none}
.product-gallery .gallery-slider:focus-visible{outline:none;box-shadow:0 0 0 3px var(--yellow)}
.product-gallery .gallery-slider[data-dragging]{scroll-snap-type:none;scroll-behavior:auto;cursor:grabbing;user-select:none}
@media(hover:hover){.product-gallery .gallery-slider{cursor:grab}}
@media(max-width:700px){.product-gallery .gallery-thumb{flex-basis:72px;width:72px;height:56px}.product-gallery .gallery-slide figcaption{font-size:.75rem;padding:12px}.product-gallery .gallery-thumbs{gap:8px}}
@media(prefers-reduced-motion:reduce){.product-gallery .gallery-slider{scroll-behavior:auto}.product-gallery .gallery-arrow,.product-gallery .gallery-thumb{transition:none}}
