.video {
  display: grid;
  margin-inline: auto;
  padding-inline: var(--space-large);
  width: min(100%, 90em);
}

/* .main sets no gap, so stacked videos would otherwise touch. */
.video + .video {
  margin-top: var(--space-large);
}

.video iframe {
  aspect-ratio: 16/9;
  border: none;
  border-radius: 0.4em;
  box-shadow:
    0 0 0 1px rgba(var(--rgb-black), 0.3),
    0 0.3em 2.0em -1.2em rgba(var(--rgb-black), 0.1),
    0 0.6em 2.4em -1.6em rgba(var(--rgb-black), 0.2),
    0 0.9em 2.8em -2.0em rgba(var(--rgb-black), 0.3),
    0 1.2em 3.2em -2.4em rgba(var(--rgb-black), 0.4),
    0 1.5em 3.6em -2.8em rgba(var(--rgb-black), 0.5)
  ;
  display: block;
  height: auto;
  object-fit: cover;
  overflow: hidden;
  width: 100%;
}



@media(min-width: 64em) {

  .video {
    padding-inline: var(--space-xx-large);
  }

}


/* Poster and play button standing in for the embed until someone clicks, so
   nothing is fetched from YouTube on page load. */
.video__facade {
  aspect-ratio: 16/9;
  background: var(--color-background-storm);
  border: none;
  border-radius: 0.4em;
  cursor: pointer;
  display: block;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.video__facade img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
  width: 100%;
}

.video__play {
  inset: 0;
  align-items: center;
  display: flex;
  justify-content: center;
  position: absolute;
}

.video__play svg {
  filter: drop-shadow(0 0.1em 0.5em rgba(var(--rgb-black), 0.5));
  opacity: 0.85;
  transition: opacity var(--transition);
  width: min(14%, 6em);
}



@media(hover: hover) {

  .video__facade:hover .video__play svg {
    opacity: 1;
  }

  .video__facade:hover img {
    transform: scale(1.02);
  }

}
