.aptly-video-hero {
  position: relative;
  width: 100vw;
  max-width: none !important;
  height: 100vh;
  margin: 0 calc(50% - 50vw) !important;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

@supports (height: 100dvh) {
  .aptly-video-hero {
    height: 100dvh;
  }
}

.aptly-video-hero__player {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.7778vh);
  height: max(100vh, 56.25vw);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.01);
}

@supports (height: 100dvh) {
  .aptly-video-hero__player {
    width: max(100vw, 177.7778dvh);
    height: max(100dvh, 56.25vw);
  }
}

.aptly-video-hero__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 350ms ease;
}

.aptly-video-hero__layer.is-active {
  opacity: 1;
}

.aptly-video-hero__layer iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.aptly-video-hero__poster {
  position: absolute;
  z-index: 1;
  inset: 0;
  background-color: #000;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  opacity: 1;
  transition:
    opacity 500ms ease,
    visibility 0s linear 500ms;
}

.aptly-video-hero__poster.is-hidden {
  visibility: hidden;
  opacity: 0;
}
