/* Final photographic assets retain the existing service-row proportions. */
body.responsive[data-theme-page='services'] .service-photo {
  aspect-ratio: 32 / 19;
  overflow: hidden;
  border: 1px solid #d4dbe3 !important;
  border-radius: 10px;
  background: #e7ebf0;
}
body.responsive[data-theme-page='services'] .service-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}
body.responsive[data-theme-page='services'] .service-imagery-note {
  max-width: 65ch;
  margin-top: 8px;
  color: #687585;
  font-size: 10px;
  line-height: 1.6;
}

/* On desktop the two editorial photos grow with their text columns. Absolute
   image positioning prevents intrinsic image height from sizing the grid row. */
@media (min-width: 901px) {
  body.responsive[data-theme-page='services'] .hero-grid,
  body.responsive[data-theme-page='services'] .amc-row { align-items: stretch; }
  body.responsive[data-theme-page='services'] #intro .figure,
  body.responsive[data-theme-page='services'] #amc .figure {
    display: flex;
    flex-direction: column;
    align-self: stretch;
  }
  body.responsive[data-theme-page='services'] #intro .service-photo,
  body.responsive[data-theme-page='services'] #amc .service-photo {
    position: relative;
    flex: 1;
    aspect-ratio: auto;
    min-height: 340px;
  }
  body.responsive[data-theme-page='services'] #amc .service-photo { min-height: 440px; }
  body.responsive[data-theme-page='services'] #intro .service-photo img,
  body.responsive[data-theme-page='services'] #amc .service-photo img {
    position: absolute;
    inset: 0;
  }
}
/* Preserve the engineer's face and working hands in the wider mobile frame. */
@media (max-width: 900px) {
  body.responsive[data-theme-page='services'] #amc .service-photo img { object-position: center 38%; }
}
