.product-gallery{min-width:0}
.gallery-open{display:block;width:100%;position:relative;border-radius:4px}
.gallery-open:focus-visible,.gallery-thumbs a:focus-visible,.product-gallery button:focus-visible{outline:3px solid #2362a2;outline-offset:4px}
.gallery-zoom{position:absolute;right:0;top:0;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#fff;font-size:22px;box-shadow:0 2px 10px #17212b0b}
.gallery-controls{position:absolute;bottom:14px;right:18px;display:flex;align-items:center;gap:12px}
.gallery-controls[hidden]{display:none}
.gallery-controls button,.gallery-lightbox-controls button{display:grid;place-items:center;width:44px;height:44px;border:1px solid #dce1e4;border-radius:50%;background:#fff;color:#252a2d;font:inherit;font-size:21px;cursor:pointer}
.gallery-controls button:hover,.gallery-lightbox-controls button:hover{background:var(--yellow,#ffd22b)}
.gallery-controls span{font-size:11px;min-width:36px;text-align:center;font-variant-numeric:tabular-nums}
.gallery-thumbs{display:flex;gap:10px;overflow-x:auto;padding:12px 4px 8px;scrollbar-width:thin}
.gallery-thumbs a{flex:0 0 86px;display:block;border:1px solid #e2e6e8;border-radius:6px;background:#fff;padding:6px}
.gallery-thumbs a[aria-current]{border:2px solid #d4aa00;padding:5px;background:#fffdf2}
.gallery-thumbs img{display:block;width:72px;height:64px;object-fit:contain}
.gallery-lightbox{width:min(1160px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:min(850px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:56px 48px 78px;border:0;border-radius:12px;background:#fff;overflow:hidden;box-sizing:border-box}
.gallery-lightbox::backdrop{background:#121b24d9}
.gallery-lightbox>img{display:block;width:100%;height:100%;object-fit:contain}
.gallery-close{position:absolute;right:12px;top:10px;width:44px;height:44px;border:0;border-radius:50%;background:#f0f3f4;color:#252a2d;font-size:32px;line-height:1;cursor:pointer}
.gallery-lightbox-controls{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:20px}
.gallery-lightbox-controls span{font-size:12px;min-width:44px;text-align:center;font-variant-numeric:tabular-nums}
body:has(.gallery-lightbox[open]){overflow:hidden}
@media(max-width:760px){.product-gallery .product-photo{padding-bottom:68px}.product-gallery .product-photo>span{bottom:29px;font-size:7px;left:14px;letter-spacing:.5px}.gallery-controls{right:12px;gap:7px;bottom:12px}.gallery-controls button{width:40px;height:40px}.gallery-thumbs a{flex-basis:74px}.gallery-thumbs img{width:60px;height:56px}.gallery-lightbox{padding:58px 12px 80px;width:calc(100vw - 20px);max-width:calc(100vw - 20px);height:calc(100dvh - 32px)}.gallery-zoom{width:36px;height:36px}}
