/* Grille de la galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Conteneur pour chaque élément (image/vidéo) */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Style pour les images (cadre bleu) */
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid blue;
    border-radius: 4px;
}

/* Style pour les vidéos (cadre orange) */
.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid orange;
    border-radius: 4px;
}

/* Style pour la date (centrée en bas du cadre) */
/* Conteneur pour la date */
.image-date-container {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    text-align: center;
}

/* Style pour la date */
.image-date {
    display: inline-block;
    margin: 0;
    font-size: 12px;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 5px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Effet de survol pour les images */
.gallery-item img:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
}

.close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
}







.close:hover {
    color: #ccc;
}
