/* EDC 4.1 — full-bleed photography and responsive image framing. */
.edc-story-visual,
.edc-story-mobile,
.edc-pathway-image,
.edc-service-image,
.edc-record-image,
.edc-memory-photo,
.edc-community-photo,
.edc-investment-picture,
.edc-update-image,
.edc-contact-banner,
.edc-contact-brand,
.detail-hero,
.hub-cover,
.team-banner,
.project-archive-hero,
.project-cover,
.project-main-image img,
.gallery-image,
.service-detail-image,
.card-image,
.project-pathway-card .card-image,
.pathway-picture,
.cms-archive-hero > img,
.cms-single-cover,
.cms-photo-grid img,
.direction-photo {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* The photograph meets the card's outside edge; copy retains its own spacing. */
.project-pathway-card,
.service-detail-card,
.cms-card {
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
}
.project-pathway-card { padding-bottom: 26px; }
.project-pathway-card h2 { margin: 22px 22px 0; }
.project-pathway-card > p { margin: 12px 22px 0; }
.project-pathway-card[aria-current="page"] { box-shadow: inset 0 -3px var(--red); }
.direction-card {
  padding: 0 0 28px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--cream);
}
.direction-card > :not(.direction-photo) { margin-inline: 26px; }
.direction-card > .direction-photo { display: block; margin: 0 0 25px; }
.edc-community-content { border-radius: 0; }

/* Edge-to-edge media keeps its proportions at every viewport width. */
.edc-story-frame > img,
.edc-story-mobile > img,
.edc-pathway-image > img,
.edc-service-image > img,
.edc-record-image > img,
.edc-memory-photo > img,
.edc-community-photo > img,
.edc-investment-picture > img,
.edc-update-image > img,
.detail-hero > img,
.hub-cover > img,
.team-banner > img,
.project-archive-hero > img,
.project-cover > img,
.service-detail-image > img,
.card-image > img,
.cms-card-image > img,
.gallery-image > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}
.page-mission .detail-hero img,
.page-services .detail-hero img { object-fit: cover; }
.page-purpose .detail-hero { height: auto; aspect-ratio: 16 / 9; }
.page-purpose .detail-hero img { object-fit: cover; }
.cms-single-cover { display: block; height: auto; }
.cms-photo-grid a { display: block; overflow: hidden; }
.cms-photo-grid img { display: block; width: 100%; height: auto; }

/* Keep the full brand artwork visible without internal letterboxing. */
.edc-contact-brand { position: relative; min-height: 0; }
.edc-contact-brand img { width: 100%; height: 100%; object-fit: cover; }
.edc-wr-link { display: inline-block; margin-bottom: 30px; }
.edc-investment-copy .edc-wr-link .edc-wr-logo {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
}
.edc-wr-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px 24px;
  min-height: 52px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--edc-ink, #201e1b);
  color: white;
  font-size: 15px;
  line-height: 1.5;
  transition: background .25s, transform .25s;
}
.edc-wr-button:hover { background: var(--red, #d94b48); transform: translateY(-2px); }
.edc-wr-button > span { font-family: Arial, sans-serif; font-size: 21px; }
.white-room-mark { border-radius: 0; }

/* Let cards and columns shrink naturally; long bilingual headings never overflow. */
.edc-section-head > *,
.edc-story-grid > *,
.edc-record-head > *,
.edc-community-content > *,
.edc-investment > *,
.edc-update-grid > *,
.direction-grid > *,
.service-detail-grid > *,
.cms-grid > *,
.cms-archive-hero > *,
.cms-photo-grid > * { min-width: 0; }
.cms-card h2,
.cms-single h1,
.edc-update-card h3,
.service-detail-card h3 { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .edc-pathway-image,
  .edc-service-image,
  .edc-update-image,
  .service-detail-image,
  .cms-card-image {
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .edc-story-mobile { aspect-ratio: 3 / 2; }
  .edc-record-image { height: auto; aspect-ratio: 3 / 2; }
  .edc-investment-picture { height: auto; aspect-ratio: 3 / 2; }
  .edc-memory-photo { aspect-ratio: 3 / 2; }
  .edc-community-photo { height: auto; aspect-ratio: 3 / 2; }
  .edc-community-photo img { object-position: center; }
  .direction-photo { height: auto; aspect-ratio: 3 / 2; }
  .hub-cover,
  .team-banner,
  .detail-hero,
  .project-archive-hero { height: auto; aspect-ratio: 3 / 2; }
  .hub-cover img,
  .team-banner img,
  .detail-hero img,
  .project-archive-hero img { object-position: center; }
  .page-purpose .detail-hero { aspect-ratio: 16 / 9; }
  .cms-archive-hero > img { aspect-ratio: 3 / 2; }
  .edc-contact-brand { aspect-ratio: 16 / 9; }
  .edc-contact-brand img { position: absolute; inset: 0; }
  .direction-card > :not(.direction-photo) { margin-inline: 22px; }
  .edc-wr-button { max-width: 100%; }
  .cms-photo-grid { grid-template-columns: 1fr; }
  .project-main-image img { height: auto; max-height: none; }
}

@media (max-width: 560px) {
  .edc-update-grid { grid-template-columns: 1fr; gap: 35px; }
  .edc-update-card h3 { font-size: 25px; }
  .edc-update-image { margin-bottom: 18px; }
  .edc-pathway-grid,
  .edc-service-grid { grid-template-columns: minmax(0, 1fr); }
  .project-pathway-card h2 { margin-inline: 20px; }
  .project-pathway-card > p { margin-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .edc-wr-button { transition: none; }
  .edc-wr-button:hover { transform: none; }
}
