/* --- Galerie responsive --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    width: 100%;
    margin: 20px auto;
    max-width: 1200px;
}

.gallery img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.gallery img:hover {
    transform: scale(1.03);
}

/* --- Lightbox --- */
#lightbox {
    display: none;              /* caché par défaut */
    position: fixed;
    inset: 0;                   /* top:0, left:0, right:0, bottom:0 */
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
}

#lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 60px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

#lightbox-prev,
#lightbox-next {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 50px;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    transform: translateY(-50%);
    transition: 0.3s;
}

#lightbox-prev:hover,
#lightbox-next:hover {
    color: #ddd;
}

#lightbox-prev {
    left: 10px;
}

#lightbox-next {
    right: 10px;
}

