/* Gallery sizing is independent of the product-page image layout. */
.zoom_wrap-popup { overscroll-behavior: contain; }
.zoom_wrap-popup .centre,
.zoom_wrap-popup .centre > .col { min-width: 0; min-height: 0; }
.zoom_wrap-popup .zoom_subslider-list {
    min-height: 0;
    max-height: 100%;
    overscroll-behavior: contain;
    touch-action: pan-y;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scrollbar-width: auto;
    scrollbar-color: #bcbcbc #373737;
}
.zoom_wrap-popup .zoom_subslider-list::-webkit-scrollbar { width: 12px; }
.zoom_wrap-popup .zoom_subslider-list::-webkit-scrollbar-track { background: #373737; border-radius: 6px; }
.zoom_wrap-popup .zoom_subslider-list::-webkit-scrollbar-thumb { background: #bcbcbc; border: 2px solid #373737; border-radius: 6px; }
.zoom_wrap-popup .zoom_subslider-slider { position: relative; }
.zoom_wrap-popup .dxf-scrollbar-ready .zoom_subslider-list { scrollbar-width: none; scrollbar-gutter: auto; }
.zoom_wrap-popup .dxf-scrollbar-ready .zoom_subslider-list::-webkit-scrollbar { display: none; }
.dxf-gallery-scrollbar { position: absolute; top: 0; right: 1px; bottom: 0; width: 12px; border-radius: 6px; background: #353535; touch-action: none; cursor: default; }
.dxf-gallery-scrollbar:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dxf-gallery-scrollthumb { position: absolute; left: 2px; right: 2px; top: 0; min-height: 24px; background: #bcbcbc; border-radius: 5px; cursor: default; }
.dxf-gallery-scrollbar:active .dxf-gallery-scrollthumb { background: #ddd; cursor: default; }
.zoom_wrap-popup .zoom_subslider-img:not(.video) img {
    width: 100%; height: 100%; object-fit: cover;
}
.zoom_wrap-popup .zoom_subslider-img .video_icon {
    width: 68px; height: 68px; object-fit: contain;
}
@media (min-width: 1024px) {
    .zoom_wrap-popup { padding: 48px 0 24px; }
    .zoom_wrap-popup .zoom_big-img { height: 100%; }
    .zoom_wrap-popup .zoom_big-img .regular_image {
        width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain;
    }
    .zoom_wrap-popup .zoom_big-img video {
        width: 100%; height: 100%; max-height: 100%; object-fit: contain;
    }
    .zoom_wrap-popup .zoom_subslider-list { width: 100%; margin: 0; align-content: start; }
}
@media (prefers-reduced-motion: reduce) {
    .zoom_wrap-popup .zoom_subslider-list { scroll-behavior: auto; }
}
