/* High-resolution photo sources only. Layout stays unchanged at every width. */
#phase1-flow .p1-step-photo {
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  image-rendering: auto;
  filter: none !important;
  transform: none !important;
}

#phase1-flow .p1-step:nth-child(1) .p1-step-photo {
  background-image: url("assets/phase1/flow-1-sp-restored.webp") !important;
}

#phase1-flow .p1-step:nth-child(2) .p1-step-photo {
  background-image: url("assets/phase1/flow-2-sp-restored-v2.webp") !important;
}

#phase1-flow .p1-step:nth-child(3) .p1-step-photo {
  background-image: url("assets/phase1/flow-3-sp-restored.webp") !important;
}

#phase1-flow .p1-step:nth-child(4) .p1-step-photo {
  background-image: url("assets/phase1/flow-4-sp-restored.webp") !important;
}

#phase1-flow .p1-step:nth-child(5) .p1-step-photo {
  background-image: url("assets/phase1/flow-5-sp-restored.webp") !important;
}

/* 601–840px inherits the desktop two-column flow; retain its approved height. */
@media (min-width: 601px) and (max-width: 840px) {
  body.sp-phase2-active #phase1-flow .p1-step-photo {
    height: 132px !important;
    align-self: center;
  }
}
