/* Product gallery lightbox — enlarged image overlay with navigation */

.mu-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 72px;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mu-lightbox--open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.mu-lightbox__backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.88) !important;
    border-radius: 0px !important;
    cursor: pointer;
}

.mu-lightbox__stage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(92vw, 1200px);
    max-height: min(82vh, 900px);
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

.mu-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: min(82vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.mu-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #8d6a6a80 !important;
    color: #fff;
    cursor: pointer;
    box-shadow: none;
    transition: opacity 0.2s ease;
}

.mu-lightbox__nav:hover,
.mu-lightbox__nav:focus {
    background: #8d6a6a80 !important;
    outline: none;
    opacity: 0.85;
}

.mu-lightbox__nav--disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.mu-lightbox__nav svg {
    width: 24px;
    height: 24px;
}

.mu-lightbox__nav--prev {
    left: 16px;
}

.mu-lightbox__nav--next {
    right: 16px;
}

.mu-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    box-shadow: none;
}

.mu-lightbox__close:hover,
.mu-lightbox__close:focus {
    background: transparent;
    outline: none;
    opacity: 0.85;
}

.mu-lightbox__close svg {
    width: 22px;
    height: 22px;
}

.mu-lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    pointer-events: none;
}

body.mu-gallery-lightbox-open {
    overflow: hidden;
}

/* Clickable main gallery images (all slides — background lives on the slide container). */
.single-product .woocommerce-product-gallery.mu-gallery .mu-gallery__slide img {
    cursor: zoom-in;
}

.single-product .woocommerce-product-gallery.mu-gallery .mu-gallery__slide.custom-zoom-wrapper {
    cursor: zoom-in;
}

@media (max-width: 767px) {
    .mu-lightbox {
        padding: 40px 12px;
    }

    .mu-lightbox__nav {
        width: 40px;
        height: 40px;
    }

    .mu-lightbox__nav--prev {
        left: 8px;
    }

    .mu-lightbox__nav--next {
        right: 8px;
    }

    .mu-lightbox__close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}
