.gallery-container {
  max-width: 800px;
  margin: auto;
  text-align: center;
  font-family: sans-serif;
}
.main-image {
  position: relative;
}
.main-image img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  cursor: pointer;
}
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0 10px;
  cursor: pointer;
}
.nav.left {
  left: 10px;
}
.nav.right {
  right: 10px;
}
.thumbnails {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.thumbnails img {
  width: 100px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: all 0.3s;
}
.thumbnails img.active,
.thumbnails img:hover {
  opacity: 1;
  border-color: #007bff;
}
#lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}
#lightbox img {
  max-width: 90%;
  max-height: 90%;
}
#lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}