/* Service pages let each photograph set the height of its frame. */
.service-detail-page .detail-hero-photo {
  width: 100%;
  max-width: 550px;
  justify-self: center;
}

.service-detail-page .detail-hero-photo picture,
.service-detail-page .service-photo-card picture {
  display: block;
  background: none;
  border-radius: 0;
  overflow: visible;
}

.service-detail-page .detail-hero-photo img,
.service-detail-page .service-photo-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  background: none;
  border-radius: 0;
}

.service-project-photos {
  background: #f5f6f7;
}

.service-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.service-photo-card {
  min-width: 0;
  margin: 0;
  background: #fff;
}

.service-photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.service-photo-label {
  display: block;
  padding: 8px 12px;
  background: #102638;
  color: #fff;
  font-weight: 700;
}

.service-photo-card figcaption {
  padding: 16px 18px;
  border-top: 3px solid #dbad4d;
  color: #34495c;
  font-size: .9375rem;
  line-height: 1.65;
}

@media (max-width: 780px) {
  .service-photo-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}
