/* Style de la boîte noire en arrière-plan */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5) !important;
    justify-content: center;
    align-items: center;
}

/* Style de l'image agrandie */
.lightbox-content-desktop {
    max-width: 600px;
    object-fit: contain;
}

.lightbox-content-mobile {
    min-height: 700px;
    object-fit: contain;
}

/* Boutons communs (Fermeture et Flèches) */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
    position: absolute;
}

/* Bouton de fermeture */
.lightbox-close {
    top: 20px;
    right: 35px;
    font-size: 40px;
}

/* Flèches de navigation */
.lightbox-prev,
.lightbox-next {
    font-size: 50px;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Effet au survol des boutons */
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #bbb;
    transform: scale(1.1);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Text alt */
.lightbox-alt {
    position: absolute;
    bottom: 100px;
    color: #fff;
    font-family: sans-serif;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

/* Compteur de photos */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    color: #fff;
    font-family: sans-serif;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

/* Galerie */
.galerie-desktop,
.galerie-mobile {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px;
}

.galerie-desktop img {
    width: 150px;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.galerie-mobile img {
    width: 100px;
    height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991px) {
    .lightbox-content-desktop {
        max-width: 400px;
    }

    .lightbox-content-mobile {
        min-height: 600px;
    }
}