/* Use the same artwork across viewport sizes, with a smaller image on phones. */
#top #product-demo.hero-video-backdrop.ow-product-film:not(.is-standalone) {
  background-color: #d3d8d4;
  background-image: url('./cloud-white-poster.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-color: #d3d8d4;
}

@media (width < 810px) {
  #top #product-demo.hero-video-backdrop.ow-product-film:not(.is-standalone) {
    background-image: linear-gradient(#cdcfca, #ced0cb);

    &::before,
    &::after,
    .ow-film-right-backdrop::before,
    .ow-film-right-backdrop::after {
      content: '';
      position: absolute;
      aspect-ratio: 20 / 9;
      background: center top / 100% 200% no-repeat url('./cloud-white-poster.jpg');
    }

    &::before,
    &::after {
      z-index: -2;
    }

    &::before,
    .ow-film-right-backdrop::before {
      inset: 0 0 auto;
      mask-image: linear-gradient(#000 82%, transparent);
    }

    &::after,
    .ow-film-right-backdrop::after {
      inset: auto 0 0;
      background-position: center bottom;
      mask-image: linear-gradient(to top, #000 82%, transparent);
    }

    &::after {
      aspect-ratio: 17 / 9;
    }

    /* Deeper crops move the right shoulders inward while preserving the left artwork. */
    .ow-film-right-backdrop {
      position: absolute;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      background-image: inherit;
      mask-image: linear-gradient(to right, transparent 84%, #000 89%);

      &::before,
      &::after {
        aspect-ratio: 16 / 9;
      }
    }
  }
}

@media (min-width: 810px) {
  #top #product-demo.hero-video-backdrop.ow-product-film:not(.is-standalone) {
    background-image: url('./cloud-white-4k.jpg'), url('./cloud-white-poster.jpg');
  }
}
