  @keyframes fadeInBackground {
  0% {
    background-color: rgba(var(--bs-dark-rgb, #000), 0);
  }
  100% {
    background-color: rgba(var(--bs-dark-rgb, #000), 0.85);
  }
}
@keyframes stretchWidth-80 {
  0% {
    width: 0;
  }
  100% {
    width: 80%;
  }
}
@keyframes stretchWidth-98 {
  0% {
    width: 0;
  }
  100% {
    width: 98%;
  }
}
.video-player {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  opacity: 0;
  animation: fadeInBackground 0.1s ease-in;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 1rem;
}

.video-player.expanded {
  display: flex;
  opacity: 1;
}

.video-player > iframe {
  width: 80%;
  aspect-ratio: 16/9;
  height: auto;
  max-height: 80%;
  background: black;
  margin-bottom: 2%;
  animation: stretchWidth-80 0.1s ease-out;
}

@media (max-width: 575.98px) {
  .video-player {
    padding: 5px;
    animation: fadeInBackground 0.3s ease-in;
  }
  .video-player > iframe {
    width: 98%;
    margin-bottom: 0;
    max-height: 90%;
    animation: stretchWidth-98 0.3s ease-out;
  }
}
.video-player .close-- {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
}

.block--video .backdrop {
  position: fixed !important;
  bottom: 0;
  left: 0;
  height: 0;
  pointer-events: none;
  width: 0;
  background-color: var(--bs-light);
  opacity: 0;
  transition: opacity 0.3s ease-out 0.15s;
}

.block--video .video-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1.778;
}

.block--video .video-wrapper .video {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  will-change: transform;
  transition: 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  transform-origin: center;
}

.block--video .video-wrapper .video:hover .play-button {
  opacity: 1;
}

.block--video .video-wrapper .video .play-button {
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  height: 60px;
  width: 60px;
  color: var(--wp--preset--color--gold-800);
  opacity: 0.9;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease-in-out;
}
