/* The photo and ivory fades are painted on the section so the existing
   chapter motion can keep its own pseudo-elements. */
.r15-buy .guide-section.mk-ambient-photo,
.r15-sell .guide-section.mk-ambient-photo {
  background:
    linear-gradient(to bottom, #fcfaf7, transparent 10% 88%, #fcfaf7),
    var(--mk-ambient-veil),
    var(--mk-ambient-image) center var(--mk-ambient-position) / cover no-repeat,
    #fcfaf7;
  min-height: 445px;
  align-content: center;
}
.mk-ambient-photo--buy {
  --mk-ambient-image: image-set(url("/assets/r10/J2-landscape-960.webp") 1x, url("/assets/r10/J2-landscape-1440.webp") 2x);
  --mk-ambient-position: 48%;
  --mk-ambient-veil: linear-gradient(90deg,
    rgb(252 250 247 / .74),
    rgb(252 250 247 / .66) 39%,
    rgb(252 250 247 / .25) 47%,
    rgb(252 250 247 / .30) 50%,
    rgb(252 250 247 / .68) 55%,
    rgb(252 250 247 / .65) 89%,
    rgb(252 250 247 / .44));
}
.mk-ambient-photo--sell {
  --mk-ambient-image: image-set(url("/assets/r10/J1-landscape-960.webp") 1x, url("/assets/r10/J1-landscape-1440.webp") 2x);
  --mk-ambient-position: 53%;
  --mk-ambient-veil: linear-gradient(90deg,
    rgb(252 250 247 / .73),
    rgb(252 250 247 / .66) 41%,
    rgb(252 250 247 / .28) 47%,
    rgb(252 250 247 / .66) 51% 72%,
    rgb(252 250 247 / .36));
}
.guide-section.mk-ambient-photo :is(.label, h2, h3, dt, p, dd) {
  color: #142c38;
}
@media (701px <= width <= 1100px) {
  .r15-buy .guide-section.mk-ambient-photo,
  .r15-sell .guide-section.mk-ambient-photo {
    --mk-ambient-veil: linear-gradient(90deg, rgb(252 250 247 / .66) 40%, rgb(252 250 247 / .55) 49%, rgb(252 250 247 / .66) 57%);
  }
}
@media (max-width: 700px) {
  .r15-buy .guide-section.mk-ambient-photo,
  .r15-sell .guide-section.mk-ambient-photo {
    --mk-ambient-position: 50%;
    --mk-ambient-veil: linear-gradient(to bottom,
      rgb(252 250 247 / .66) 26%,
      rgb(252 250 247 / .62) 43% 88%,
      rgb(252 250 247 / .38));
    min-height: 0;
    padding-top: 58px;
    padding-bottom: 74px;
  }
  .mk-ambient-photo--buy {
    --mk-ambient-image: image-set(url("/assets/r10/J2-mobile-390.webp") 1x, url("/assets/r10/J2-mobile-780.webp") 2x);
  }
  .mk-ambient-photo--sell {
    --mk-ambient-image: image-set(url("/assets/r10/J1-mobile-390.webp") 1x, url("/assets/r10/J1-mobile-780.webp") 2x);
  }
}

/* Let the editorial photos sit behind the process sections and fade into the page. */
.r15-detail-band.mk-process-scene {
  position: relative;
  isolation: isolate;
}
.mk-process-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 10% 88%, transparent);
}
.mk-process-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mk-process-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgb(252 250 247 / .74),
    rgb(252 250 247 / .66) 37%,
    rgb(252 250 247 / .30) 43%,
    rgb(252 250 247 / .34) 45%,
    rgb(252 250 247 / .69) 49% 92%,
    rgb(252 250 247 / .45));
}
.r15-detail-band.mk-process-scene :is(.label, h2, h2 em, p, li strong, li span) {
  color: #142c38;
}
@media (701px <= width <= 1100px) {
  .mk-process-photo::after {
    background: linear-gradient(90deg, rgb(252 250 247 / .68) 37%, rgb(252 250 247 / .61) 49%, rgb(252 250 247 / .67) 55%);
  }
}
@media (max-width: 700px) {
  .mk-process-photo {
    bottom: auto;
    height: min(146vw, 680px);
    mask-image: linear-gradient(to bottom, transparent, #000 11% 69%, transparent);
  }
  .mk-process-photo::after {
    background: linear-gradient(rgb(252 250 247 / .64) 15%, rgb(252 250 247 / .55) 45%, rgb(252 250 247 / .64) 75%);
  }
}
