body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.galerie {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.galerie-img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

.lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(53,0,53,0.8);
	display: flex;
	justify-content: center;
	align-items: center;
}

.lightboxImage {
    max-width: 70%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 10%;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.galerie {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* Ajustez cet espace selon vos besoins */
    padding: 10px; /* Ajoute un peu de padding autour de la galerie si nécessaire */
}

.galerie-img {
    width: 100%; /* Cela permet de s'assurer que l'image remplit son conteneur */
    max-width: 200px; /* Ajustez la taille maximale des images ici */
    height: auto; /* Maintient le ratio d'aspect des images */
    cursor: pointer;
    transition: transform 0.2s; /* Ajoute un effet de zoom léger au survol */
}

.galerie-img:hover {
    transform: scale(1.08); /* Légère augmentation de la taille au survol */
}

/* Assurez-vous que la lightbox et son contenu sont correctement stylisés */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightboxImage {
    max-width: 80%; /* Ajuste la largeur maximale de l'image dans la lightbox */
    max-height: 80vh; /* Ajuste la hauteur maximale de l'image dans la lightbox */
}


/* Ajouts ou ajustements possibles */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    user-select: none;
    -webkit-user-select: none;
}

.prev { left: 0; }
.next { right: 0; }
