/* Service pages: keep the quote and its scope together, and give real work
   a frame determined by the photograph rather than the height of the copy. */
.seo__hero-grid {
  display: grid;
  grid-template-areas: "intro photo" "facts photo";
  grid-template-rows: auto auto;
  row-gap: 26px;
}

.seo__hero-copy {
  grid-area: intro;
  align-self: end;
}

.seo__offer {
  margin: 0 0 22px;
  max-width: 42ch;
}

.seo__offer strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(20px, 1.75vw, 25px);
  line-height: 1.2;
}

.seo__offer span,
.seo__photo figcaption {
  display: block;
  color: #555b61;
  font-size: 13px;
  line-height: 1.5;
}

.seo__facts {
  grid-area: facts;
  align-self: start;
  margin: 0;
}

.seo__photo {
  grid-area: photo;
  align-self: center;
  justify-self: end;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.seo__photo--portrait {
  max-width: 462px;
}

.seo__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.seo__photo .work-photo-link + .work-photo-link,
.seo__photo figcaption {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .seo__hero-grid {
    grid-template-areas: "intro" "photo" "facts";
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .seo__photo {
    justify-self: center;
    max-width: 600px;
  }

  .seo__photo--portrait {
    max-width: 462px;
  }
}
