/* History page only. Shared navigation, fonts and global defaults come from the NEW site shell. */
.history-page {
  --history-ink: #111;
  --history-muted: #343434;
  --history-red: #d71920;
  --history-black: #050505;
  --history-cream: #f6f1e8;
  --history-radius: var(--container-radius, 22px);
  --history-container-width: 95vw;
  --history-nav-height-expanded: clamp(46px, 3.4vw, 52px);
  --history-nav-height-compact: clamp(40px, 2.8vw, 44px);
  --history-nav-height: var(--history-nav-height-expanded);
  --history-layout-nav-height: var(--history-nav-height-expanded);
  --history-nav-top: 0px;
  --history-hero-gap: var(--container-gap, 14px);
  --history-hero-strip: clamp(12px, 1.2vw, 16px);
  --history-rule-color: var(--history-red);
  --history-photo-sticky-gap: 22px;
  --history-photo-pad-top: clamp(18px, 2vw, 34px);
  --history-photo-pad-bottom: clamp(18px, 2vw, 34px);
  --history-pad: clamp(22px, 4vw, 58px);
  --history-section-gap: clamp(44px, 6vw, 86px);
  color: var(--history-ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

.history-page .shared-site-header {
  position: fixed;
  top: var(--history-nav-top);
  left: 2.5vw;
  width: var(--history-container-width);
  height: var(--history-nav-height);
  transform: none;
  border-radius: 0;
  background: #fff;
  color: var(--history-ink);
  transition: height .16s ease, background-color .16s ease;
}

.history-page .shared-site-header::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: var(--history-rule-color);
  content: "";
  transition: background-color .16s ease;
}

.history-page.history-is-scrolled { --history-nav-height: var(--history-nav-height-compact); }

.history-page .shared-header-inner {
  width: 100%;
  min-height: 0;
  padding-block: 0;
  padding-inline: clamp(14px, 2.4vw, 34px);
}

.history-page .shared-logo { display: none; }

.history-page .shared-primary-nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: space-between;
  gap: clamp(10px, 1.7vw, 24px);
  width: auto;
  margin: 0;
  padding: 0 clamp(14px, 2vw, 28px) 0 0;
}

.history-page .shared-primary-nav a {
  background: transparent;
  padding-block: 0;
  font-size: clamp(12px, 1.12vw, 17px);
}

.history-page .shared-primary-nav a:hover,
.history-page .shared-primary-nav a:focus-visible {
  background: transparent;
  color: var(--history-red);
}

.history-page .shared-donate {
  width: clamp(132px, 13.5vw, 230px);
  min-height: 40px;
  border-radius: 0;
  font-size: clamp(13px, 1.2vw, 18px);
}

.history-main {
  padding-top: calc(var(--history-nav-top) + var(--history-layout-nav-height) + var(--history-hero-gap));
  padding-bottom: 14px;
}

.history-container {
  width: var(--history-container-width);
  max-width: 1920px;
  margin-inline: auto;
}

.history-container--hero,
.history-container--footer,
.history-donation,
.history-connected {
  overflow: hidden;
  border-radius: var(--history-radius);
}

.history-hero {
  position: relative;
  height: calc(100vh - var(--history-nav-top) - var(--history-layout-nav-height) - var(--history-hero-gap) - var(--history-hero-strip));
  height: calc(100dvh - var(--history-nav-top) - var(--history-layout-nav-height) - var(--history-hero-gap) - var(--history-hero-strip));
  overflow: hidden;
  border-radius: inherit;
  isolation: isolate;
  background: #202520;
}

.history-hero-slideshow,
.history-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.history-hero-slideshow {
  z-index: -2;
  overflow: hidden;
}

.history-hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 50%;
  opacity: 0;
  transition: opacity 1.7s ease-in-out;
}

.history-hero-slide.is-active { opacity: 1; }

.history-hero-slide:nth-child(1) { object-position: 50% 58%; }
.history-hero-slide:nth-child(3) { object-position: 100% 50%; }
.history-hero-slide:nth-child(5) { object-position: 52% 50%; }

@media (prefers-reduced-motion: reduce) {
  .history-hero-slide { transition: none; }
}

.history-hero-shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,.69) 0%, rgba(0,0,0,.31) 50%, rgba(0,0,0,.06) 78%), linear-gradient(0deg, rgba(0,0,0,.52), transparent 56%);
}

.history-hero-copy {
  position: absolute;
  right: var(--history-pad);
  bottom: clamp(24px, 3.6vw, 56px);
  left: var(--history-pad);
  color: #fff;
}

.history-hero-copy h1 {
  max-width: 24ch;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4.4vw, 70px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
  text-shadow: 0 2px 16px rgba(0,0,0,.48);
}

.history-hero-copy p {
  margin: clamp(8px, 1vw, 14px) 0 0;
  color: #fff;
  font-size: clamp(16px, 1.6vw, 25px);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 10px rgba(0,0,0,.65);
}

.history-audio-control {
  position: absolute;
  z-index: 2;
  top: clamp(16px, 2vw, 28px);
  right: clamp(16px, 2vw, 28px);
  width: min(350px, calc(100% - 32px));
  box-sizing: border-box;
  padding: 15px 16px 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-top: 4px solid var(--history-red);
  border-radius: 14px;
  background: rgba(5,5,5,.9);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
}

.history-audio-kicker {
  margin: 0 0 11px;
  color: rgba(255,255,255,.68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
}

.history-audio-topline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.history-audio-button {
  min-width: 86px;
  min-height: 42px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--history-red);
  color: #fff;
  font: 800 14px/1.1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.history-audio-button:hover { background: #b90f16; }
.history-audio-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.history-audio-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 30px;
}

.history-audio-wave span {
  display: block;
  width: 4px;
  height: 9px;
  border-radius: 2px;
  background: var(--history-red);
}

.history-audio-wave span:nth-child(2),
.history-audio-wave span:nth-child(5) { height: 17px; }

.history-audio-wave span:nth-child(3),
.history-audio-wave span:nth-child(6) { height: 23px; }

.history-audio-control.is-playing .history-audio-wave span {
  animation: history-audio-wave 900ms ease-in-out infinite alternate;
}

.history-audio-control.is-playing .history-audio-wave span:nth-child(2n) { animation-delay: -280ms; }
.history-audio-control.is-playing .history-audio-wave span:nth-child(3n) { animation-delay: -560ms; }

@keyframes history-audio-wave {
  from { transform: scaleY(.45); }
  to { transform: scaleY(1); }
}

.history-audio-credit {
  margin: 14px 0 0;
  padding: 11px 12px;
  border-left: 3px solid var(--history-red);
  border-radius: 0 8px 8px 0;
  background: rgba(215,25,32,.14);
  color: #fff;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 700;
  line-height: 1.35;
}

.history-audio-status {
  min-height: 1.35em;
  margin: 10px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 620px) {
  .history-audio-control {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 0;
    top: 12px;
    right: 10px;
    width: min(240px, calc(100% - 20px));
    padding: 9px 10px 10px;
    border-top-width: 3px;
    border-radius: 10px;
  }

  .history-audio-kicker {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0;
    font-size: 9px;
    letter-spacing: .08em;
    line-height: 1.15;
  }

  .history-audio-topline { display: contents; }
  .history-audio-button {
    grid-column: 1;
    grid-row: 1;
    min-width: 62px;
    min-height: 32px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .history-audio-wave { display: none; }

  .history-audio-credit {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding: 7px 8px;
    font-size: 10px;
    line-height: 1.25;
  }

  .history-audio-status {
    display: none;
    grid-column: 1 / -1;
    margin-top: 7px;
    font-size: 9px;
    line-height: 1.25;
  }
}

.history-history { padding-top: clamp(38px, 5vw, 72px); }

.history-container--hero {
  background: #fff;
  padding-bottom: var(--history-hero-strip);
}

.history-heading {
  margin: 0 0 clamp(30px, 4vw, 58px);
  color: var(--history-ink);
  font-size: clamp(30px, 3.5vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-align: center;
}

.history-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  min-width: 0;
}

.history-photo-column {
  position: sticky;
  z-index: 2;
  top: calc(var(--history-nav-top) + var(--history-nav-height) + var(--history-photo-sticky-gap));
  align-self: start;
  min-width: 0;
  padding: var(--history-photo-pad-top) clamp(12px, 1.2vw, 20px) 0;
  background: #fff;
}

.history-photo-frame {
  position: relative;
  width: min(100%, calc(100dvh - var(--history-nav-height) - var(--history-photo-sticky-gap) - var(--history-photo-pad-top) - var(--history-photo-pad-bottom) - 16px));
  margin: 0 auto;
  /* The supplied history photos are predominantly 4:3. Keep the frame
     close to that source ratio so people and animals are not edge-cropped. */
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--history-radius);
  background: #dde1db;
  box-shadow: 0 10px 30px rgba(19, 41, 33, .10);
}

.history-scroll-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .45s ease;
}

.history-scroll-photo.is-active { opacity: 1; }
.history-scroll-photo--portrait,
.history-scroll-photo--contain {
  object-fit: contain;
  object-position: 50% 48%;
  background: #d9ddd7;
}

.history-copy {
  min-width: 0;
  padding: clamp(18px, 2vw, 34px) clamp(28px, 5.2vw, 82px) clamp(30px, 4vw, 58px) clamp(14px, 2.4vw, 38px);
}

.history-block {
  scroll-margin-top: 110px;
  margin: 0;
  padding: 0 0 var(--history-section-gap);
}

.history-block:last-of-type { padding-bottom: clamp(26px, 3vw, 46px); }

.history-block h3 {
  margin: 0 0 clamp(9px, .9vw, 13px);
  color: var(--history-ink);
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.history-block p {
  margin: 0 0 clamp(12px, 1.2vw, 18px);
  color: #252525;
  font-size: clamp(15px, 1.12vw, 18px);
  line-height: 1.48;
}

.history-block p:last-child { margin-bottom: 0; }

.history-closing {
  margin: 0;
  color: var(--history-ink);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.history-carousel {
  --history-carousel-gap: clamp(9px, 1vw, 16px);
  --history-carousel-visible: 4;
  width: var(--history-container-width);
  max-width: 1920px;
  margin-inline: auto;
  margin-top: 20px;
  margin-bottom: 20px;
}

.history-carousel-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--history-radius);
  outline: 0;
  touch-action: pan-y;
}

.history-carousel-viewport:focus-visible { box-shadow: 0 0 0 4px rgba(215, 25, 32, .3); }

.history-carousel-overlay-button {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 64px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  opacity: .5;
  cursor: pointer;
  transform: translateY(-50%);
}

.history-carousel-overlay-button--prev { left: clamp(10px, 1.8vw, 28px); }
.history-carousel-overlay-button--next { right: clamp(10px, 1.8vw, 28px); }

.history-carousel-overlay-button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.history-carousel-overlay-button--prev::before { border-left: 2px solid currentColor; }
.history-carousel-overlay-button--next::before {
  border-right: 2px solid currentColor;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.history-carousel-overlay-button:hover,
.history-carousel-overlay-button:focus-visible { opacity: .85; }

.history-carousel-overlay-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.history-carousel-track {
  display: flex;
  gap: var(--history-carousel-gap);
  will-change: transform;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}

.history-carousel-track.is-resetting { transition: none; }

.history-carousel-slide {
  position: relative;
  flex: 0 0 calc((100% - (var(--history-carousel-visible) - 1) * var(--history-carousel-gap)) / var(--history-carousel-visible));
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: var(--history-radius);
  background: #d9ddd7;
}

.history-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--history-photo-position, 50% 50%);
}

/* Fill the fixed 4:3 cells for the supplied near-square photos. Their
   individual focal points are set in the carousel manifest. */
.history-carousel-slide img.history-carousel-photo--portrait {
  object-fit: cover;
  background: transparent;
}

/* Keep the near-square photos frame-filling instead of showing side bars. */
.history-carousel-slide img.history-carousel-photo--contained {
  object-fit: cover;
  background: transparent;
}

.history-carousel-controls {
  display: none;
}

.history-carousel-status {
  margin: 0;
  padding-inline: 4px;
  color: var(--history-muted);
  font-size: 14px;
  line-height: 1.3;
}

.history-carousel-button {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 8px 14px;
  border: 2px solid #000;
  border-radius: 999px;
  color: #fff;
  background: #000;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.history-carousel-button:hover,
.history-carousel-button:focus-visible {
  border-color: var(--history-red);
  background: var(--history-red);
}

.history-carousel-button:focus-visible {
  outline: 3px solid rgba(215, 25, 32, .28);
  outline-offset: 2px;
}

.history-carousel-button:disabled { cursor: not-allowed; opacity: .55; }

.history-carousel-toggle { min-width: 82px; font-size: 14px; }

.history-donation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr);
  align-items: center;
  gap: clamp(30px, 6vw, 100px);
  min-height: calc(100svh - var(--container-gap, 14px) - clamp(52px, 5vw, 60px) - 28px);
  margin-top: clamp(48px, 6vw, 90px);
  padding: clamp(34px, 5vw, 76px) var(--history-pad);
  background: var(--history-black);
  color: #fff;
}

.history-donation-copy h2 {
  max-width: none;
  margin: 0 0 clamp(18px, 2vw, 30px);
  color: #fff;
  font-size: clamp(40px, 4.4vw, 70px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
  white-space: normal;
}

.history-donation-copy p {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 1.75vw, 28px);
  font-weight: 700;
  line-height: 1.16;
}

.history-donation-card {
  align-self: center;
  width: 100%;
  max-width: 620px;
  justify-self: end;
  padding: clamp(20px, 2.2vw, 32px);
  border-radius: 10px;
  background: #fff;
  color: var(--history-ink);
}

.history-donation-card h3 {
  margin: 0 0 20px;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 800;
  line-height: 1.05;
}

.history-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 7px;
  row-gap: 12px;
}

.history-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #ccd3dc;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font: 800 15px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  text-decoration: none;
}

.history-amount:hover,
.history-amount:focus-visible,
.history-amount.is-selected {
  border-color: var(--history-red);
  box-shadow: inset 0 0 0 1px var(--history-red);
}

.history-donate-button,
.history-signup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--history-red);
  color: #fff;
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
}

.history-donate-button {
  width: 100%;
  min-height: 52px;
  margin-top: 15px;
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 800;
}

.history-donate-button:hover,
.history-signup-button:hover { background: #b90f16; }

.history-donation-status,
.history-connected-status {
  min-height: 1.2em;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.3;
}

.history-donation-status { color: #333; }

.history-donation-status a,
.history-connected-status a { color: inherit; font-weight: 700; }

.history-connected {
  margin-top: var(--container-gap, 14px);
  padding: clamp(30px, 4.2vw, 62px) var(--history-pad);
  border: 1px solid #d6dce2;
  background: #fff;
}

.history-connected h2 {
  margin: 0;
  color: var(--history-ink);
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.history-connected-lead {
  margin: 8px 0 clamp(24px, 2.5vw, 38px);
  color: #252525;
  font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1.2;
}

.history-connected-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(150px, .9fr);
  align-items: end;
  gap: clamp(12px, 1.2vw, 20px);
}

.history-connected-form label {
  display: block;
  margin: 0 0 7px;
  color: #111;
  font-size: 14px;
  font-weight: 700;
}

.history-connected-form input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid #cbd4dd;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font: 16px/1.2 Arial, Helvetica, sans-serif;
}

.history-signup-button {
  min-height: 48px;
  font-size: clamp(16px, 1.3vw, 21px);
}

.history-connected-status { margin-bottom: 0; color: #333; }

.history-container--footer { margin-top: var(--container-gap, 14px); }

.history-footer {
  min-height: 250px;
  padding: 34px clamp(24px, 7vw, 100px) 22px;
  background: #000;
  color: #fff;
}

.history-footer-inner { width: min(100%, 1100px); margin-inline: auto; }

.history-footer-columns {
  display: grid;
  grid-template-columns: minmax(180px, 1.05fr) minmax(230px, 1.35fr) repeat(2, minmax(130px, 1fr));
  gap: 28px;
  align-items: start;
}

.history-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.1;
}

.history-footer p,
.history-footer a {
  margin: 0;
  color: #fff;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.45;
}

.history-footer a { display: block; text-decoration: none; }
.history-footer a:hover,
.history-footer a:focus-visible { text-decoration: underline; }
.history-footer nav a { margin-bottom: 6px; }

.history-footer-contact-list {
  display: grid;
  gap: 12px;
}

.history-footer-contact-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.history-footer-contact-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--history-red, #d71920);
}

.history-footer-contact-icon svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: #fff;
}

.history-footer-contact-item h3 {
  margin: 0 0 2px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.history-footer-contact-item address {
  margin: 0;
  color: #fff;
  font-size: clamp(14px, 1.15vw, 17px);
  font-style: normal;
  line-height: 1.45;
}

.history-footer-contact-item p { line-height: 1.45; }

.history-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.32);
}

.history-footer-bottom p { font-size: clamp(12px, .95vw, 14px); }
.history-footer-bottom span { color: #f22; font-size: 1.6em; vertical-align: -.08em; }

.history-page button:focus-visible,
.history-page a:focus-visible,
.history-page [tabindex]:focus-visible,
.history-page input:focus-visible {
  outline: 3px solid #ffd43b;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .history-carousel { --history-carousel-visible: 3; }
  .history-page .shared-site-header { background: #fff; }
  .history-story { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-photo-column { padding-inline: clamp(12px, 1.8vw, 18px); }
  .history-copy { padding-right: clamp(20px, 4vw, 40px); }
  .history-donation { grid-template-columns: minmax(0, .9fr) minmax(350px, 1.1fr); gap: 28px; }
}

@media (max-width: 700px) {
  .history-carousel { --history-carousel-visible: 2; }
  .history-hero-shade { background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.18) 76%); }
  .history-hero-copy { right: 22px; bottom: 24px; left: 22px; }
  .history-hero-copy h1 { font-size: clamp(32px, 9vw, 48px); }
  .history-hero-copy p { max-width: 28ch; font-size: clamp(15px, 4.6vw, 20px); }
  .history-history { padding-top: 34px; }
  .history-heading { margin-bottom: 24px; padding-inline: 18px; font-size: clamp(28px, 8vw, 42px); }
  .history-story { display: block; }
  .history-photo-column {
    --history-photo-sticky-gap: 16px;
    --history-photo-pad-top: 10px;
    --history-photo-pad-bottom: 20px;
    top: calc(var(--history-nav-top) + var(--history-nav-height) + var(--history-photo-sticky-gap));
    padding: 10px clamp(14px, 5vw, 28px) 0;
  }
  .history-photo-column::before {
    position: absolute;
    top: calc(-1 * var(--history-photo-sticky-gap));
    right: 0;
    left: 0;
    height: var(--history-photo-sticky-gap);
    background: #fff;
    content: "";
  }
  .history-photo-frame {
    width: min(100%, 460px);
    max-height: calc(100svh - 128px);
    aspect-ratio: 4 / 3;
  }
  .history-copy { padding: 18px clamp(22px, 7vw, 42px) 38px; }
  .history-block { padding-bottom: clamp(42px, 12vw, 64px); }
  .history-block h3 { font-size: clamp(19px, 5vw, 23px); }
  .history-block p { font-size: 16px; line-height: 1.5; }
  .history-donation {
    display: block;
    min-height: 0;
    padding: 44px clamp(22px, 7vw, 42px);
  }
  .history-donation-copy { margin-bottom: 36px; }
  .history-donation-copy h2 { font-size: clamp(38px, 11vw, 58px); }
  .history-donation-copy p { font-size: clamp(18px, 5vw, 23px); }
  .history-donation-card { max-width: none; }
  .history-connected-form { grid-template-columns: 1fr 1fr; }
  .history-connected-form > div:nth-child(3),
  .history-signup-button { grid-column: 1 / -1; }
  .history-footer { padding: 28px 20px 20px; }
  .history-footer-columns { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .history-footer-columns > :last-child { grid-column: 1 / -1; }
  .history-footer-bottom { display: block; margin-top: 28px; }
  .history-footer-bottom p + p { margin-top: 6px; }
}

@media (max-width: 620px) {
  .history-page {
    --history-nav-height-expanded: 50px;
    --history-nav-height-compact: 44px;
  }
  .history-page .shared-site-header { min-height: var(--history-nav-height); }
  .history-page .shared-header-inner { min-height: var(--history-nav-height); }
  .history-page .shared-primary-nav { display: none; }
  .history-page .shared-primary-nav.is-open {
    top: var(--history-nav-height);
    display: flex;
  }
  .history-page .shared-menu-toggle {
    top: 4px;
    right: auto;
    left: var(--site-nav-mobile-edge-inset);
    bottom: 4px;
    padding-block: 0;
  }
  .history-page .shared-donate {
    top: 4px;
    height: 42px;
    min-height: 42px;
  }
}

@media (max-width: 620px) {
  .history-page.history-is-scrolled .shared-menu-toggle { top: 3px; bottom: 3px; }
  .history-page.history-is-scrolled .shared-donate { top: 3px; height: 38px; min-height: 38px; }
}

@media (max-width: 620px) and (orientation: portrait) {
  .history-hero { height: calc(clamp(260px, 72vw, 360px) - var(--history-hero-strip)); }
}

@media (max-width: 430px) {
  .history-carousel { --history-carousel-visible: 1; }
  .history-carousel-controls { grid-template-columns: auto minmax(0, 1fr) auto; }
  .history-carousel-toggle { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .history-donation-copy h2 { font-size: clamp(34px, 10vw, 44px); }
  .history-photo-frame { aspect-ratio: 4 / 3; }
  .history-connected-form { grid-template-columns: 1fr; }
  .history-connected-form > div:nth-child(3),
  .history-signup-button { grid-column: auto; }
  .history-footer-columns { grid-template-columns: 1fr; }
  .history-footer-columns > :last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .history-page { scroll-behavior: auto; }
  .history-scroll-photo,
  .history-page .shared-site-header,
  .history-carousel-track { transition: none; }
}

/* Keep the History navbar identical to the About page navbar. */
.history-page .shared-primary-nav a {
  display: flex;
  align-items: center;
  align-self: stretch;
  height: 100%;
  background: transparent;
  padding-block: 0;
  font-family: Oswald, sans-serif;
  font-size: clamp(12px, 1.274vw, 22px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
}

.history-page .shared-primary-nav a:hover,
.history-page .shared-primary-nav a:focus-visible {
  background: transparent;
  color: var(--history-red);
}

.history-page .shared-primary-nav a:hover::after,
.history-page .shared-primary-nav a:focus-visible::after {
  display: none;
}

@media (min-width: 621px) {
  .history-page .shared-primary-nav {
    align-self: stretch;
    align-items: stretch;
    height: auto;
  }

  .history-page .shared-primary-nav a { height: auto; }
}

@media (max-width: 620px) {
  .history-page .shared-primary-nav a {
    width: auto;
    height: auto;
    min-height: 44px;
    padding: 12px 10px;
    font-size: 16px;
    line-height: 1.1;
  }
}

/* History donation card content follows the supplied PayPal donation design. */
.history-page section.history-donation.donation-standard .history-donation-card {
  display: flex;
  height: clamp(306.42px, calc(5.36vw + 251.4px), 331.98px);
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: center;
}

.history-page section.history-donation.donation-standard .history-donation-card h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.05;
}

.history-page section.history-donation.donation-standard .history-donation-card-copy {
  max-width: 44ch;
  margin: 0 auto 16px;
  color: #303b4b;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 400;
  line-height: 1.35;
}

.history-page section.history-donation.donation-standard .history-donate-button {
  min-height: 50px;
  margin-top: 15px;
  border-radius: 3px;
  text-decoration: none;
}

.history-page section.history-donation.donation-standard .history-donate-button:focus-visible {
  outline: 3px solid rgba(215, 25, 32, .3);
  outline-offset: 3px;
}

.history-page section.history-donation.donation-standard .history-donation-note {
  margin: 14px 0 0;
  color: #778293;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 900px) {
  .history-page section.history-donation.donation-standard .history-donation-card {
    height: 301.5px;
  }
}
