/* Elevate4Change 1.4 — YouTube video players, full-screen video hero, glass gallery carousel */

/* ---------------- shared glass ---------------- */
.glass {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 34px -12px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .18);
}

/* ---------------- YouTube player + controls ---------------- */
.yt { position: relative; }
.yt-frame { position: absolute; inset: 0; overflow: hidden; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.yt-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .8s ease; z-index: 1; pointer-events: none;
}
.yt.is-playing .yt-poster { opacity: 0; }

.yt-controls {
  position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: 999px; color: #fff;
}
.yt-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 0; padding: 0;
  display: inline-grid; place-items: center; color: #fff; cursor: pointer;
  background: transparent; transition: background .2s ease, transform .2s ease;
}
.yt-btn:hover { background: rgba(255, 255, 255, .18); }
.yt-btn:active { transform: scale(.94); }
.yt-btn:focus-visible { outline: 2px solid #c9f158; outline-offset: 2px; }
.yt-btn svg { width: 18px; height: 18px; display: block; }
.yt-btn .i-play, .is-playing .yt-btn .i-pause { display: block; }
.yt-btn .i-pause, .is-playing .yt-btn .i-play { display: none; }
.yt-btn .i-sound, .is-unmuted .yt-btn .i-muted { display: none; }
.yt-btn .i-muted, .is-unmuted .yt-btn .i-sound { display: block; }
.yt-sep { width: 1px; height: 20px; background: rgba(255, 255, 255, .22); margin: 0 2px; }

/* inline (app page) player */
.yt-inline .yt-controls { left: 12px; bottom: 12px; }
.yt-inline .yt-frame { z-index: 0; }

/* ---------------- full-screen video hero ---------------- */
.hero-full.hero-video {
  width: 100%;
  min-height: 100vh; min-height: 100svh;
  height: 100vh; height: 100svh;
  background: #0a0a0c;
}
.hero-video .hero-full-media { transform: none !important; }
.hero-video .yt-frame iframe {
  inset: auto; top: 50%; left: 50%;
  width: max(100vw, 177.78vh); height: max(100vh, 56.25vw);
  width: max(100vw, 177.78svh); height: max(100svh, 56.25vw);
  transform: translate(-50%, -50%) scale(1.06);
  pointer-events: none;
}
.hero-video .yt-frame { opacity: 0; transition: opacity 1s ease; }
.hero-video .yt.is-playing .yt-frame { opacity: 1; }
.hero-video .yt-poster { filter: saturate(1.05); }

/* scrim deepens as the text arrives so the opening seconds stay clean */
.hero-video .hero-full-scrim { opacity: .35; transition: opacity 1.4s ease; }
.hero-video.hero-text-on .hero-full-scrim { opacity: 1; }

/* side text: hidden for the first 3 seconds, then drifts in subtly */
.hero-cue {
  opacity: 0; transform: translateX(-16px); filter: blur(6px);
  transition: opacity 1s var(--ease-reveal, ease), transform 1.1s var(--ease-reveal, ease), filter 1s ease;
  transition-delay: var(--d, 0ms);
}
.hero-text-on .hero-cue { opacity: 1; transform: none; filter: none; }
.hero-cue a, .hero-cue button { pointer-events: none; }
.hero-text-on .hero-cue a, .hero-text-on .hero-cue button { pointer-events: auto; }

.hero-video .yt-controls { right: clamp(14px, 3vw, 32px); bottom: clamp(18px, 4vh, 36px); }
@media (max-width: 767px) {
  .hero-video .hero-full-inner { padding-bottom: 96px; }
  .hero-video .yt-controls { right: 50%; transform: translateX(50%); bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cue { transform: none; filter: none; transition: opacity .4s ease; }
}

/* ---------------- glass gallery carousel ---------------- */
.gx-sec {
  position: relative; overflow: hidden; isolation: isolate;
  background: #0b0b10; color: #f5f5f7;
  padding-block: clamp(64px, 9vw, 120px);
}
.gx-ambient { position: absolute; inset: -60px; z-index: -1; }
.gx-ambient img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(60px) saturate(1.4) brightness(.55); transform: scale(1.1);
  opacity: 0; transition: opacity 1.2s ease;
}
.gx-ambient img.on { opacity: 1; }
.gx-sec::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 0%, rgba(11, 11, 16, 0) 0%, rgba(11, 11, 16, .55) 100%);
}
.gx-sec .marker, .gx-sec .marker * { color: rgba(245, 245, 247, .72); }
.gx-sec .m-num { color: #c9f158; }
.gx-sec h2 { color: #fff; }
.gx-sec .grad-text {
  background: linear-gradient(100deg, #cdf56b, #5eead4 40%, #7fb3f8, #e2b8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gx-sec .lede { color: rgba(245, 245, 247, .80); }
.gx-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.gx-fact {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px; color: rgba(245, 245, 247, .9);
}

.gx { margin-top: clamp(32px, 4vw, 48px); }
.gx-stage { position: relative; border-radius: 28px; padding: 10px; }
.gx-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: 20px; aspect-ratio: 16 / 9; max-height: 78vh; width: 100%;
  scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain;
}
.gx-track::-webkit-scrollbar { display: none; }
.gx-slide {
  position: relative; flex: 0 0 100%; height: 100%; margin: 0; overflow: hidden;
  scroll-snap-align: center; scroll-snap-stop: always; background: rgba(0, 0, 0, .35);
}
.gx-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gx-slide.portrait .gx-fill { filter: blur(26px) brightness(.6) saturate(1.2); transform: scale(1.15); }
.gx-slide.portrait .gx-main { object-fit: contain; }

.gx-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center;
  color: #fff; cursor: pointer; padding: 0; transition: background .2s ease, transform .2s ease;
}
.gx-nav:hover { background: rgba(255, 255, 255, .22); }
.gx-nav:active { transform: translateY(-50%) scale(.94); }
.gx-nav:focus-visible, .gx-thumb:focus-visible, .gx-play:focus-visible { outline: 2px solid #c9f158; outline-offset: 2px; }
.gx-prev { left: 24px; } .gx-next { right: 24px; }
.gx-nav svg { width: 20px; height: 20px; }

.gx-meta {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 5px 5px 16px; border-radius: 999px;
}
.gx-count { white-space: nowrap; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: #fff; font-variant-numeric: tabular-nums; }
.gx-bar { width: 72px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.gx-bar i { display: block; height: 100%; width: 0; background: #c9f158; }
.gx.is-auto .gx-bar i { animation: gx-progress var(--gx-int, 5s) linear forwards; }
.gx.is-held .gx-bar i { animation-play-state: paused; }
@keyframes gx-progress { from { width: 0 } to { width: 100% } }
.gx-play {
  width: 34px; height: 34px; border-radius: 999px; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; padding: 0;
}
.gx-play svg { width: 14px; height: 14px; }
.gx-play .i-play, .gx.is-auto .gx-play .i-pause { display: block; }
.gx-play .i-pause, .gx.is-auto .gx-play .i-play { display: none; }

.gx-thumbs {
  display: flex; gap: 8px; overflow-x: auto; margin-top: 14px; padding: 8px; border-radius: 18px;
  scrollbar-width: none; scroll-behavior: smooth;
}
.gx-thumbs::-webkit-scrollbar { display: none; }
.gx-thumb {
  flex: 0 0 auto; width: 84px; height: 56px; border-radius: 10px; overflow: hidden; padding: 0;
  border: 1px solid transparent; background: none; cursor: pointer; opacity: .5;
  transition: opacity .25s ease, border-color .25s ease, transform .25s ease;
}
.gx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gx-thumb:hover { opacity: .85; }
.gx-thumb[aria-current="true"] { opacity: 1; border-color: rgba(255, 255, 255, .85); transform: translateY(-2px); }

@media (max-width: 767px) {
  .gx-stage { padding: 6px; border-radius: 22px; }
  .gx-track { aspect-ratio: 4 / 5; border-radius: 16px; }
  .gx-nav { width: 40px; height: 40px; }
  .gx-prev { left: 14px; } .gx-next { right: 14px; }
  .gx-meta { bottom: 16px; }
  .gx-thumb { width: 64px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-track { scroll-behavior: auto; }
  .gx-ambient img { transition: none; }
}
