/* ============================================================
   FGSC-MM CLUBS & SOCIETIES — same design system as gallery.css
   Fonts: Cormorant Garamond (headings) + DM Sans (body)
   Palette: matches site-nav.css brand variables
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: #f8faf4;
  color: #1a2410;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }

/* ============================================================
   HERO
   ============================================================ */

.gallery-hero {
  width: 100%;
  background: linear-gradient(135deg, #1c3d28 0%, #2d5a3d 55%, #d9a441 100%);
  color: #fff;
  text-align: center;
  padding: 100px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.gallery-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(168, 213, 162, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(168, 213, 162, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.gallery-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(168,213,162,0.4), #6fcf87, rgba(168,213,162,0.4), transparent);
  box-shadow: 0 0 20px rgba(168, 213, 162, 0.3);
}

.gallery-hero .eyebrow {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6fcf87;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
  opacity: 0.9;
}

.gallery-hero .eyebrow::before,
.gallery-hero .eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: #6fcf87;
  opacity: 0.7;
}

.gallery-hero h1 {
  position: relative;
  z-index: 2;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: #fff;
  letter-spacing: 0.1em;
  line-height: 1;
  margin: 0 0 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5), 0 0 30px rgba(168, 213, 162, 0.2);
}

.gallery-hero h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, #6fcf87, transparent);
}

.gallery-hero p {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto 30px;
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  font-weight: 300;
}

.gallery-stats {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.gallery-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-stats .stat strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  color: #6fcf87;
  font-weight: 700;
  line-height: 1;
}

.gallery-stats .stat span {
  margin-top: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   CONTROLS — year tabs + filter chips
   ============================================================ */

.gallery-controls {
  max-width: 1180px;
  margin: -28px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.controls-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(20,42,28,0.12);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.year-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.year-tab {
  border: 1px solid rgba(20,42,28,0.15);
  background: transparent;
  color: var(--brand-mid);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.year-tab:hover { border-color: var(--brand-accent); }

.year-tab.active {
  background: var(--brand-mid);
  border-color: var(--brand-mid);
  color: #fff;
}

.filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px dashed rgba(20,42,28,0.12);
}

.filter-chip {
  border: none;
  background: #f1f5ec;
  color: #3c4f3f;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover { background: #e3ecdb; }

.filter-chip.active {
  background: var(--brand-gold);
  color: #2b2308;
  font-weight: 600;
}

/* ============================================================
   GRID — bento-style event cards
   ============================================================ */

.gallery-grid-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 40px 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.g-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(168, 213, 162, 0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s ease;
  background: #1c3d28;
  aspect-ratio: 4 / 5;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  transition-delay: var(--delay, 0ms);
}

.g-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.g-card:hover,
.g-card:focus-visible {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 28px 65px rgba(0,0,0,0.28);
  border-color: rgba(168, 213, 162, 0.5);
  outline: none;
}

.g-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.g-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.6s ease;
  filter: brightness(0.78) saturate(0.9);
}

.g-card:hover .g-card-media img {
  transform: scale(1.06);
  filter: brightness(0.6) saturate(0.85);
}

.g-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 20, 12, 0.92) 0%,
    rgba(10, 20, 12, 0.45) 40%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 28px 24px;
  transition: background 0.4s ease;
}

.g-card:hover .g-card-scrim {
  background: linear-gradient(
    to top,
    rgba(10, 20, 12, 0.96) 0%,
    rgba(10, 20, 12, 0.6) 50%,
    rgba(10, 20, 12, 0.15) 100%
  );
}

.g-card-count {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(15, 31, 20, 0.75);
  border: 1px solid rgba(168, 213, 162, 0.35);
  backdrop-filter: blur(3px);
  color: #6fcf87;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

/* tap hint icon, matches achievers card */
.g-card::before {
  content: '\229E';
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  background: rgba(15, 31, 20, 0.75);
  border: 1px solid rgba(168, 213, 162, 0.35);
  border-radius: 50%;
  font-size: 18px;
  color: #6fcf87;
  line-height: 36px;
  text-align: center;
  opacity: 0;
  transform: scale(0.7) rotate(-45deg);
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 3;
  pointer-events: none;
}

.g-card:hover::before {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.g-card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 28px 24px;
  transform: translateY(6px);
  transition: transform 0.4s ease;
}

.g-card:hover .g-card-info { transform: translateY(0); }

.g-card-tag {
  display: inline-block;
  background: linear-gradient(145deg, rgba(168, 213, 162, 0.18), rgba(120, 180, 120, 0.14));
  border: 1px solid rgba(168, 213, 162, 0.4);
  color: #6fcf87;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.g-card-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.g-card-info p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(168, 213, 162, 0.8);
  letter-spacing: 0.06em;
}

.g-card-view { display: none; }

.gallery-empty {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: #6a7a66;
  font-style: italic;
}

/* ============================================================
   LIGHTBOX — white card, photo left / details right
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(8, 18, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.open { opacity: 1; visibility: visible; }

body.lb-locked { overflow: hidden; }

.lb-card {
  position: relative;
  display: flex;
  background: #0d1c10;
  border: 1px solid rgba(168, 213, 162, 0.25);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.7);
  max-width: 980px;
  width: 100%;
  max-height: 88vh;
  animation: lbPop 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes lbPop {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  background: rgba(10, 20, 12, 0.8);
  border: 1px solid rgba(168, 213, 162, 0.3);
  color: #6fcf87;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lb-close:hover { background: rgba(168, 213, 162, 0.15); border-color: #6fcf87; transform: rotate(90deg) scale(1.08); }

.lb-media {
  position: relative;
  flex: 0 0 56%;
  background: #050c07;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.lb-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: lbFade 0.3s ease;
}

@keyframes lbFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 20, 12, 0.75);
  border: 1px solid rgba(168, 213, 162, 0.25);
  color: #6fcf87;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 4;
}

.lb-prev:hover, .lb-next:hover { background: rgba(168, 213, 162, 0.15); border-color: #6fcf87; transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }

.lb-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 36px 38px;
  overflow-y: auto;
  min-width: 0;
  background: linear-gradient(180deg, rgba(13, 28, 16, 0.4), #0a160d);
}

.lb-event-title {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.lb-counter {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(168, 213, 162, 0.7);
  font-weight: 600;
}

.lb-caption {
  margin: 20px 0 0;
  color: rgba(212, 240, 216, 0.8);
  font-size: 0.95rem;
  line-height: 1.75;
}

.lb-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  margin-top: auto;
}

.lb-thumbs img {
  width: 60px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.5;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.lb-thumbs img:hover { opacity: 0.85; }
.lb-thumbs img.active { opacity: 1; border-color: #6fcf87; }

@media (max-width: 760px) {
  .lightbox { padding: 0; }
  .lb-card {
    flex-direction: column;
    border-radius: 0;
    max-height: 100vh;
    height: 100%;
    overflow-y: auto;
  }
  .lb-media { flex: 0 0 auto; min-height: 260px; max-height: 42vh; }
  .lb-info { padding: 26px 22px; }
  .lb-event-title { font-size: 1.35rem; }
  .lb-prev, .lb-next { width: 38px; height: 38px; font-size: 1.3rem; }
}

/* ============================================================
   FOOTER (shared footer markup used across the site)
   ============================================================ */

footer {
  background: #142a1c;
  color: #c8e8c4;
  padding: 56px 40px 28px;
  border-top: 1px solid rgba(120, 180, 120, 0.12);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 32px;
}

.footer-col h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #6fcf87;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(168, 213, 162, 0.2);
  display: inline-block;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin: 9px 0; }

.footer-col ul li a {
  text-decoration: none;
  color: rgba(200, 232, 196, 0.5);
  font-size: 0.9rem;
  transition: color 0.25s ease;
}

.footer-col ul li a:hover { color: #6fcf87; }

.map-container iframe {
  border-radius: 12px;
  width: 100%;
  min-width: 260px;
  height: 200px;
  border: none;
  opacity: 0.9;
}

.footer-text {
  text-align: center;
  margin-top: 32px;
  color: rgba(168, 213, 162, 0.35);
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-text strong { color: rgba(168, 213, 162, 0.6); }

.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-bottom a:hover { color: #d9a441; }

/* ============================================================
   RESPONSIVE — gallery-specific
   ============================================================ */

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .gallery-grid-wrap { padding: 50px 28px 60px; }
}

@media (max-width: 768px) {
  .gallery-hero { padding: 90px 20px 48px; }
  .gallery-stats { gap: 30px; }
  .gallery-controls { margin-top: -22px; }
  .controls-card { padding: 18px; }
  footer { padding: 40px 24px 24px; }
  .footer-container { flex-direction: column; }
}

@media (max-width: 600px) {
  .gallery-hero h1 { font-size: 2.5rem; }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .gallery-grid-wrap { padding: 40px 18px 50px; }
  .g-card { aspect-ratio: 3 / 4; }
}

/* ============================================================
   VIDEO-SPECIFIC ADDITIONS (clubs page only)
   ============================================================ */

/* "Watch Video" badge on a club card, same slot as the gallery's photo-count pill */
.g-card-count.is-video {
  background: rgba(217, 164, 65, 0.85);
  border-color: rgba(217, 164, 65, 0.6);
  color: #2b2308;
}

/* Play-button glyph shown over a video club's cover image */
.g-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(10, 20, 12, 0.55);
  border: 1px solid rgba(168, 213, 162, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  z-index: 3;
  opacity: 0.9;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease;
  pointer-events: none;
}

.g-card:hover .g-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: rgba(217, 164, 65, 0.85);
}

/* Video element inside the lightbox media pane, same slot as .lb-image */
.lb-video {
  width: 100%;
  height: 100%;
  max-height: 82vh;
  outline: none;
  background: #000;
  animation: lbFade 0.3s ease;
}

/* Arrows stay visible on video slides so mixed video + photo sets can be browsed */
.lb-media.is-video .lb-prev,
.lb-media.is-video .lb-next { top: 42%; }

.lb-thumb-video {
  width: 60px;
  height: 46px;
  border-radius: 8px;
  opacity: 0.5;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  background: #0d1c10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6fcf87;
  font-size: 0.85rem;
}

.lb-thumb-video:hover { opacity: 0.85; }
.lb-thumb-video.active { opacity: 1; border-color: #6fcf87; }

/* ---------- Social icons (footer) ---------- */
.social-icons { margin-top: 18px; text-align: center; }
.social-icons a {
  display: inline-block;
  margin: 0 10px;
  font-size: 18px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.7;
}
.social-icons a:hover { transform: scale(1.2); opacity: 1; }
.social-icons a.facebook { color: #1877f2; }
.social-icons a.instagram { color: #E1306C; }

.meet-team-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #d9a441, #b9852f);
  color: #142a1c;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 13px 30px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(217,164,65,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.meet-team-btn:hover {
  background: linear-gradient(135deg, #6fcf87, #4caf7d);
  color: #142a1c;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(111,207,135,0.4);
}
.footer-bottom { text-align: center; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1); }
