/* Image-source correction only: preserve the existing card dimensions and crop. */
#phase1-service .p1-card-photo {
  background-image: none !important;
  background-size: auto !important;
}

#phase1-service .p1-card-photo > picture {
  display: contents;
}

#phase1-service .p1-card-photo > picture > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  visibility: visible !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
  filter: none !important;
}

@media (max-width: 600px) {
  body.sp-phase2-active #phase1-service .p1-card-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 720 / 276;
    overflow: hidden;
  }
}

/* Preserve the already approved 390/393 visual-gate photo height. */
@media (min-width: 389px) and (max-width: 394px) {
  body.sp-phase2-active #phase1-service .p1-card-photo {
    aspect-ratio: 1056 / 563;
  }
}

@media (min-width: 601px) {
  #phase1-service .p1-card-photo {
    height: 210px;
    overflow: hidden;
  }
}
