/* ==========================================
   GALLERY SECTION
========================================== */

.gallery-section {
  padding: 60px 15px;
  background: #f7f8fc;
}

.section-title {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 40px;
  color: #00147a;
  font-weight: 700;
}

/* ==========================================
   EVENT CONTAINER
========================================== */

.gallery-event {
  margin-bottom: 60px;
}

.event-title {
  font-size: 1.4rem;
  margin-bottom: 25px;
  color: #00147a;
  font-weight: 600;
  border-left: 4px solid #00147a;
  padding-left: 10px;
}

/* ==========================================
   MASONRY LAYOUT (CENTERED)
========================================== */

.gallery-grid {
  column-count: 3;
  column-gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    column-count: 1;
  }
}

/* ==========================================
   GALLERY ITEMS
========================================== */

.gallery-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 18px;
  break-inside: avoid;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Hover Effect */
.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

/* Overlay */
.gallery-item::after {
  content: "View";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px;
  font-size: 0.8rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ==========================================
   LIGHTBOX
========================================== */

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-content {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
}

.close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 35px;
  color: #fff;
  cursor: pointer;
}