/**
 * PDP Gallery Styles - WinkelvanHugo
 */

/* Gallery Wrapper */
.lbc-gallery-wrapper {
    position: relative;
}

/* Zoom Effect */
.woocommerce-product-gallery__image {
    overflow: hidden;
    cursor: zoom-in;
}

.woocommerce-product-gallery__image img {
    transition: transform 0.2s ease;
    will-change: transform;
}

.woocommerce-product-gallery__image.is-zooming img {
    cursor: zoom-out;
}

/* Fullscreen Button */
.lbc-gallery-fullscreen {
    position: absolute;
    top: var(--lbc-space-3);
    right: var(--lbc-space-3);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lbc-white);
    color: var(--lbc-gray-700, #374151);
    border: 1px solid var(--lbc-gray-200);
    border-radius: var(--lbc-radius-sm);
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: var(--lbc-shadow-sm);
}

.lbc-gallery-fullscreen svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.lbc-gallery-fullscreen:hover {
    background: var(--lbc-orange);
    color: var(--lbc-white);
    border-color: var(--lbc-orange);
}

/* Lightbox */
.lbc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lbc-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

body.lightbox-open {
    overflow: hidden;
}

.lbc-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lbc-lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lbc-lightbox__image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--lbc-radius-md);
}

/* Lightbox Controls */
.lbc-lightbox__close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--lbc-white);
    border: none;
    font-size: 32px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.lbc-lightbox__close:hover {
    opacity: 1;
}

.lbc-lightbox__prev,
.lbc-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--lbc-white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lbc-lightbox__prev {
    left: -70px;
}

.lbc-lightbox__next {
    right: -70px;
}

.lbc-lightbox__prev:hover,
.lbc-lightbox__next:hover {
    background: var(--lbc-orange);
}

.lbc-lightbox__counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--lbc-white);
    font-size: var(--lbc-text-sm);
    opacity: 0.7;
}

/* Mobile */
@media (max-width: 768px) {

    .lbc-lightbox__prev,
    .lbc-lightbox__next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lbc-lightbox__prev {
        left: 10px;
    }

    .lbc-lightbox__next {
        right: 10px;
    }
}