/* Aspect ratios */
.video-ratio--16x9 { aspect-ratio: 16 / 9; }
.video-ratio--9x16 { aspect-ratio: 9 / 16; }
.video-ratio--4x3  { aspect-ratio: 4 / 3; }
.video-ratio--1x1  { aspect-ratio: 1 / 1; }
.video-ratio--21x9 { aspect-ratio: 21 / 9; }
.video-ratio--auto { aspect-ratio: auto; }

/* Fill the figure/wrapper */
.dkit-media-video-asset iframe,
.dkit-media-video-asset video {
  width: 100%;
  height: 100%;
  display: block;
}

/* Keep Drupal oEmbed wrappers at full height */
.video-display--player .media__video-player-wrapper,
.video-display--player .media__video-player-wrapper div:not(.contextual) {
  height: 100%;
}

/* Play button */
.dkit-video-play-btn {
  display: inline-block;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  color: #fff;
}

.dkit-video-play-btn--sm {
  width: 2rem;
  height: 2rem;
}

.dkit-video-play-btn--md {
  width: 3rem;
  height: 3rem;
}

.dkit-video-play-btn--lg {
  width: 5rem;
  height: 5rem;
}

.dkit-video-play-btn__bg {
  fill: rgba(0, 0, 0, 0.6);
}

.dkit-video-play-btn__arrow {
  fill: currentColor;
}

a:hover .dkit-video-play-btn,
a:focus .dkit-video-play-btn {
  transform: scale(1.1);
  opacity: 0.9;
}

.media__video-play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
