/* ==================================================
   HERO VIDEO (ACF BLOCK) — Responsive (NO letterbox bars)
   Strategy:
   - Make the HERO itself a 16:9 frame using aspect-ratio
   - Video/iframe fills that frame (no extra top/bottom space)
================================================== */


/* ❗️Avoid nuking Astra globally. Scope resets to the hero only. */
.conference-hero,
.conference-hero * {
  box-sizing: border-box;
}

/* Full align behavior */
.conference-hero.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

/* Outer section: true responsive video frame */
.conference-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;

  /* ✅ Key fix: frame height follows width (like skinbonescme.com) */
  aspect-ratio: 21 / 9;

}

/* =========================================
   HERO HEIGHT LOGIC
========================================= */

/* Default: when autoplay is OFF */
.conference-hero[data-autoplay="0"]{
  max-height: 600px !important;
}

/* When autoplay is ON → remove max height */
.conference-hero[data-autoplay="1"]{
  max-height: none;
}


/* If viewport is super short, allow it to shrink a bit more */
@media (max-height: 700px) {
  .conference-hero {
    max-height: 70vh;
  }
}

.conference-hero{
  position: relative;
  overflow: hidden;
}

.conference-hero p {
  margin: 0;
}

/* gradient overlay */
.conference-hero::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 225px;                 /* top fade area */
  background: linear-gradient(
    180deg,
    rgb(0 0 0 / .75) 0%,
    rgb(0 0 0 / .40) 60%,
    rgb(0 0 0 / 0) 100%
  );
  z-index: 5;                    /* ✅ ABOVE video/image */
  pointer-events: none;          /* ✅ doesn’t block clicks */
}

/* Inner bounds */
.conference-hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Background hero image (poster) */
.conference-hero-inner img.img-object-fit.img-cover,
.conference-hero-inner img.img-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ==================================================
   PLAY BUTTON (non-autoplay)
================================================== */

.conference-hero-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
}

.conference-hero-play-btn-icon {
  pointer-events: auto;
}

.conference-hero-play-btn-icon img.video_lightbox_anchor_image {
  display: block;
  width: clamp(68px, 8vw, 110px);
  height: clamp(68px, 8vw, 110px);
}

.conference-hero-play-btn-icon a.video-lightbox-link:hover {
  transform: scale(1.05);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
}

.conference-hero-play-btn-icon a.video-lightbox-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

/* ==================================================
   AUTOPLAY INLINE VIDEO
================================================== */

.conference-hero__video-inline {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
}

/* MP4 fills the frame */
.conference-hero__video-inline video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover; /* looks best for MP4 hero backgrounds */
}

/* Iframe fills the same 16:9 frame (no JS sizing needed now) */
.conference-hero__video-inline iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;

  /* Astra sometimes caps iframes */
  max-width: none !important;
  max-height: none !important;
}

/* Hide play button when autoplay is active */
.conference-hero__video-inline ~ .conference-hero-play-btn {
  display: none !important;
}

/* ==================================================
   HERO VIDEO LIGHTBOX
================================================== */

.hero-video-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: grid;
  place-items: center;
}

.hero-video-lightbox__inner {
  position: relative;
  width: min(90vw, 960px);
  aspect-ratio: 16 / 9;
  background: #000;
}

.hero-video-lightbox__media,
.hero-video-lightbox__media iframe,
.hero-video-lightbox__media video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.hero-video-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: #52287E;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  padding: 0 !important;
}


@media (min-width: 2400px) {
  .conference-hero[data-autoplay="0"] {
    max-height: 720px !important;
  }
}

@media (max-width: 1200px) {
/* gradient overlay */
  .conference-hero::before{
    display: none;
  }
  :root {
    --mobile-header-offset: 0px;
  }

  #content.site-content {
    padding-top: var(--mobile-header-offset);
  }

  .conference-hero {
    margin-top: 0 !important;
  }
}
