/* Shared YouTube embeds: Elementor Video widget (Fall & Spring format)
   + legacy muted cover hero (saiie-yt-hero-frame). */

/* —— Elementor Video widget (preferred) —— */
.saiie-yt-video.elementor-widget-video,
.saiie-fall-spring-v2-hero-video.elementor-widget-video,
.saiie-volunteering-v2-hero-video.elementor-widget-video,
.saiie-accommodation-v2-hero-video.elementor-widget-video {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 32px !important;
}

.saiie-yt-video .elementor-widget-container,
.saiie-fall-spring-v2-hero-video .elementor-widget-container,
.saiie-volunteering-v2-hero-video .elementor-widget-container,
.saiie-accommodation-v2-hero-video .elementor-widget-container {
  display: block;
  width: 100%;
  margin: 0;
  line-height: 0;
}

.saiie-yt-video .elementor-wrapper,
.saiie-fall-spring-v2-hero-video .elementor-wrapper,
.saiie-volunteering-v2-hero-video .elementor-wrapper,
.saiie-accommodation-v2-hero-video .elementor-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b1c2c;
  overflow: hidden;
}

.saiie-yt-video .elementor-wrapper iframe,
.saiie-yt-video .elementor-video,
.saiie-fall-spring-v2-hero-video .elementor-wrapper iframe,
.saiie-fall-spring-v2-hero-video .elementor-video,
.saiie-volunteering-v2-hero-video .elementor-wrapper iframe,
.saiie-volunteering-v2-hero-video .elementor-video,
.saiie-accommodation-v2-hero-video .elementor-wrapper iframe,
.saiie-accommodation-v2-hero-video .elementor-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* —— Legacy muted cover hero —— */
.saiie-yt-hero-frame {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(480px, 72vh, 900px);
  overflow: hidden;
  background: #0b1c2c;
}

.saiie-yt-hero-frame iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-width: 177.78%;
  min-height: 100%;
  border: 0;
  transform: translate(-50%, -50%) scale(1.45);
  pointer-events: none;
}

.saiie-yt-hero-shield {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  cursor: default;
}

.saiie-yt-hero-sound-toggle {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 28, 44, 0.82);
  color: #fff;
  font: 600 13px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.saiie-yt-hero-sound-toggle:hover,
.saiie-yt-hero-sound-toggle:focus-visible {
  background: rgba(11, 28, 44, 0.95);
  outline: none;
  transform: translateY(-1px);
}

.saiie-yt-hero-sound-icon {
  display: none;
  line-height: 0;
}

.saiie-yt-hero-sound-toggle.is-muted .saiie-yt-hero-sound-icon-muted,
.saiie-yt-hero-sound-toggle:not(.is-muted) .saiie-yt-hero-sound-icon-on {
  display: block;
}

.saiie-yt-hero-sound-label {
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .saiie-yt-video.elementor-widget-video,
  .saiie-fall-spring-v2-hero-video.elementor-widget-video,
  .saiie-volunteering-v2-hero-video.elementor-widget-video,
  .saiie-accommodation-v2-hero-video.elementor-widget-video {
    margin-bottom: 24px !important;
  }

  .saiie-yt-hero-frame {
    height: clamp(320px, 48vh, 480px);
  }

  .saiie-yt-hero-sound-toggle {
    right: 12px;
    bottom: 12px;
    padding: 9px 12px;
    font-size: 12px;
  }
}
