
/* Mobile-sized product overlay and gallery; stop thumbnails from widening the dialog. */
html,body{max-width:100%;overflow-x:clip}
.detail-shade{box-sizing:border-box;max-width:100%;width:100vw;width:100dvw;overflow:hidden;overscroll-behavior:contain}
.detail-dialog{box-sizing:border-box;min-width:0;max-width:100%;width:min(870px,100%);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
.detail-body{box-sizing:border-box;min-width:0;width:100%;max-width:100%}
.detail-body>div,.detail-info,.detail-body .detail-image-button{box-sizing:border-box;min-width:0;max-width:100%}
.detail-info h2,.detail-description{max-width:100%;overflow-wrap:anywhere}
.gallery-thumbnails{box-sizing:border-box;display:flex;width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;white-space:nowrap;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;touch-action:pan-x}
.gallery-thumbnails>button{flex:0 0 70px}
.gallery-main{box-sizing:border-box;display:block;min-width:0;max-width:100%;width:100%;height:100%;object-fit:contain}
.photo-zoom-shade{box-sizing:border-box;position:fixed;inset:0;width:100vw;width:100dvw;height:100vh;height:100dvh;max-width:100%;overflow:hidden;padding:12px;justify-content:center;align-items:center}
.photo-zoom-shade .photo-zoom-image{box-sizing:border-box;display:block;width:auto;height:auto;max-width:calc(100dvw - 24px);max-height:calc(100dvh - 110px);object-fit:contain}
.zoom-gallery-nav{box-sizing:border-box;left:50%;transform:translateX(-50%);max-width:calc(100dvw - 24px)}
@media(max-width:670px){.detail-shade{padding:7px}.detail-dialog{width:100%;max-width:calc(100dvw - 14px);max-height:calc(100dvh - 14px);margin:0 auto}.detail-body{display:grid;grid-template-columns:minmax(0,1fr);gap:15px;padding:16px}.gallery-thumbnails{width:100%;max-width:100%}.gallery-thumbnails>button{flex-basis:62px}.detail-image-button{width:100%;max-width:100%;height:min(76vw,320px)}.photo-zoom-shade .photo-zoom-image{max-height:calc(100dvh - 120px)}}
