#product-gallery{background:#fff;padding:12px 12px 16px;border-bottom:5px solid #eaeaf4}
#product-gallery .product-gallery-stage{display:flex;align-items:center;justify-content:center;width:100%;height:clamp(190px,43vh,410px);overflow:hidden}
#product-gallery #product-gallery-main{display:block;width:100%;height:100%;object-fit:contain;max-width:100%;margin:0}
#product-gallery .product-gallery-label{font-size:14px;color:#88889f;margin:12px 0 8px}
#product-gallery .product-gallery-thumbnails{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;max-width:420px}
#product-gallery button{padding:4px;border:1px solid #e1e1e1;border-radius:7px;background:white;aspect-ratio:1;min-width:0;cursor:pointer}
#product-gallery button[aria-pressed="true"]{border:2px solid #9f2089}
#product-gallery button:focus-visible{outline:2px solid #9f2089;outline-offset:2px}
#product-gallery button img{width:100%;height:100%;object-fit:contain;display:block}

#product-gallery .product-gallery-stage{position:relative;touch-action:pan-y}
#product-gallery .gallery-prev,#product-gallery .gallery-next{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;aspect-ratio:auto;border-radius:50%;background:rgba(255,255,255,.9);color:#9f2089;z-index:1;box-shadow:0 2px 8px #0002}
#product-gallery .gallery-prev{left:4px}
#product-gallery .gallery-next{right:4px}
#product-gallery button[hidden]{display:none}
#product-gallery .gallery-position{float:right}
