.video {
  aspect-ratio: 16/9;
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.video__thumbnail {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  transition: all 0.25s ease-in-out;
  opacity: 1;
  visibility: visible;
}
.video__thumbnail.hidden {
  opacity: 0;
  visibility: hidden;
}
.video__play {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  visibility: visible;
  cursor: pointer;
  width: 5em;
  height: 5em;
  background-color: var(--color-primary-hover);
  border-radius: 50%;
  box-shadow: 0 0.3em 1em rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease-in-out;
}
.video__play::after {
  content: "";
  mask: var(--icon-play) 55% center/auto 40% no-repeat;
  background-color: var(--color-white);
  z-index: 5;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transition: all 0.25s ease-in-out;
}
.video__play::before {
  content: "";
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 136%;
  height: 136%;
  border: 2px solid var(--color-white);
  transition: all 0.25s ease-in-out;
  transform: translate(-50%, -50%);
}
.video__play:hover {
  background-color: var(--color-secondary);
}
.video__play:hover::before {
  width: 160%;
  height: 160%;
}
.video__play:hover::after {
  background-color: var(--color-primary);
}
.video__play.hidden {
  opacity: 0;
  visibility: hidden;
}
.video__player {
  width: 100%;
  height: auto;
}
.video iframe {
  position: absolute;
  width: 100%;
  height: 100%;
}

p + .video {
  margin-top: var(--gap);
}
