.product-main-photo{position:relative;display:block;aspect-ratio:1;background:#fff;border:1px solid var(--line)}
.product-main-photo img{padding:0;mix-blend-mode:normal;object-fit:contain}
.photo-expand{position:absolute;bottom:14px;right:14px;width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line);background:#ffffffed;color:#222;font-size:26px;border-radius:50%}
.detail-thumbs{gap:12px;padding:16px 2px 4px}
.detail-thumbs button{flex:0 0 84px;height:84px;padding:2px;border-radius:6px}
.detail-thumbs img{width:100%;height:100%;object-fit:contain;border-radius:4px}
.detail-thumbs button:focus-visible,.product-main-photo:focus-visible{outline:3px solid #657456;outline-offset:3px}
body.gallery-open{overflow:hidden}
#product-gallery{box-sizing:border-box;width:min(1160px,calc(100vw - 32px));height:calc(100dvh - 32px);max-width:none;max-height:none;margin:auto;padding:0;border:0;border-radius:8px;background:#faf9f6;color:#20221c;overflow:hidden}
#product-gallery::backdrop{background:#111c}
.gallery-top{height:64px;display:flex;align-items:center;justify-content:space-between;padding:10px 18px;border-bottom:1px solid #e4e2da}
.gallery-count{font-size:14px;font-variant-numeric:tabular-nums}
.gallery-close{font-size:30px;width:44px;height:44px;border-radius:50%;background:#eeece5;line-height:1}
.gallery-stage{height:calc(100% - 64px);display:flex;align-items:center;justify-content:center;position:relative;padding:16px 58px}
.gallery-image{width:100%;height:100%;object-fit:contain}
.gallery-prev,.gallery-next{position:absolute;top:calc(50% - 24px);width:44px;height:48px;font-size:35px;border:1px solid #dcdad2;border-radius:50%;background:#fff}
.gallery-prev{left:8px}.gallery-next{right:8px}
#product-gallery button:focus-visible{outline:3px solid #657456;outline-offset:2px}
@media(max-width:640px){.detail-thumbs{gap:10px}.detail-thumbs button{flex-basis:calc((100% - 30px)/4);height:auto;aspect-ratio:1}.photo-expand{width:38px;height:38px;bottom:10px;right:10px}#product-gallery{width:100vw;height:100dvh;border-radius:0}.gallery-stage{padding:0 4px 60px}.gallery-prev,.gallery-next{top:auto;bottom:12px}.gallery-prev{left:calc(50% - 58px)}.gallery-next{right:calc(50% - 58px)}}
