/* Styles galerie.html déplacés ici */
.galerie-bg {
  position: relative;
  min-height: 100vh;
  background: inherit;
  /* hérite du .hero-bg pour garder la même image de fond */
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.galerie-overlay {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  margin: 40px auto;
  max-width: 1200px;
  width: 100%;
  padding: 32px 24px;
  box-shadow: 0 8px 32px #0002;
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.galerie-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px #0001;
  padding: 12px 12px 8px 12px;
  text-align: center;
  transition: transform 0.15s;
}

.galerie-item img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px #0001;
  margin-bottom: 8px;
  cursor: pointer;
}

.galerie-item .caption {
  font-family: Arial, sans-serif;
  /* font-size: 1rem; */
  /* color: #7a6a5a; */
  /* margin-top: 4px; */
  font-weight: 900;
}

.galerie-item p {
  font-family: Arial, sans-serif;
  /* font-size: 1rem; */
  /* color: #7a6a5a; */
  /* margin-top: 4px; */
  font-weight: lighter;
}

.lightbox-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 30, 30, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  background: #fff;
  padding: 8px;
}

.lightbox-close {
  position: absolute;
  top: 32px;
  right: 48px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 1100;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-shadow: 0 2px 8px #000;
}