.gallery-section {
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.gallery-item {
  position: relative;
}

.gallery-media {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-media:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.caption {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

/* LIGHTBOX */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  padding: 20px;
}

#lightbox.active {
  display: flex;
}

.lightbox-img,
.lightbox-video {
  max-width: 90%;
  max-height: 70%;
  border-radius: 8px;
  display: none;
}

.lightbox-caption {
  margin-top: 15px;
  color: #fff;
  font-size: 1rem;
  text-align: center;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
}

.pagination {
  margin-top: 30px;
  text-align: center;
}

.page-btn {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  background: #f0f0f0;
  color: #333;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s ease;
}

.page-btn:hover {
  background: #ddd;
}

.page-btn.active {
  background: #007bff;
  color: #fff;
}