.gallery-section {
  padding: 1.75rem 2.2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.2rem;
}

.gallery-item {
  text-align: center;
}

.gallery-item img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  height: auto;
  border-radius: 12px;
}


.gallery-item img:hover {
  transform: scale(1.02);
}

.caption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #333;
}

/* Overlay styles */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.overlay img {
  max-width: 90vw;
  max-height: 70vh;
  border-radius: 8px;
}

/* Navigation buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  z-index: 1000;
}

.prev-btn {
  left: 40px;
}

.next-btn {
  right: 40px;
}

@media (max-width: 600px) {
  .nav-btn {
    font-size: 2.2rem;
    padding: 0.4rem 0.8rem;
  }
}
