.wpitei-single-gallery .wpitei-gallery-lightbox__trigger,
.inmueble-gallery .wpitei-gallery-lightbox__trigger {
    cursor: zoom-in;
}

body.wpitei-lightbox-open {
    overflow: hidden;
}

.wpitei-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100060;
}

.wpitei-gallery-lightbox[hidden] {
    display: none !important;
}

.wpitei-gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.88);
}

.wpitei-gallery-lightbox__stage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 48px 72px;
    box-sizing: border-box;
}

.wpitei-gallery-lightbox__figure {
    margin: 0;
    max-width: min(1200px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.wpitei-gallery-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.wpitei-gallery-lightbox__caption {
    color: #fff;
    font-size: 0.9375rem;
    line-height: 1.4;
    text-align: center;
}

.wpitei-gallery-lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.wpitei-gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14) url(/wp-content/plugins/witei-propiedades/assets/img/icons/arrow.svg) center center no-repeat;
    background-size: 22px 22px;
    transform: translateY(-50%);
    cursor: pointer;
}

.wpitei-gallery-lightbox__nav--prev {
    left: 18px;
}

.wpitei-gallery-lightbox__nav--next {
    right: 18px;
    transform: translateY(-50%) rotate(180deg);
}

@media (max-width: 768px) {
    .wpitei-gallery-lightbox__stage {
        padding: 56px 16px;
    }

    .wpitei-gallery-lightbox__nav {
        width: 40px;
        height: 40px;
    }

    .wpitei-gallery-lightbox__nav--prev {
        left: 8px;
    }

    .wpitei-gallery-lightbox__nav--next {
        right: 8px;
    }
}
