/* Hero Video
   ========================================================================== */

/* Prevent 100vw from causing a horizontal scrollbar */
body:has(.yif-hero-video) {
  overflow-x: hidden;
}

.yif-hero-video {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin-left: calc(50% - 50vw);
  background: #222;
  overflow: hidden;
}

.yif-hero-video__poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Scale iframe to cover the full viewport regardless of aspect ratio */
.yif-hero-video__iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  /* viewport is wider than 16:9 */
  min-width: 177.78vh;
  /* viewport is taller than 16:9 */
  min-height: 100vh;
  transform: translate(-50%, -50%);
  border: 0;
  z-index: 2;
}

/* Eyebrow text — sits above the overlay panel */
.yif-hero-video__eyebrow {
  position: absolute;
  top: 4.5rem;
  right: 10.3vw;
  width: 39.7vw;
  color: #fff;
  text-align: right;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 3;
  margin: 0;
  padding: 0;
}

/* Content overlay panel */
.yif-hero-video__overlay {
  position: absolute;
  top: 0;
  right: 10vw;
  width: 39.7vw;
  height: calc(100% - 10rem);
  background: rgba(182, 162, 180, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  margin-top: 10rem;
  text-align: center;
  color: #fff;
  z-index: 3;
  box-sizing: border-box;
}

.yif-hero-video__overlay-inner {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.yif-hero-video__crest {
  width: 150px;
  height: auto;
  margin-bottom: 40px;
}

.yif-hero-video__brand {
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-weight: 400;
  color: #fff;
}

.yif-hero-video__tagline {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #fff;
  font-family: 'script', Helvetica, Arial, Lucida, sans-serif, 'mook';
}

.yif-hero-video__body {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 380px;
  color: #fff;
}

.yif-hero-video__cta {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}

.yif-hero-video__cta:hover {
  background: #fff;
  color: #84667c;
}

/* ---- Responsive ---- */
@media (max-width: 1400px) {}

@media (max-width: 1200px) {}

@media (max-width: 992px) {}

@media (max-width: 768px) {
  .yif-hero-video__eyebrow {
    display: none;
  }

  .yif-hero-video__overlay {
    right: 0;
    width: 100%;
    margin-top: 0;
    height: 100%;
  }

  .yif-hero-video__crest {
    display: none;
  }
}

@media (max-width: 576px) {}