/* ----- Mixins ----- */
.video {
  --icon-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='28'%3E%3Cpath fill='%23FFF' fill-rule='evenodd' d='M21.222 12.417 2.147 1.063A1.437 1.437 0 0 0 1.4.844c-.747 0-1.356.617-1.356 1.37H.037v23.571h.007c0 .753.609 1.37 1.356 1.37.281 0 .514-.096.768-.233l19.054-11.34c.452-.376.74-.945.74-2.482 0 .262-.288-.299-.74-.683Z'/%3E%3C/svg%3E");
  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 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  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);
  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.hidden {
  opacity: 0;
  visibility: hidden;
}
.video__player {
  width: 100%;
  height: auto;
}
.video iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
p + .video {
  margin-top: var(--gap);
}
