.gallery-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.gallery-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--accent-color);
}

.thumbnail-carousel {
  position: relative;
  margin: 0 auto;
}

.thumbnails {
  display: flex;
  gap: 15px;
  padding: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.thumbnails::-webkit-scrollbar {
  display: none;
}

.thumbnail {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail:hover {
  transform: scale(1.05);
  border-color: var(--accent-color);
}

.thumbnail.active {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-color);
}

.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  color: var(--accent-color);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
  background: var(--accent-color);
  color: white;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-height: 80vh;
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.close-btn:hover {
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.lightbox-prev, .lightbox-next {
  background: rgba(255,255,255,0.3);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 25px;
  color: white;
  cursor: pointer;
  margin: 0 20px;
  transition: all 0.3s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.5);
}
