/* OVL1: overview message width and independent introduction columns. */

/* These wrappers keep the existing layout outside the intermediate range. */
body[data-about-page="overview"] .ovl1-intro-column {
  display: contents;
}

/* Give the heading and copy their own full-width rows. The photographs stay
   in normal flow, so neither a visible nor a pending photo reserves text space. */
body[data-about-page="overview"] .about-message-canvas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(24px, 2.5vw, 32px);
  height: auto;
  min-height: 0;
  padding-block: clamp(35px, 4vw, 56px);
}

body[data-about-page="overview"] .about-message-canvas > h2 {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  margin: 0;
}

body[data-about-page="overview"] .about-message-canvas > h3 {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0 !important;
  white-space: nowrap;
}

body[data-about-page="overview"] .about-message-copy {
  grid-column: 1 / -1;
  grid-row: 3;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
}

body[data-about-page="overview"] .about-message-canvas > img {
  position: static;
  inset: auto;
  grid-row: 4;
  width: min(100%, 216px);
  max-width: 100%;
  height: auto;
  margin: 0;
  order: 0;
}

body[data-about-page="overview"] .message-photo1 {
  grid-column: 1;
  justify-self: start;
}

body[data-about-page="overview"] .message-photo2 {
  grid-column: 2;
  justify-self: end;
}

@media (max-width: 767px) {
  body[data-about-page="overview"] .about-message-canvas {
    padding-inline: 16px;
  }

  body[data-about-page="overview"] .about-message-canvas > h3 {
    /* Fifteen full-width characters + tracking; allow padding and a scrollbar.
       Retain the existing 26px maximum and fit smaller phone viewports. */
    font-size: min(26px, calc((100vw - 48px) / 15.6)) !important;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  /* Fallback before the deferred grouping script runs (or with JS disabled). */
  body[data-about-page="overview"] .overview-intro-copy {
    grid-row: 2;
  }

  body[data-about-page="overview"] .overview-photo3 {
    grid-row: 3;
  }

  body[data-about-page="overview"] .ovl1-intro-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: start;
    grid-row: 2;
    gap: 32px;
    min-width: 0;
  }

  body[data-about-page="overview"] .ovl1-intro-left {
    grid-column: 1;
  }

  body[data-about-page="overview"] .ovl1-intro-right {
    grid-column: 2;
  }

  body[data-about-page="overview"] .ovl1-intro-column > * {
    position: static;
    inset: auto;
    flex: none;
    min-width: 0;
    margin: 0;
  }

  body[data-about-page="overview"] .ovl1-intro-left > .overview-headline {
    align-self: center;
  }

  body[data-about-page="overview"] .ovl1-intro-left > .overview-photo-logo,
  body[data-about-page="overview"] .ovl1-intro-right > .overview-photo3 {
    align-self: flex-end;
  }
}
