/* Click-to-open image viewer for the main product gallery. */
html body.single-product .product-image-slider .img-thumbnail img,
html body.single-product .product-image-slider .img-thumbnail:hover img {
    cursor: zoom-in !important;
    transform: none !important;
    transition: filter .2s ease !important;
}

html body.calista-product-lightbox-open {
    overflow: hidden !important;
}

html body.single-product .calista-product-lightbox {
    position: fixed !important;
    z-index: 1000000 !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(10px, 3vw, 38px) !important;
    box-sizing: border-box !important;
    padding: clamp(52px, 7vh, 76px) clamp(14px, 4vw, 64px) 30px !important;
    background: rgba(13, 11, 15, .96) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity .18s ease, visibility .18s ease !important;
}

html body.single-product .calista-product-lightbox.is-open {
    opacity: 1 !important;
    visibility: visible !important;
}

html body.single-product .calista-product-lightbox__figure {
    display: flex !important;
    flex: 0 1 1300px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    max-width: calc(100vw - 150px) !important;
    max-height: 100% !important;
    margin: 0 !important;
}

html body.single-product .calista-product-lightbox__visual {
    position: relative !important;
    display: inline-flex !important;
    max-width: 100% !important;
    max-height: 82vh !important;
    align-items: center !important;
    justify-content: center !important;
}

html body.single-product .calista-product-lightbox__image {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 82vh !important;
    object-fit: contain !important;
    border: 1px solid rgba(238, 231, 239, .16) !important;
    border-radius: 5px !important;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .38) !important;
}

html body.single-product .calista-product-lightbox__caption {
    margin-top: 12px !important;
    color: #c9bdce !important;
    font-size: 12px !important;
    text-align: center !important;
}

html body.single-product .calista-product-lightbox button {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: grid !important;
    flex: 0 0 auto !important;
    place-items: center !important;
    box-sizing: border-box !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 1px solid rgba(238, 231, 239, .3) !important;
    border-radius: 50% !important;
    background: rgba(31, 27, 34, .92) !important;
    box-shadow: none !important;
    color: #f4edf5 !important;
    font: 30px/1 Georgia, serif !important;
    cursor: pointer !important;
}

html body.single-product .calista-product-lightbox .calista-product-lightbox__nav {
    width: 34px !important;
    height: 48px !important;
    min-width: 34px !important;
    min-height: 48px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: rgba(244, 237, 245, .88) !important;
    font-size: 42px !important;
}

html body.single-product .calista-product-lightbox .calista-product-lightbox__nav:hover,
html body.single-product .calista-product-lightbox .calista-product-lightbox__nav:focus-visible {
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    outline: 0 !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

html body.single-product .calista-product-lightbox .calista-product-lightbox__nav:focus-visible {
    text-shadow: 0 0 10px rgba(238, 231, 239, .72) !important;
}

html body.single-product .calista-product-lightbox button:hover,
html body.single-product .calista-product-lightbox button:focus-visible {
    border-color: rgba(220, 205, 223, .72) !important;
    background: #332a37 !important;
    color: #fff !important;
    outline: 2px solid rgba(220, 205, 223, .42) !important;
    outline-offset: 3px !important;
}

html body.single-product .calista-product-lightbox__close {
    position: absolute !important;
    top: -18px !important;
    right: -12px !important;
}

html body.single-product .calista-product-lightbox__close svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    overflow: visible !important;
}

html body.single-product .calista-product-lightbox__close svg path {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
}

html body.single-product .calista-product-lightbox button[hidden],
html body.single-product .calista-product-lightbox__caption[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    html body.single-product .calista-product-lightbox {
        gap: 8px !important;
        padding: 56px 10px 24px !important;
    }

    html body.single-product .calista-product-lightbox__figure {
        max-width: calc(100vw - 112px) !important;
    }

    html body.single-product .calista-product-lightbox__visual,
    html body.single-product .calista-product-lightbox__image {
        max-height: 78vh !important;
    }

    html body.single-product .calista-product-lightbox button {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }

    html body.single-product .calista-product-lightbox__close {
        top: -15px !important;
        right: -9px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body.single-product .calista-product-lightbox {
        transition: none !important;
    }
}
