/* Video Embed block: poster + play triangle, swapped for a YouTube/Vimeo player on click (js/video-embed.js) */
.video-embed {
  --video-embed-ratio: 16/9;
  --video-embed-play: #FDFDFD;
  position: relative;
  aspect-ratio: var(--video-embed-ratio);
  width: 100%;
  overflow: hidden;
  background-color: #000;
}

/* Square and vertical videos: keep the whole frame on screen */
.video-embed--tall {
  max-width: calc(90vh * (var(--video-embed-ratio)));
  max-width: calc(90svh * (var(--video-embed-ratio)));
  margin-inline: auto;
}

.video-embed__play,
.video-embed__poster,
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-embed__play {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.video-embed__poster {
  object-fit: cover;
}

.video-embed__icon {
  position: relative;
  width: clamp(48px, 12%, 112px);
  height: auto;
  color: var(--video-embed-play);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s ease;
}

.video-embed__play:hover .video-embed__icon,
.video-embed__play:focus-visible .video-embed__icon {
  transform: scale(1.05);
}

.video-embed__play:focus-visible {
  outline: 3px solid var(--video-embed-play);
  outline-offset: -6px;
}

.video-embed.is-loading .video-embed__icon {
  opacity: 0.6;
}

.video-embed iframe {
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .video-embed__icon {
    transition: none;
  }
}
