.product-gallery{padding-block:48px;border-bottom:1px solid var(--line)}
.product-gallery .section-heading{align-items:center;gap:24px;margin-bottom:24px}
.product-gallery h2{font-size:clamp(26px,3vw,32px)}
.product-gallery-tools{display:flex;align-items:center;gap:24px}
.product-gallery-count{flex-shrink:0;color:var(--muted);font-size:14px}
.product-gallery-controls{display:flex;gap:8px}
.product-gallery-controls button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:var(--radius-control);background:#fff;color:var(--ink);font-size:22px;line-height:1;cursor:pointer}
.product-gallery-controls button[hidden]{display:none}
.product-gallery-controls button:hover:not(:disabled){border-color:var(--wine);color:var(--wine)}
.product-gallery-controls button:disabled{color:#b9bdc5;cursor:default}
.product-gallery-rail{display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;padding-bottom:12px;scroll-snap-type:x proximity;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#c5c7ce transparent}
.product-gallery-photo{position:relative;display:block;flex:0 0 calc((100% - 56px)/5.25);overflow:hidden;border-radius:var(--radius-media);background:var(--paper);aspect-ratio:3/2;scroll-snap-align:start}
.product-gallery-photo:focus-visible{outline-offset:-4px}
.product-gallery-photo img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.product-gallery-photo:hover img{transform:scale(1.025)}
.product-gallery-zoom{position:absolute;right:7px;bottom:7px;display:grid;place-items:center;width:26px;height:26px;border-radius:var(--radius-control);background:#fffffff0;color:var(--ink);font-size:18px;line-height:1}
html.is-photo-open{overflow:hidden}
.photo-dialog{width:min(1120px,94vw);max-width:94vw;max-height:94dvh;overflow:hidden;padding:54px 16px 12px;background:#15171b;color:#fff}
.photo-dialog::backdrop{background:#101114ed}
.photo-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:160px}
.photo-dialog .photo-stage img{width:100%;height:min(72dvh,800px);max-height:calc(94dvh - 120px);object-fit:contain;touch-action:pan-y pinch-zoom;border-radius:0}
.photo-dialog .photo-close,.photo-previous,.photo-next{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #ffffff3d;border-radius:var(--radius-control);background:#15171bde;color:#fff;cursor:pointer;font-size:24px;line-height:1}
.photo-dialog .photo-close{top:5px;right:12px;font-size:29px;border-color:transparent;background:transparent}
.photo-previous,.photo-next{position:absolute;top:50%;transform:translateY(-50%)}
.photo-previous{left:8px}
.photo-next{right:8px}
.photo-previous[hidden],.photo-next[hidden]{display:none}
.photo-dialog button:hover{background:#3b3d40}
.photo-dialog button:focus-visible{outline-color:#fff;outline-offset:2px}
.photo-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 4px 0}
.photo-dialog .photo-footer p{margin:0;font-size:13px;line-height:1.5}
.photo-counter{flex-shrink:0;font-size:13px;font-variant-numeric:tabular-nums;color:#c1c4ca}
@media(max-width:1050px){.product-gallery-photo{flex-basis:calc((100% - 42px)/4.25)}}
@media(max-width:700px){.product-gallery-photo{flex-basis:calc((100% - 28px)/3.25)}}
@media(max-width:600px){.product-gallery{padding-block:32px}.product-gallery .section-heading{gap:16px;flex-wrap:wrap;margin-bottom:18px}.product-gallery-tools{gap:14px;margin-left:auto}.product-gallery-count{font-size:12px}.product-gallery-controls{gap:6px}.product-gallery-controls button{width:44px;height:44px}.product-gallery-rail{gap:10px}.product-gallery-photo{flex-basis:calc((100% - 20px)/2.25)}.product-gallery-zoom{width:24px;height:24px;right:5px;bottom:5px;font-size:17px}.photo-dialog{width:96vw;max-width:96vw;padding:52px 8px 12px}.photo-dialog .photo-stage img{height:65dvh;max-height:calc(94dvh - 135px)}.photo-previous{left:0}.photo-next{right:0}.photo-footer{gap:12px}.photo-dialog .photo-footer p,.photo-counter{font-size:12px}.photo-dialog .photo-close{top:4px;right:8px}}
@media(prefers-reduced-motion:reduce){.product-gallery-photo img{transition:none}.product-gallery-photo:hover img{transform:none}}
