/* Style général de la galerie */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 15px; /* espace entre les images */
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Style des images */
.galerie img {
  width: 100%;
  height: 250px;
  object-fit: cover; /* coupe l’image proprement */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Effet au survol */
.galerie img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Responsive : petites tailles d’écran */
@media (max-width: 600px) {
  .galerie {
    grid-template-columns: 1fr 1fr; /* 2 colonnes max sur mobile */
    gap: 10px;
  }

  .galerie img {
    height: 180px;
  }
}

/* Lightbox */
.lightbox {
  display: none; /* cachée par défaut */
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.lightbox .close {
  position: absolute;
  top: 20px; right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
