/* Preserve the whole subject in the People & Communities editorial photographs.
   The former fixed-height cover crop cut off homes and the people in the
   Alamogordo Habitat image on wide screens. A restrained photo mat keeps the
   page rhythm while allowing each source image to retain its composition. */
.editorial-reader.web-edition #article-content .people-umbrella-topic-body > .people-topic-photo {
  background: linear-gradient(135deg, #e8e2e9, #f5f1ee);
}

.editorial-reader.web-edition #article-content .people-umbrella-topic-body > .people-topic-photo img {
  height: clamp(300px, 38vw, 500px);
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.editorial-reader.web-edition #article-content [data-article="household-composition"] .people-topic-photo img {
  object-position: center;
}

/* Keep both historic houses legible in their compact chapter covers. */
.editorial-reader.web-edition #article-content[data-article="people-housing"] .people-umbrella-hero-photo {
  background: linear-gradient(140deg, #4b3954, #856879);
}

.editorial-reader.web-edition #article-content[data-article="people-housing"] .people-umbrella-hero-photo img {
  object-fit: contain;
  object-position: center;
}

.editorial-reader.web-edition #article-content[data-article="housing-markets-and-affordability"] .executive-opening-photo {
  background: linear-gradient(140deg, #dcd0d3, #f1e9e6);
}

.editorial-reader.web-edition #article-content[data-article="housing-markets-and-affordability"] .executive-opening-photo img {
  object-fit: contain;
  object-position: center;
  background: transparent;
}

/* The Artesia rig image is a vertical composition. Present it as a portrait
   feature rather than shrinking it into a landscape strip. */
.editorial-reader.web-edition #article-content [data-article="top-occupations-by-industry"] .people-topic-photo {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  align-items: stretch;
}

.editorial-reader.web-edition #article-content [data-article="top-occupations-by-industry"] .people-topic-photo img {
  height: 500px;
}

.editorial-reader.web-edition #article-content [data-article="top-occupations-by-industry"] .people-topic-photo figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  min-height: 0;
  padding: clamp(24px, 3vw, 38px);
  border-top: 0;
  border-left: 4px solid var(--people-story-accent);
  background: linear-gradient(155deg, #fffaf8, #f2eaf1);
}

.editorial-reader.web-edition #article-content [data-article="top-occupations-by-industry"] .people-topic-photo figcaption > span {
  font-size: clamp(.98rem, 1.5vw, 1.22rem);
  line-height: 1.45;
}

@media (max-width: 1050px) {
  .editorial-reader.web-edition #article-content[data-article="housing-markets-and-affordability"] .executive-opening-photo {
    height: auto;
  }

  .editorial-reader.web-edition #article-content[data-article="housing-markets-and-affordability"] .executive-opening-photo img {
    position: relative;
    flex: none;
    height: clamp(245px, 55vw, 430px);
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .editorial-reader.web-edition #article-content[data-article="housing-markets-and-affordability"] .executive-opening-photo img {
    height: 245px;
  }

  .editorial-reader.web-edition #article-content .people-umbrella-topic-body > .people-topic-photo img {
    height: 240px;
  }

  .editorial-reader.web-edition #article-content [data-article="top-occupations-by-industry"] .people-topic-photo {
    grid-template-columns: 1fr;
  }

  .editorial-reader.web-edition #article-content [data-article="top-occupations-by-industry"] .people-topic-photo img {
    height: 360px;
  }

  .editorial-reader.web-edition #article-content [data-article="top-occupations-by-industry"] .people-topic-photo figcaption {
    border-left: 0;
    border-top: 4px solid var(--people-story-accent);
  }
}
