/* Galerie moderne finale avec miniatures 80px + popup, flèches, fade-in/out */

body {
	font-family: Arial, sans-serif;
	background: #f5f5f5;
	margin: 0;
	padding: 0;
	color: #222;
	text-align: center;
}

header a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

header a:hover {
  text-decoration: underline;
}

h1 {
  margin-top: 10px;
  font-size: 1.6rem;
}

/* Miniatures */
.gallery-container {
  padding: 15px;
  max-width: 900px;
  margin: auto;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 6px;
  justify-items: center;
}

.thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.thumbs img:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Popup / Lightbox */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; }}
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; }}

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s forwards;
}

#lightbox.hidden {
  display: none;
}

#lightbox img {
  max-width: 650px;
  max-height: 90vh;
  border-radius: 6px;
  background: white;
  padding: 4px;
}

#closeBtn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
}

/* Flèches navigation */
.navBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  padding: 10px;
  user-select: none;
  transition: 0.2s;
}

#prevBtn { left: 20px; }
#nextBtn { right: 20px; }

.navBtn:hover {
  transform: translateY(-50%) scale(1.2);
}
body p {
	text-align: center;
}
