.vhs-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: var(--vhs-height-desktop, 100vh);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #111;
}

.vhs-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.vhs-video-frame {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Full-bleed "cover" technique for a YouTube background iframe.
   Width and height are each driven by two units (vw and vh) tied
   together by the fixed 16:9 ratio, so whichever pair is larger wins
   on BOTH axes at once - this guarantees full coverage with no gaps
   while always preserving the video's aspect ratio (no stretching). */
.vhs-hero iframe.vhs-iframe {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 100vw !important;
  height: calc(100vw * 9 / 16) !important;
  min-height: var(--vhs-height-desktop, 100vh) !important;
  min-width: calc(var(--vhs-height-desktop, 100vh) * 16 / 9) !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  margin: 0 !important;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.vhs-hero iframe.vhs-iframe.vhs-ready {
  opacity: 1;
}

.vhs-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, var(--vhs-overlay, 0.45));
  z-index: 1;
}

.vhs-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  max-width: 900px;
}

.vhs-title {
  margin: 0 0 20px;
  line-height: 1.15;
  font-weight: 700;
}

.vhs-title span {
  display: block;
}

.vhs-description {
  margin: 0 0 25px;
  line-height: 1.6;
  max-width: 600px;
}

.vhs-button {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid currentColor;
  color: inherit;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  transition: all 0.3s ease;
}

.vhs-button:hover {
  background: #fff;
  color: #111 !important;
}

@media (max-width: 767px) {
  .vhs-hero {
    height: var(--vhs-height-mobile, 70vh);
  }
  .vhs-hero iframe.vhs-iframe {
    min-height: var(--vhs-height-mobile, 70vh) !important;
    min-width: calc(var(--vhs-height-mobile, 70vh) * 16 / 9) !important;
  }
  .vhs-content {
    padding: 0 24px;
  }
  .vhs-title {
    font-size: 32px !important;
  }
  .vhs-title span {
    display: inline;
  }
  .vhs-description {
    font-size: 15px !important;
  }
}
