.hero-film {
  min-height: 56.25vw;
  isolation: isolate;
  overflow: hidden;
  background: #102b44;
}

.hero-film .hero-media {
  inset: 0;
}

.hero-film-poster,
.hero-film-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-film-video {
  opacity: 0;
}

.hero-film[data-video-ready] .hero-film-video {
  opacity: 1;
}

.hero-film .overlay {
  opacity: 1;
  mask-image: linear-gradient(to bottom, transparent 38%, #000 44%);
  background: linear-gradient(90deg, rgb(8 26 43 / 87%) 0%, rgb(8 26 43 / 58%) 35%, rgb(8 26 43 / 8%) 75%),
    linear-gradient(0deg, rgb(8 26 43 / 70%), transparent 60%);
}

.hero-film .hero-content-wrapper {
  pointer-events: none;
}

.hero-film .hero-content a {
  pointer-events: auto;
}

.hero-film-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 999px;
  background: rgb(8 26 43 / 86%);
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.hero-film-toggle[hidden] {
  display: none;
}

.hero-film-toggle:hover {
  background: #102b44;
}

.hero-film-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 1023px) {
  .hero-film {
    min-height: 0;
  }

  .hero-film .hero-media {
    position: relative;
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .hero-film .overlay,
  .hero-film .hero-dec {
    display: none;
  }

  .hero-film .hero-content-wrapper {
    padding-block: 32px 40px;
  }

  .hero-film:has(.hero-dec) .hero-content {
    margin-bottom: 0;
  }

  .hero-film-toggle {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: auto;
    padding: 8px 12px;
    font-size: 12px;
  }
}
