/* About page responsive corrections — isolated override */

/* Hero: make the copy/photo split resolve against the viewport, not the max-width container. */
.about-page .about-hero {
  overflow: hidden;
}

.about-page .about-hero > .container {
  width: 100%;
  max-width: none;
  min-height: 442px;
  padding-left: max(32px, calc((100vw - var(--max)) / 2));
  padding-right: 0;
  grid-template-columns: minmax(0, 50%) minmax(0, 50%);
}

.about-page .about-hero-copy {
  min-width: 0;
  padding-right: clamp(30px, 4vw, 72px);
}

.about-page .about-hero-photo-wrap {
  position: relative;
  min-width: 0;
  min-height: 442px;
  margin-right: 0;
  overflow: hidden;
  isolation: isolate;
}

.about-page .about-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: none;
}

/* Glare is now physically bound to the exact photo box. */
.about-page .about-hero-photo-wrap::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 58%;
  height: 100%;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(247,245,239,.98) 0%,
      rgba(247,245,239,.82) 18%,
      rgba(247,245,239,.28) 54%,
      rgba(247,245,239,0) 100%),
    linear-gradient(180deg,
      rgba(255,255,255,.12) 0%,
      rgba(255,255,255,.04) 60%,
      rgba(255,255,255,0) 100%);
}

/* Sidebar: expand the beige field to the viewport edge while keeping balanced content padding. */
.about-page .about-main {
  overflow: hidden;
}

.about-page .about-sidebar {
  position: relative;
  margin-right: calc((100vw - min(calc(100vw - 64px), var(--max))) / -2);
  padding: 37px clamp(42px, 4vw, 64px) 46px 45px;
  background: #f6f1e7;
  box-shadow: none;
}

/* Tablet: keep the existing stacked layout, but anchor glare to the photo box. */
@media (max-width: 980px) {
  .about-page .about-hero > .container {
    width: min(calc(100% - 44px), var(--max));
    padding-inline: 0;
    grid-template-columns: 1fr;
  }

  .about-page .about-hero-photo-wrap {
    position: absolute;
    inset: auto 0 0 28%;
    height: 370px;
    min-height: 0;
    margin: 0;
  }

  .about-page .about-hero-photo-wrap::after {
    inset: 0;
    width: 62%;
    height: 100%;
    background: linear-gradient(90deg,
      #f7f5ef 0%,
      rgba(247,245,239,.72) 28%,
      rgba(247,245,239,.15) 72%,
      transparent 100%);
  }

  .about-page .about-sidebar {
    margin-inline: -22px;
    padding: 42px 44px;
    box-shadow: none;
  }
}

@media (max-width: 680px) {
  .about-page .about-hero > .container {
    width: min(calc(100% - 34px), var(--max));
  }

  .about-page .about-hero-photo-wrap {
    inset-inline: 8%;
    height: 310px;
  }

  .about-page .about-hero-photo-wrap::after {
    width: 68%;
  }

  .about-page .about-sidebar {
    margin-inline: -17px;
    padding-inline: 34px;
  }
}
