/* Uniform 4:5 windows on all product pages. Keep full images and the horizontal swipe. */
.b1-gallery-track .b1-gallery-slide {aspect-ratio:4/5!important;background:#F7F6F3!important;}
html body .page .b1-gallery-slide>img {object-fit:contain!important;}
@media(min-width:768px){.b1-gallery-host .b1-gallery{width:min(100%,56vh,576px);margin-inline:auto;}}
html body main .page .product-grid .product-card .product-media,
html body main .page .product-grid .product-card .product-media img {width:100%!important;aspect-ratio:4/5!important;height:auto!important;min-height:0!important;max-height:none!important;object-fit:contain!important;background:#F7F6F3!important;}
html body .page .b1-gallery-thumbs img{width:58px!important;height:72.5px!important;aspect-ratio:4/5!important;object-fit:contain!important;}

/* Full-width mobile product gallery, with the existing swipe and navigation. */
@media(max-width:767px){
 .b1-gallery-host .b1-gallery{width:var(--hx-screen-width,100vw);max-width:none;margin-inline-start:calc((100% - var(--hx-screen-width,100vw))/2)}
 .b1-gallery-track .b1-gallery-slide{flex-basis:100%}
 .b1-gallery-track::after{display:none}
 .b1-gallery-progress,.b1-gallery-nav{margin-inline:16px}
 #productMediaZoom{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0}
 #productMediaZoom .b1-zoom-viewport img{height:auto!important;width:100%;max-height:none;display:block}
}
