body.no-scroll {
    overflow: hidden; /* Empêche le scroll vertical et horizontal */
    position: relative; /* optionnel, parfois utile pour éviter un "jump" */
}

/* =====================
   LIGHTBOX / OVERLAY
===================== */

/* Overlay général */
.ap-lightbox-overlay {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    background: rgba(0, 0, 0, 0.85);
    background: #000000;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 99999;
}

/* Overlay actif */
.ap-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Image dans la lightbox */
.ap-lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
/* Légende sous l'image */
.ap-lightbox-caption {
    margin-top: 10px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    max-width: 90%;
    font-weight: 400;
}

/* =====================
   LIGHTBOX / NAVIGATION
===================== */

/* Bouton fermeture */
.ap-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    opacity: 0.25;
    transition: opacity 0.2s;
}

/* Boutons de navigation */
.ap-lightbox-prev,
.ap-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;  /* ou taille de ton SVG */
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.25;
    transition: opacity 0.2s;
}

/*** Responsive Styles Tablet And Below ***/
@media all and (max-width: 980px) {
    .ap-lightbox-prev,
    .ap-lightbox-next {
        display: block;
        top: 20px;
        width: 30px;
        height: 30px;
        right: auto;
        transform: initial
    } 
    .ap-lightbox-prev {
        left: 30px;
    } 
    .ap-lightbox-next {
        left: 75px;
    } 
}

.ap-lightbox-prev:hover,
.ap-lightbox-next:hover,
.ap-lightbox-close:hover {
    opacity: 1;
}

.ap-lightbox-prev {
    left: 20px;
}

.ap-lightbox-next {
    right: 20px;
}