:root {
  --video-aspect-ratio: 16/9;
}

section > .background-video-container,
.background-video-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}
section > .background-video-container .background-video,
.background-video-container .background-video {
  opacity: 0;
}
section > .background-video-container .background-video.loaded,
.background-video-container .background-video.loaded {
  transition: opacity 2s ease-in;
  opacity: 1;
}
section > .background-video-container.video-type-youtube,
.background-video-container.video-type-youtube {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  justify-content: center;
  align-items: center;
  aspect-ratio: var(--video-aspect-ratio, 16/9);
}
section > .background-video-container.video-type-youtube .background-video,
.background-video-container.video-type-youtube .background-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  aspect-ratio: var(--video-aspect-ratio, 16/9);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@supports not (aspect-ratio: var(--video-aspect-ratio)) {
  section > .background-video-container.video-type-youtube .background-video,
  .background-video-container.video-type-youtube .background-video {
    width: calc(var(--video-aspect-ratio) * 100vh);
    height: calc(1 / var(--video-aspect-ratio) * var(--video-aspect-ratio) * 100vh);
  }
}
@supports (-webkit-touch-callout: none) {
  section > .background-video-container.video-type-youtube .background-video,
  .background-video-container.video-type-youtube .background-video {
    width: calc(var(--video-aspect-ratio) * 100vh);
    height: calc(1 / var(--video-aspect-ratio) * var(--video-aspect-ratio) * 100vh);
  }
}
section > .background-video-container.video-type-youtube .background-video iframe,
.background-video-container.video-type-youtube .background-video iframe {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

section.background-video-size-cover > .background-video-container .background-video {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
section.background-video-size-cover > .background-video-container .background-video video {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
section.background-video-size-contain > .background-video-container .background-video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  margin: auto;
}
section.background-video-size-constrain {
  width: 100%;
  height: 100%;
  aspect-ratio: var(--video-aspect-ratio, 16/9);
  overflow: hidden;
}
section.background-video-size-constrain > .background-video-container {
  width: 100%;
  height: 100%;
}
section.background-video-size-constrain > .background-video-container .background-video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
}
/*# sourceMappingURL=background-video.css.map */