/* =====================================================
   GALLERY PAGE - MODERN LIGHT DESIGN (APP THEME MATCH)
   ===================================================== */

/* Color Palette - Matching App Theme */
:root {
  --primary-color: #5b9aff;
  --secondary-color: #012970;
  --accent-color: #0404eb;
  --primary-gradient: linear-gradient(135deg, #5b9aff 0%, #012970 100%);
  --light-gradient: linear-gradient(135deg, #f6f9ff 0%, #ffffff 100%);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(91, 154, 255, 0.1);
  --text-main: #012970;
  --text-muted: #444444;
  --card-shadow: 0 15px 35px rgba(1, 41, 112, 0.1);
}

/* ===== MAIN CONTAINER ===== */
.gallery-container {
  background: #ffffff;
  color: var(--text-main);
  padding-bottom: 80px;
  min-height: 100vh;
}

/* ===== GALLERY HERO SECTION ===== */
.gallery-hero {
  background: var(--light-gradient);
  color: var(--text-main);
  padding: 120px 20px;
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #eee;
}

/* Animated Glow Spheres for Light Theme */
.gallery-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(91, 154, 255, 0.1) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation: pulseGlow 10s infinite alternate;
  z-index: 1;
}

.gallery-hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(1, 41, 112, 0.05) 0%, transparent 70%);
  bottom: -150px;
  right: -150px;
  animation: pulseGlow 8s infinite alternate-reverse;
  z-index: 1;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
  100% { transform: scale(1.2) translate(50px, 50px); opacity: 0.8; }
}

/* Hero Content Styling */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-bottom: 60px;
}

.gallery-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--secondary-color);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.gallery-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Cards in Hero */
.hero-image-cards {
  display: flex;
  gap: 25px;
  margin-top: 40px;
  perspective: 1000px;
}

.hero-card {
  width: 220px;
  height: 300px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  border: 4px solid #ffffff;
  box-shadow: 0 20px 40px rgba(1, 41, 112, 0.15);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(1, 41, 112, 0.4));
  opacity: 0.8;
}

.hero-card:hover {
  transform: translateY(-15px) rotateY(5deg);
  box-shadow: 0 30px 60px rgba(1, 41, 112, 0.2);
}

/* ===== EVENT SECTION TITLE ===== */
.event-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin: 80px 0 50px;
  position: relative;
  color: var(--secondary-color);
  letter-spacing: -0.01em;
}

.event-section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 0 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #f8f9fa;
  aspect-ratio: 1/1;
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(1, 41, 112, 0.05);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item a {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(1, 41, 112, 0.12);
  border-color: var(--primary-color);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Hover Overlay */
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(1, 41, 112, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item::after {
  content: '🔍 View';
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 3;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Featured Section Enhancements */
.featured-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 15px;
  border: 1px solid #eee;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(1, 41, 112, 0.15);
  border-color: var(--primary-color);
}

.featured-text h4 {
  color: var(--secondary-color) !important;
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 15px;
}

.featured-text p {
  color: var(--text-muted) !important;
  font-size: 0.95rem;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    padding: 0 15px;
    gap: 20px;
  }
  
  .hero-image-cards {
    display: none;
  }
  
  .gallery-title {
    font-size: 2.8rem;
  }

  .gallery-hero {
    padding: 80px 15px;
    min-height: 400px;
  }
}

/* Lightbox Customization */
.mfp-bg {
  background: rgba(1, 41, 112, 0.95) !important;
}

.mfp-image-holder .mfp-content {
  border-radius: 15px;
  overflow: hidden;
}
