/* Factory-cure film. Contained 16:9 stage; play, pause, and mute come from fx.css. */

.uv-film {
  background: var(--fx-charcoal);
  color: var(--fx-linen);
  color-scheme: dark;
  padding: var(--fx-section) var(--fx-margin);
}

.uv-film__layout {
  width: min(var(--fx-max), 100%);
  margin-inline: auto;
  display: grid;
  gap: 28px;
}

.uv-film__text {
  display: grid;
  gap: 16px;
  max-width: 46ch;
}

.uv-film__text .fx-body {
  margin: 0;
}

.uv-film .fx-film__stage {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.uv-film .fx-film__stage::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.uv-film .fx-film__video,
.uv-film .fx-film__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.uv-film .fx-film__play {
  justify-content: center;
  padding: 24px;
}

.uv-film .fx-film__bar {
  top: 16px;
  right: 16px;
}

@media (max-width: 899px) {
  .uv-film__copy {
    display: contents;
  }

  .uv-film .fx-eye {
    margin-bottom: 0;
  }

  .uv-film .fx-film__stage {
    order: 1;
  }

  .uv-film__text {
    order: 2;
  }
}

@media (min-width: 900px) {
  .uv-film__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
  }

  .uv-film__text {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uv-film .fx-film__card,
  .uv-film .fx-film__hit::before {
    transition: none;
  }
}
