html, body {
  height: 100%;
  margin: 0;
}

/* Conteneur slideshow */
.slideshow {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

/* Chaque slide */
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  /*animation: fade 20s infinite;*/
	animation: fade 20s infinite, zoom 20s infinite;

}

/* Décalage des animations */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }
.slide:nth-child(4) { animation-delay: 15s; }
.slide:nth-child(5) { animation-delay: 20s; }
.slide:nth-child(6) { animation-delay: 25s; }
.slide:nth-child(7) { animation-delay: 30s; }

/* Animation fade douce */
@keyframes fade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  25% { opacity: 1; }
  30% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}


/* Overlay sombre pour lisibilité */
.slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}





.gallery-img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Paysage */
.gallery-img.landscape {
  height: 220px;
}

/* Portrait */
.gallery-img.portrait {
  height: 320px;
}

/* Hover */
.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Mobile */
@media (max-width: 768px) {
  .gallery-img.landscape {
    height: 160px;
  }

  .gallery-img.portrait {
    height: 240px;
  }
}

/* Modal */
.modal-img {
  max-height: 85vh;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}


.custom-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 10;
}

.nav-btn {
  
  font-size: 40px;
  color: white;
  cursor: pointer;
  padding: 10px;
  user-select: none;
}



@media (max-width: 768px) {
  .nav-btn {
    font-size: 30px;
  }
  .custom-close {
    font-size: 24px;
  }
}

