  /* ===== Slider + page styles ===== */
  :root {
    --slide-speed-ms: 350;   /* scroll animation speed */
    --bg: #000000;
    --card: #000000;
    --text: #ffffff;
    --gap: 16px;
  }



/* Hide the template-injected hamburger & panel */
.navPanelToggle,
#navPanel { display: none !important; }


/* ===== YouTube video header styles ===== */
/* container for YT video + overlay content */  
#header.video-header .hero-clip{
  position: absolute;
  inset: 0;
}

/* ===== Mobile menu styles ===== */
.menu {
  display: none;
  flex-direction: column;
  background: #000;
  position: absolute;
  top: 60px;  /* adjust depending on header height */
  right: 10px;
  z-index: 99;
}
.menu.active {
  display: flex;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 100;
}



/* make the actual YT <iframe> behave like background-cover */
#header.video-header .video-background iframe{
  position: absolute !important;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  /* Cover math: 16:9 ratio */
  width: 100vw;
  height: 56.25vw;               /* 9/16 of width */
  min-width: 177.78vh;           /* 16/9 of height */
  min-height: 100vh;
  pointer-events: none;          /* clicks go to overlay */
}

/* content on top of the video */
#header.video-header .header-overlay{
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
  color: #fff;
}

/* optional: subtle dark scrim for readability */
#header.video-header::after{
  content:"";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.1), rgba(0,0,0,.45) 70%);
  z-index: 1;
}

/* IMPORTANT: do NOT constrain the hero clip with aspect-ratio */
#header.video-header .hero-clip{ aspect-ratio: auto; }

/* Keep aspect-ratio for non-hero loops elsewhere on the page */
.yt-loop{ aspect-ratio: 16/9; width: 100%; background:#000; border-radius:12px; overflow:hidden; }
  #post-slider {
    position: relative;
    background: var(--bg);
    padding: 16px 16px 80px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0;
  }

  /* Each video box */
.yt-loop{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

/* The YouTube iframe fills the box */
.yt-loop iframe{
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Unmute / Play-with-sound button */
.yt-cta{
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* Small "CC" badge (visual hint that captions are on/requested) */
.yt-cc-badge{
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 3;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

/* If any global CSS sets pointer-events:none on iframes, undo it here */
.yt-loop iframe{ pointer-events: auto; }


#header.video-header{
  --hero-h: min(92vh, 400px);   /* tweak this */
  height: var(--hero-h);
}

@media (max-width: 640px){
  #header.video-header{ --hero-h: 70vh; }
}




  
  /* Scroll-snap rail */
  #post-slider .rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: var(--gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

  /* Card */
  #post-slider .slide {
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);
    align-items: center;
    background: var(--card);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  }

  .media-col {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .media-col iframe {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 10px;
  }

  /* Controls */
  #post-slider .controls {
    position: absolute;
    inset: auto 0 10px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
    pointer-events: none;
  }
  #post-slider .controls button {
    pointer-events: all;
    background: #386b2c;
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.45);
    border-radius: 99px;
    padding: 6px 10px;
    cursor: pointer;
    transition: transform .08s ease;
  }
  #post-slider .controls button:active { transform: scale(.96); }

  #post-slider .dots {
    display: flex;
    gap: 6px;
    pointer-events: all;
  }
  #post-slider .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(0,0,0);
    cursor: pointer;
  }
  #post-slider .dot[aria-current="true"] { background: rgba(0,0,0,.85); }

  /* Stack on narrow screens */
  @media (max-width: 780px) {
    #post-slider .slide { grid-template-columns: 1fr; }
  }

  /* Section layout block */
  section {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-items: center;
    background-color: #000000;
    padding: 1em;
    gap: 20px;
  }

  .media {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
  }

  .cool-btn {
    background: linear-gradient(135deg, #0e1e1b, #444);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
  }
  .cool-btn:hover {
    background: linear-gradient(135deg, #eec200, #472a2a);
    transform: scale(1.05);
  }
  .track-title {
    margin-left: 8px;
    font-family: system-ui, sans-serif;
    font-size: 14px;
    color: #eee;
  }

  /* ===== backdrop youtube header ===== */
  .video-header {
    position: relative;
    height: 100vh;        /* adjust height here --- full screen */
    
    min-height: 600px;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }
  .video-background{
  position: absolute; 
  inset: 0;  /* fill the section */
  z-index: 0;
    overflow: hidden;
}

.header-overlay{ position: relative; z-index: 0; } 

.video-background iframe,
.video-background .yt-loop{
  width: 100%; height: 100%;
  pointer-events: none;          /* let clicks go to overlay */
  object-fit: cover;
}
.header-overlay{
  position: relative;
  z-index: 1;                    /* ABOVE the video */
  display: grid;
  place-items: center;
  min-height: inherit;
  text-align: center;
}

  /* Button + text block below header */
  .cool-btn-hero {
    margin: 20px 0;
    padding: 12px 24px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    background-color: #45814a;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .cool-btn-hero:hover {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    transform: scale(1.05);
  }
  .track-title-hero {
    margin-left: 10px;
    font-weight: bold;
  }

/* === Audio controls below hero: layout + responsive size === */
#audio-container > div:last-of-type{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;        /* allow wrap on narrow phones */
}

/* defaults (desktop/tablet) — keeps your look but a touch tighter */
#audio-container .cool-btn-hero{
  padding: 10px 18px;     /* slightly smaller than 12px 24px */
  font-size: 1rem;        /* was 1.1rem */
}

/* phone tweaks */
@media (max-width: 640px){
  #audio-container .cool-btn-hero{
    padding: 8px 14px;    /* smaller tap “chrome”, still comfy */
    font-size: 0.95rem;
    border-radius: 8px;
    min-height: 44px;     /* accessible tap target */
    min-width: 92px;      /* keeps labels readable */
  }

  #audio-container > div:last-of-type{
    gap: 8px;
  }
}

/* Optional: if you want them to stay on one line with side scroll on tiny phones,
   replace the wrap container with this:
#audio-container > div:last-of-type{
  display:flex; gap:10px; justify-content:center; flex-wrap:nowrap;
  overflow:auto; -webkit-overflow-scrolling:touch;
}
*/


  /* Cards */
  .card {
    display: inline-block;
    margin: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }
  .card img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }
  .card:hover img {
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.8);
    transform: scale(1.05);
  }
  .card p {
    margin-top: 8px;
    font-weight: bold;
  }

/* Banner fills the full viewport */
#banner{
  position: relative;
  min-height: 100vh;          /* full screen */
  width: 100%;
  overflow: hidden;
}

/* Video layer sits behind everything */
#banner .video-background{
  position: absolute;
  inset: 0;                   /* top/right/bottom/left: 0 */
  overflow: hidden;
  z-index: 0;
}

/* Center the iframe and make it "background-cover" */
#banner .video-background iframe{
  position: absolute !important;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  /* Cover math for 16:9 YouTube */
  width: 100vw;
  height: 56.25vw;            /* 9/16 of width */
  min-width: 177.78vh;        /* 16/9 of height */
  min-height: 100vh;
  pointer-events: none;       /* clicks go to overlay */
}

/* Your content on top of the video */
.banner-content{
  position: relative;
  z-index: 1;                 /* above video */
  min-height: 20vh;          /* match banner height */
  display: grid;              /* easy centering */
  place-items: center;        /* center content */
  padding: 0;                 /* you asked for 0 */
  text-align: center;         /* optional */
}

/* Actions list (button wrapper) — kill margins/padding */
.banner-content .actions{
  display: flex;
  gap: 0px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.banner-content .actions li{ margin: 0; }

/* Optional: add a subtle readable overlay */
#banner::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.15) 60%, rgba(0,0,0,.35));
  z-index: 0.5;               /* between video (0) and content (1) */
}

  .w3-button {
    margin-top: 0px;
    padding: 12px 24px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    background-color: #000;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

/* Paragraph readability without adding extra space */
.banner-content p{
  line-height: 1.3;          /* tweak to taste */
}

  .w3-button:hover {
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.8);
    transform: scale(1.05);
  }

  @media (max-width: 480px){
  .banner-content{ gap: 8px; }
}
   body { padding-top: 56px; } /* make room for fixed bar */

  /* Fixed top bar */
  .topbar{
    position: fixed; top: 0; left: 0; right: 0;
    display: flex; align-items: center;
    padding: 10px 14px;
    background: rgba(0,0,0,.8);
    z-index: 1000;
    justify-content: center; /* center brand by default */
    align-items: center;
  }

  /* Push menu group to right; anchor dropdown to it */
  .menu-wrap{
    margin-left: auto;
    position: relative;    /* anchor point for #nav dropdown */
    display: flex; align-items: center;
  }

  /* Hide any template-provided toggles to avoid duplicates */
  .menuToggle, .navPanelToggle { display: none !important; }





/* --- STICKY HAMBURGER + DROPDOWN (travels with scroll) --- */

/* Hide any stray theme toggle */
.navPanelToggle { display: none !important; }

/* Topbar can stay static; we’ll float the button/menu */
.topbar { position: relative; z-index: 2000; }

/* Button */
.hamburger{
  position: fixed;          /* <-- key: follows viewport */
  top: max(14px, env(safe-area-inset-top));   /* notched phones safe */
  right: max(20px, env(safe-area-inset-right));
  z-index: 4000;

  display: inline-flex;
  flex-direction: column; justify-content: center;
  gap: 6px;
  width: 40px; height: 40px; padding: 8px;
  border: 0; border-radius: 8px;
  background: rgba(0,0,0,0.35);  /* subtle bg so it’s visible over video */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span{
  display:block; width:24px; height:3px;
  background:#fff; border-radius:2px;
  transition: transform .2s ease, opacity .2s ease;
}
/* “X” animation */
.hamburger.is-open span:nth-child(1){ transform: translateY(9px) rotate(45deg); }
.hamburger.is-open span:nth-child(2){ opacity: 0; }
.hamburger.is-open span:nth-child(3){ transform: translateY(-9px) rotate(-45deg); }

/* Dropdown panel (fixed so it sticks under the button while scrolling) */
#nav{
  position: fixed;          /* <-- key: follows viewport */
  top: calc(max(14px, env(safe-area-inset-top)) + 46px); /* under button */
  right: max(20px, env(safe-area-inset-right));
  z-index: 3999;

  min-width: 220px;
  background: rgba(0,0,0,.90);
  color:#fff;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);

  /* single show/hide model (no duplicates!) */
  display: none;            /* hidden by default */
}
#nav.open{ display: block; }

#nav ul{ margin:0; padding:6px 0; list-style:none; }
#nav li{ margin:0; }
#nav a{ display:block; padding:12px 16px; color:#fff; text-decoration:none; }
#nav a:hover{ background: rgba(255,255,255,.08); }

/* If videos/overlays block clicks, make them ignore pointer events */
#header .video-background,
#banner .video-background { pointer-events: none; }

