/* Victor Scientific — product gallery core bundle.
 * Base image presentation and lightbox UI. Final scroll-snap layout and no-motion policy live in vsc-product-page.css, loaded later.
 * Loaded only by the Product Details page.
 */

/* ===== Original module: vsc-product-instant.css ===== */
/* Victor Scientific — immediate product gallery paint.
 * The primary gallery is native scroll-snap and paints immediately without a carousel plugin.
 * Page reveal stays off. The only allowed image motion is a 130ms image-only
 * opacity entrance and a desktop pointer-following hover zoom.
 */
body.product-refresh-page .product-gallery-column,
body.product-refresh-page .product-gallery-column .details_slider,
body.product-refresh-page .product-gallery-column .dimage_item,
body.product-refresh-page .product-gallery-column .indicator_thumb,
body.product-refresh-page .product-gallery-column .indicator-item {
    opacity: 1 !important;
    visibility: visible !important;
}
body.product-refresh-page .product-gallery-column .dimage_item {
    animation: none !important;
    transition: none !important;
}

body.product-refresh-page .product-gallery-column > .details_slider.vsc-product-gallery {
    align-items: stretch;
    margin: 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--site-border, #dce7f5);
}
body.product-refresh-page .product-gallery-column .vsc-product-gallery > .dimage_item {
    background: #fff;
}
body.product-refresh-page .product-gallery-column .dimage_item img.block__pic {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    object-fit: contain;
    background: #fff;
    -webkit-user-drag: none;
    user-select: none;
}
body.product-refresh-page .product-gallery-column .product-gallery-video-item {
    min-height: 0;
}
body.product-refresh-page .product-gallery-column .product-gallery-video,
body.product-refresh-page .product-gallery-column .product-gallery-youtube-launch,
body.product-refresh-page .product-gallery-column .product-gallery-youtube {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    background: #fff;
}
body.product-refresh-page .product-gallery-column > .indicator_thumb {
    display: flex;
    gap: 10px;
    overflow: auto;
    scrollbar-width: thin;
}
body.product-refresh-page .product-gallery-column .indicator-item {
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid #e0e5ec;
    box-shadow: none !important;
    outline: none;
}
body.product-refresh-page .product-gallery-column .indicator-item.is-active,
body.product-refresh-page .product-gallery-column .indicator-item[aria-current="true"] {
    border-color: #0a438e !important;
    box-shadow: 0 0 0 2px rgba(10,67,142,.12) !important;
}
body.product-refresh-page .product-gallery-column .indicator-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    body.product-refresh-page .product-gallery-column > .details_slider.vsc-product-gallery {
        border-radius: 12px;
    }
    body.product-refresh-page .product-gallery-column > .indicator_thumb {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 1px 1px 5px;
        gap: 8px;
    }
    body.product-refresh-page .product-gallery-column .indicator-item {
        flex: 0 0 68px;
        width: 68px;
        height: 68px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.product-refresh-page .product-gallery-column,
    body.product-refresh-page .product-gallery-column *,
    body.product-refresh-page .product-gallery-column *::before,
    body.product-refresh-page .product-gallery-column *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Original module: vsc-product-image-viewer.css ===== */
/* Product image viewer — instant open, adjacent navigation controls. */
.vsc-product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 62px 86px 58px;
    background: rgba(8, 15, 28, .96);
    overscroll-behavior: contain;
    touch-action: none;
}
.vsc-product-lightbox.is-open { display: flex; }

.vsc-product-lightbox__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: calc(100vw - 172px);
    max-height: calc(100vh - 120px);
    margin: 0 auto;
}

.vsc-product-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 18px 60px rgba(0,0,0,.35);
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}

.vsc-product-lightbox__close,
.vsc-product-lightbox__nav {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 50%;
    color: #fff;
    background: rgba(20, 28, 42, .78);
    font: 30px/1 Arial, sans-serif;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.vsc-product-lightbox__close {
    top: 16px;
    right: 20px;
    font-size: 32px;
}
.vsc-product-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    line-height: 1;
    transition: background-color 120ms ease;
}
.vsc-product-lightbox__prev { left: -58px; }
.vsc-product-lightbox__next { right: -58px; }
.vsc-product-lightbox__close:hover,
.vsc-product-lightbox__nav:hover {
    background: rgba(255,255,255,.22);
}
.vsc-product-lightbox__nav:disabled {
    opacity: .4;
    cursor: default;
}
.vsc-product-lightbox__counter {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(20, 28, 42, .78);
    font: 600 13px/1.2 Arial, sans-serif;
    letter-spacing: .03em;
    white-space: nowrap;
}
.vsc-product-lightbox.is-single .vsc-product-lightbox__nav,
.vsc-product-lightbox.is-single .vsc-product-lightbox__counter {
    display: none;
}

@media (max-width: 767.98px) {
    .vsc-product-lightbox {
        padding: 58px 10px 54px;
    }
    .vsc-product-lightbox__stage {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 116px);
    }
    .vsc-product-lightbox__image {
        max-width: 100%;
        max-height: calc(100vh - 116px);
    }
    .vsc-product-lightbox__close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
    }
    /* On narrow screens the arrows sit just inside the image's left/right edges. */
    .vsc-product-lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 32px;
        background: rgba(20,28,42,.66);
    }
    .vsc-product-lightbox__prev { left: 7px; }
    .vsc-product-lightbox__next { right: 7px; }
    .vsc-product-lightbox__counter { bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .vsc-product-lightbox,
    .vsc-product-lightbox * {
        animation: none !important;
        transition: none !important;
    }
}

