.fb-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #05070c;
  pointer-events: none;
  isolation: isolate;
}

.fb-hero-video__channel,
.fb-hero-video__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fb-hero-video__channel {
  z-index: 0;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 4s cubic-bezier(.32, 0, .18, 1);
  will-change: opacity;
  background: #05070c;
}

.fb-hero-video__channel.is-current,
.fb-hero-video__channel.is-entering {
  opacity: .999;
}

.fb-hero-video__channel.is-current {
  z-index: 1;
}

.fb-hero-video__channel.is-entering {
  z-index: 2;
}

.fb-hero-video__channel.is-leaving {
  z-index: 1;
  opacity: .999;
}

.fb-hero-video__channel.is-recycling {
  visibility: hidden;
  opacity: 0;
  transition: none;
}

.fb-hero-video__veil {
  z-index: 3;
  background: #05070c;
  opacity: 1;
  transition: opacity 2.2s cubic-bezier(.4, 0, .2, 1);
}

.fb-hero-video.is-ready .fb-hero-video__veil {
  opacity: 0;
}

@media (max-width: 760px) {
  .fb-hero-video__channel {
    object-position: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fb-hero-video__channel {
    transition-duration: 1.2s;
  }

  .fb-hero-video__veil {
    transition-duration: 1.2s;
  }
}
