.backgroundFix {
  overflow: hidden;
}

.backgroundFix__image {
  height: 100vh;
  background-attachment: scroll;
  background-image: var(--separator-original);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@supports (background-image: image-set(url("") type("image/avif"))) {
  .backgroundFix__image {
    background-image: image-set(var(--separator-avif) type("image/avif"), var(--separator-original));
  }
}

@media (min-width: 768px) and (max-width: 1440px) and (pointer: coarse) {
  .backgroundFix__image {
    height: 55vh;
    height: 55svh;
    background-image: var(--separator-original);
  }

  @media (prefers-reduced-motion: no-preference) {
    @supports (height: 1svh) and (clip-path: inset(0)) {
      .backgroundFix {
        position: relative;
        height: 55svh;
        overflow: visible;
        clip-path: inset(0);
      }

      /* Extend the track so the image can stick while covering the opening. */
      .backgroundFix__track {
        position: absolute;
        inset: -25svh 0;
      }

      .backgroundFix__image {
        position: sticky;
        top: 0;
        height: 80svh;
      }
    }
  }
}

/* Fixed backgrounds can render incorrectly on iOS. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .backgroundFix__image {
    background-attachment: fixed;
  }
}
