/**
 * Landing page YouTube video
 * Location: /media/landing-video/landing-video.css
 */
.lv-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000 center / cover no-repeat;
}

/* Fallback for old browsers without aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .lv-hero { height: 0; padding-top: 56.25%; }
}

.lv-hero iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 0;
  transform: translate(-50%, -50%) scale(var(--lv-zoom, 1));
  /* Blocks hover/click on the player -> YouTube does not show its hover UI */
  pointer-events: none;
}

/* Optional: zoom in slightly to crop off the YouTube title bar and logo.
   Crops ~8% from each edge of the video – check that nothing important is cut. */
.lv-hero--crop { --lv-zoom: 1.18; }

.lv-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.lv-btn {
  padding: 6px 12px;
  border: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}
.lv-btn:hover,
.lv-btn:focus-visible { background: rgba(0, 0, 0, .85); outline: 2px solid #fff; }

@media (max-width: 575px) {
  .lv-btn { font-size: 12px; padding: 5px 9px; }
}
