/**
 * Restaurant Les Vénètes - Slider
 * Beekom Studio - https://beekom.fr
 */

.rlv-slider {
    width: 100%;
    position: relative;
}

.rlv-slider .swiper {
    width: 100%;
    /* La hauteur est définie par les contrôles Elementor (responsive). */
    overflow: hidden;
}

.rlv-slider .swiper-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.rlv-slider .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

/* Lien wrappant l'image quand la lightbox est activée. */
.rlv-slider .swiper-slide .rlv-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: zoom-in;
}

/* Pagination : on respecte la conf Elementor, on évite juste les valeurs hardcodées qui bloqueraient. */
.rlv-slider .swiper-pagination-bullet {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.rlv-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Pendant le drag, on évite les transitions parasites sur l'image */
.rlv-slider .swiper-slide img {
    pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Lightbox maison (visionneuse plein écran, indépendante d'Elementor) */
/* ------------------------------------------------------------------ */

body.rlv-lightbox-no-scroll {
    overflow: hidden;
}

.rlv-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.rlv-lightbox.is-open {
    display: flex;
    opacity: 1;
}

.rlv-lightbox-stage {
    width: 90vw;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* On veut que le clic sur le fond ferme la lightbox, mais pas sur l'image. */
}

.rlv-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease;
}

.rlv-lightbox-image.is-loading {
    opacity: 0.3;
}

.rlv-lightbox .rlv-lightbox-close,
.rlv-lightbox .rlv-lightbox-prev,
.rlv-lightbox .rlv-lightbox-next {
    position: absolute;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: none !important;
    color: #111111 !important;
    cursor: pointer !important;
    padding: 14px !important;
    margin: 0 !important;
    line-height: 0 !important;
    border-radius: 50% !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    text-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.rlv-lightbox .rlv-lightbox-close:hover,
.rlv-lightbox .rlv-lightbox-prev:hover,
.rlv-lightbox .rlv-lightbox-next:hover {
    background: #f3f3f3 !important;
    background-color: #f3f3f3 !important;
    color: #111111 !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6) !important;
}

.rlv-lightbox .rlv-lightbox-prev:hover {
    transform: translateY(-50%) scale(1.08);
}

.rlv-lightbox .rlv-lightbox-next:hover {
    transform: translateY(-50%) scale(1.08);
}

.rlv-lightbox .rlv-lightbox-close:hover {
    transform: scale(1.08);
}

.rlv-lightbox .rlv-lightbox-close:focus,
.rlv-lightbox .rlv-lightbox-prev:focus,
.rlv-lightbox .rlv-lightbox-next:focus {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Force aussi la couleur du SVG à l'intérieur (currentColor parfois override). */
.rlv-lightbox .rlv-lightbox-close svg,
.rlv-lightbox .rlv-lightbox-prev svg,
.rlv-lightbox .rlv-lightbox-next svg {
    fill: #111111 !important;
    color: #111111 !important;
    display: block !important;
}

.rlv-lightbox .rlv-lightbox-close svg path,
.rlv-lightbox .rlv-lightbox-prev svg path,
.rlv-lightbox .rlv-lightbox-next svg path {
    fill: #111111 !important;
}

.rlv-lightbox .rlv-lightbox-close {
    top: 20px;
    right: 20px;
}

.rlv-lightbox .rlv-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.rlv-lightbox .rlv-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.rlv-lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-family: inherit;
    letter-spacing: 0.04em;
    pointer-events: none;
}

@media (max-width: 600px) {
    .rlv-lightbox .rlv-lightbox-stage {
        width: 100vw;
        height: 100vh;
        padding: 60px 10px;
        box-sizing: border-box;
    }
    .rlv-lightbox .rlv-lightbox-close {
        top: 12px;
        right: 12px;
        padding: 10px !important;
    }
    .rlv-lightbox .rlv-lightbox-prev {
        left: 8px;
        padding: 10px !important;
    }
    .rlv-lightbox .rlv-lightbox-next {
        right: 8px;
        padding: 10px !important;
    }
    .rlv-lightbox .rlv-lightbox-prev svg,
    .rlv-lightbox .rlv-lightbox-next svg {
        width: 24px;
        height: 24px;
    }
    .rlv-lightbox .rlv-lightbox-counter {
        bottom: 16px;
        font-size: 13px;
    }
}
