.hero__media[data-persons-parallax] {
  inset: -8rem 0;
  width: auto;
  height: auto;
  transform: translate3d(0, 0, 0);
}

.about-section.has-parallax,
.contact-section.has-parallax {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.persons-parallax-layer {
  position: absolute;
  z-index: 0;
  inset: -10rem 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

.persons-parallax-layer--about {
  background: linear-gradient(180deg, var(--persons-white), var(--persons-cream));
}

.persons-parallax-layer--contact {
  background:
    radial-gradient(circle at 20% 20%, rgb(255 255 255 / 55%), transparent 42%),
    var(--persons-pink-soft);
}

.about-section.has-parallax > .content-container,
.contact-section.has-parallax > .content-container {
  position: relative;
  z-index: 1;
}

@media (max-width: 47.999rem), (prefers-reduced-motion: reduce) {
  .hero__media[data-persons-parallax] {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0);
  }

  .persons-parallax-layer {
    inset: 0;
    transform: translate3d(0, 0, 0);
  }
}

@media print {
  .persons-parallax-layer {
    display: none;
  }
}
