/* ==========================================================================
   RUDRA THE PRACTICAL SCHOOL - ADVANCED GALLERY STYLESHEET
   Includes:
   1. Emerald & Gold Hero Banner
   2. YouTube Featured Videos Showcase (Top 5 Videos)
   3. YouTube Shorts & Reels Horizontal Showcase (Latest 7 Vertical Reels)
   4. Categorized Photo & Infrastructure Gallery Hub
   5. Interactive Video & Lightbox Modal Systems
   6. Ultra-responsive Mobile & Touch Styles
   ========================================================================== */

:root {
  --yt-red: #ff0000;
  --yt-dark-red: #cc0000;
  --gallery-bg: #fbfbf9;
  --gallery-card-bg: #ffffff;
  --reel-width: 220px;
  --reel-height: 380px;
}

/* Base Gallery Section */
.gallery-page {
  background-color: var(--gallery-bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ==========================================================================
   1. HERO BANNER
   ========================================================================== */
.gallery-hero {
  background: linear-gradient(135deg, #092c24 0%, #124e3f 55%, #1b6352 100%);
  color: #ffffff;
  padding: clamp(48px, 6vw, 76px) 0 clamp(40px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

.gallery-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.gallery-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: var(--gallery-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.gallery-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.gallery-breadcrumb a {
  color: #d1fae5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.gallery-breadcrumb a:hover {
  color: #ffffff;
}

.gallery-breadcrumb span.sep {
  opacity: 0.6;
  font-size: 0.75rem;
}

.gallery-breadcrumb span.curr {
  color: #fef08a;
  font-weight: 600;
}

.gallery-hero-title {
  font-family: var(--font-primary, 'Outfit', 'Inter', sans-serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #ffffff;
}

.gallery-hero-title span.accent {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gallery-hero-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Quick Navigation Pills */
.hero-quick-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 40px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-pill:hover {
  background: #ffffff;
  color: #124e3f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-pill.pill-yt {
  background: rgba(255, 0, 0, 0.85);
  border-color: rgba(255, 0, 0, 0.9);
}

.hero-pill.pill-yt:hover {
  background: #ffffff;
  color: var(--yt-red);
}

/* ==========================================================================
   2. YOUTUBE FEATURED VIDEOS SECTION (TOP 5)
   ========================================================================== */
.yt-videos-section {
  padding: clamp(36px, 5vw, 64px) 0 clamp(30px, 4vw, 50px);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-badge.badge-yt {
  background: rgba(255, 0, 0, 0.1);
  color: var(--yt-red);
  border: 1px solid rgba(255, 0, 0, 0.25);
}

.section-badge.badge-gold {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.section-badge.badge-emerald {
  background: rgba(18, 78, 63, 0.1);
  color: #124e3f;
  border: 1px solid rgba(18, 78, 63, 0.2);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.section-title-wrap h2 {
  font-family: var(--font-primary, sans-serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 8px;
}

.section-title-wrap p {
  color: #64748b;
  font-size: 0.98rem;
  max-width: 600px;
  margin: 0;
}

/* YouTube Channel Card Link */
.yt-channel-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 10px 18px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.yt-channel-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 0.3);
}

.yt-channel-icon {
  width: 36px;
  height: 36px;
  background: var(--yt-red);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.yt-channel-info {
  display: flex;
  flex-direction: column;
}

.yt-channel-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
}

.yt-channel-sub {
  font-size: 0.76rem;
  color: #64748b;
}

/* 5-Video Showcase Layout */
.yt-videos-showcase {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
}

/* Primary Featured Video Spotlight (Video 1) */
.yt-spotlight-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(18, 78, 63, 0.08);
  border: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

.yt-spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(18, 78, 63, 0.14);
}

.yt-spotlight-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

.yt-spotlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.yt-spotlight-card:hover .yt-spotlight-thumb img {
  transform: scale(1.04);
}

/* Glowing Play Badge */
.play-btn-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(255, 0, 0, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  padding-left: 4px;
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.45);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 3;
}

.yt-spotlight-card:hover .play-btn-circle {
  transform: translate(-50%, -50%) scale(1.15);
  background: #ff0000;
  box-shadow: 0 15px 40px rgba(255, 0, 0, 0.65);
}

.yt-duration-badge {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
  letter-spacing: 0.03em;
}

.yt-badge-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(18, 78, 63, 0.9);
  backdrop-filter: blur(8px);
  color: #fef08a;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.yt-spotlight-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.yt-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.yt-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.yt-spotlight-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 10px;
}

.yt-spotlight-content p {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.watch-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: #124e3f;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.25s ease;
}

.yt-spotlight-card:hover .watch-now-btn {
  background: var(--yt-red);
  transform: translateX(4px);
}

/* 4 Companion Video Cards Grid */
.yt-grid-companion {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.yt-video-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  cursor: pointer;
}

.yt-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

.yt-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

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

.yt-video-card:hover .yt-card-thumb img {
  transform: scale(1.05);
}

.mini-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
  padding-left: 2px;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.yt-video-card:hover .mini-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--yt-red);
}

.yt-video-card-content {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.yt-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #124e3f;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.yt-video-card-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-card-meta {
  margin-top: auto;
  font-size: 0.76rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   3. YOUTUBE SHORTS & REELS HORIZONTAL SHOWCASE (LATEST 7)
   ========================================================================== */
.yt-shorts-section {
  padding: clamp(48px, 6vw, 76px) 0;
  background: linear-gradient(180deg, #071e18 0%, #0d2c23 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.yt-shorts-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.shorts-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.shorts-title-wrap h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 8px;
}

.shorts-title-wrap p {
  color: #a7f3d0;
  font-size: 0.95rem;
  margin: 0;
  max-width: 580px;
}

/* Carousel Scroll Navigation Buttons */
.shorts-nav-controls {
  display: flex;
  gap: 10px;
}

.shorts-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.shorts-nav-btn:hover {
  background: #f59e0b;
  color: #071e18;
  border-color: #f59e0b;
  transform: scale(1.08);
}

/* Horizontal Scrolling Reel Strip */
.shorts-track-wrapper {
  position: relative;
  z-index: 2;
  margin: 0 -15px;
  padding: 0 15px;
}

.shorts-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 26px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.5) rgba(255, 255, 255, 0.05);
}

.shorts-track::-webkit-scrollbar {
  height: 6px;
}

.shorts-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.shorts-track::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.5);
  border-radius: 10px;
}

/* 9:16 Vertical Reel Card */
.short-reel-card {
  flex: 0 0 var(--reel-width);
  height: var(--reel-height);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
  background: #0f172a;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.short-reel-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.6);
  border-color: rgba(245, 158, 11, 0.6);
}

.short-reel-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.short-reel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.short-reel-card:hover .short-reel-thumb img {
  transform: scale(1.08);
}

/* Top Badge Overlays */
.short-top-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.shorts-logo-pill {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.shorts-logo-pill i {
  color: var(--yt-red);
  font-size: 0.85rem;
}

.short-views-pill {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  color: #fef08a;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Reel Center Play Icon */
.short-play-icon {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.15rem;
  padding-left: 3px;
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.5);
  opacity: 0.9;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 3;
}

.short-reel-card:hover .short-play-icon {
  transform: translate(-50%, -50%) scale(1.15);
  background: #ff0000;
  opacity: 1;
}

/* Bottom Dark Gradient Info */
.short-bottom-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 14px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.75) 60%, transparent 100%);
  z-index: 3;
  display: flex;
  flex-direction: column;
}

.short-category-tag {
  color: #f59e0b;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.short-bottom-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.short-channel-name {
  font-size: 0.74rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   4. PHOTO & INFRASTRUCTURE GALLERY (SMARTLY INTEGRATED)
   ========================================================================== */
.photo-gallery-section {
  padding: clamp(50px, 6vw, 84px) 0;
  position: relative;
}

.gallery-filters-container {
  margin-bottom: 36px;
}

.gallery-filters-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filter-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 0.88rem;
  font-weight: 600;
  background: #ffffff;
  color: #475569;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.filter-chip-btn i {
  font-size: 0.9rem;
  color: #64748b;
  transition: color 0.25s ease;
}

.filter-chip-btn:hover {
  border-color: #124e3f;
  color: #124e3f;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(18, 78, 63, 0.08);
}

.filter-chip-btn:hover i {
  color: #124e3f;
}

.filter-chip-btn.active {
  background: #124e3f;
  color: #ffffff;
  border-color: #124e3f;
  box-shadow: 0 8px 20px rgba(18, 78, 63, 0.25);
  transform: translateY(-2px);
}

.filter-chip-btn.active i {
  color: #fef08a;
}

/* Category Filter Count Indicator */
.gallery-counter-indicator {
  text-align: center;
  color: #64748b;
  font-size: 0.86rem;
  margin-top: 14px;
}

.gallery-counter-indicator span.count-num {
  font-weight: 700;
  color: #124e3f;
}

/* Photo Gallery Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.photo-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(18, 78, 63, 0.06);
  border: 1px solid #f1f5f9;
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(18, 78, 63, 0.14);
}

.photo-card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f8fafc;
}

.photo-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-card:hover .photo-card-img-wrap img {
  transform: scale(1.08);
}

.photo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(18, 78, 63, 0.88);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
  letter-spacing: 0.03em;
}

.photo-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 44, 36, 0.92) 0%, rgba(9, 44, 36, 0.4) 60%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.photo-card:hover .photo-hover-overlay {
  opacity: 1;
}

.photo-zoom-btn {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.95);
  color: #124e3f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transform: scale(0.85);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.photo-card:hover .photo-zoom-btn {
  transform: scale(1);
}

.photo-card-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.photo-card-body h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 6px;
}

.photo-card-body p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   5. MODAL SYSTEMS (VIDEO & LIGHTBOX)
   ========================================================================== */
/* Generic Modal Overlay */
.gallery-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 36px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-modal-overlay.open {
  display: flex;
  opacity: 1;
}

/* Video Modal Dialog */
.video-modal-dialog {
  background: #000000;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-modal-overlay.open .video-modal-dialog {
  transform: scale(1);
}

.video-modal-dialog.shorts-mode {
  max-width: 420px;
}

.modal-video-frame-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-modal-dialog.shorts-mode .modal-video-frame-wrap {
  aspect-ratio: 9 / 16;
}

.modal-video-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #ff0000;
  border-color: #ff0000;
  transform: scale(1.1);
}

.modal-video-footer {
  padding: 14px 20px;
  background: #111827;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-video-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 14px;
}

/* Lightbox Modal */
.lightbox-modal-dialog {
  width: 100%;
  max-width: 1050px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content-box {
  background: #0d1512;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  width: 100%;
  position: relative;
}

.lightbox-img-area {
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  overflow: hidden;
}

.lightbox-img-area img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.lightbox-info-bar {
  padding: 16px 24px;
  background: #0f1c17;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.lightbox-title-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.lightbox-caption-text {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 3px;
}

.lightbox-counter-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #fef08a;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: #124e3f;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev-btn {
  left: -24px;
}

.lightbox-nav-btn.next-btn {
  right: -24px;
}

/* ==========================================================================
   6. CAMPUS VISIT CTA BANNER
   ========================================================================== */
.gallery-cta-section {
  padding: clamp(48px, 6vw, 76px) 0;
  background: #ffffff;
}

.gallery-cta-card {
  background: linear-gradient(135deg, #092c24 0%, #124e3f 100%);
  border-radius: 24px;
  padding: clamp(36px, 5vw, 60px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(18, 78, 63, 0.18);
}

.gallery-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.gallery-cta-text {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.gallery-cta-text h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.gallery-cta-text p {
  color: #d1fae5;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.gallery-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.cta-btn-gold {
  background: #f59e0b;
  color: #092c24;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 40px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.cta-btn-gold:hover {
  background: #ffffff;
  color: #092c24;
  transform: translateY(-2px);
}

.cta-btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 40px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.cta-btn-outline:hover {
  background: #ffffff;
  color: #124e3f;
  transform: translateY(-2px);
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .yt-videos-showcase {
    grid-template-columns: 1fr;
  }
  
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lightbox-nav-btn.prev-btn {
    left: 8px;
  }
  
  .lightbox-nav-btn.next-btn {
    right: 8px;
  }
}

@media (max-width: 768px) {
  :root {
    --reel-width: 180px;
    --reel-height: 320px;
  }
  
  .yt-grid-companion {
    grid-template-columns: 1fr;
  }
  
  .section-header-row,
  .shorts-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  
  .hero-quick-pills {
    gap: 8px;
  }
  
  .hero-pill {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  
  .gallery-filters-nav {
    gap: 6px;
  }
  
  .filter-chip-btn {
    padding: 8px 14px;
    font-size: 0.78rem;
  }
  
  .lightbox-info-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .modal-close-btn {
    top: -40px;
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 480px) {
  :root {
    --reel-width: 160px;
    --reel-height: 285px;
  }
  
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .yt-spotlight-content {
    padding: 16px;
  }
  
  .play-btn-circle {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }
  
  .gallery-cta-card {
    padding: 28px 20px;
  }
  
  .gallery-cta-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-btn-gold,
  .cta-btn-outline {
    width: 100%;
    justify-content: center;
  }
}
