/* Gallery Page Styles */

/* Page Header */
.gallery-hero {
  background: linear-gradient(135deg, #111B47 0%, #505F98 100%);
  padding: 80px 20px 60px;
  text-align: center;
  margin-bottom: 40px;
}

.gallery-hero h1 {
  color: #fff;
  font-family: Aldrich, sans-serif;
  font-size: 3rem;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
}

.gallery-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-family: Roboto, sans-serif;
  font-size: 1.1rem;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Gallery Container */
.gallery-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* Event Section */
.event-section {
  margin-bottom: 60px;
}

.event-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  background: linear-gradient(90deg, #E7ECFF 0%, #f8f9ff 100%);
  border-radius: 12px 12px 0 0;
  border-left: 5px solid #111B47;
  cursor: pointer;
  transition: all 0.3s ease;
}

.event-section-header:hover {
  background: linear-gradient(90deg, #dce3ff 0%, #f0f3ff 100%);
}

.event-section-header h2 {
  font-family: Aldrich, sans-serif;
  font-size: 1.8rem;
  color: #111B47;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.event-section-header .event-date {
  font-family: Roboto, sans-serif;
  font-size: 0.9rem;
  color: #505F98;
  font-weight: normal;
}

.event-section-header .toggle-icon {
  font-size: 1.5rem;
  color: #505F98;
  transition: transform 0.3s ease;
}

.event-section.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.event-section.collapsed .event-gallery {
  display: none;
}

/* Event Gallery Grid */
.event-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 25px;
  background: #f8f9ff;
  border-radius: 0 0 12px 12px;
}

/* Gallery Card */
.gallery-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.gallery-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(17, 27, 71, 0.9));
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
  transform: translateY(0);
}

.gallery-card-overlay h3 {
  color: #fff;
  font-family: Aldrich, sans-serif;
  font-size: 1.2rem;
  margin: 0 0 5px 0;
}

.gallery-card-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-family: Roboto, sans-serif;
  font-size: 0.9rem;
  margin: 0;
}

/* Featured Card (spans 2 columns) */
.gallery-card.featured {
  grid-column: span 2;
}

/* Year Divider */
.year-divider {
  display: flex;
  align-items: center;
  margin: 50px 0 30px;
  gap: 20px;
}

.year-divider span {
  font-family: Aldrich, sans-serif;
  font-size: 2rem;
  color: #111B47;
  white-space: nowrap;
}

.year-divider::before,
.year-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #505F98, transparent);
}

/* Empty State */
.gallery-empty {
  text-align: center;
  padding: 60px 20px;
  color: #505F98;
}

.gallery-empty p {
  font-family: Roboto, sans-serif;
  font-size: 1.1rem;
}

/* Filter Tabs */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.filter-btn {
  padding: 12px 24px;
  border: 2px solid #111B47;
  background: transparent;
  color: #111B47;
  font-family: Aldrich, sans-serif;
  font-size: 0.95rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #111B47;
  color: #fff;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-caption {
  text-align: center;
  color: #fff;
  margin-top: 15px;
  font-family: Roboto, sans-serif;
}

/* Responsive Design */
@media screen and (max-width: 900px) {
  .gallery-card.featured {
    grid-column: span 1;
  }

  .event-gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .gallery-hero h1 {
    font-size: 2.2rem;
  }

  .gallery-hero p {
    font-size: 1rem;
  }

  .event-section-header {
    padding: 15px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .event-section-header h2 {
    font-size: 1.4rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .event-section-header .toggle-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .event-section.collapsed .toggle-icon {
    transform: translateY(-50%) rotate(-90deg);
  }

  .event-gallery {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 15px;
  }

  .gallery-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .year-divider span {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .gallery-hero {
    padding: 60px 15px 40px;
  }

  .gallery-hero h1 {
    font-size: 1.8rem;
  }

  .gallery-page {
    padding: 0 15px 40px;
  }
}
