/* Website 2.0: shared, gradual photo transitions for the inner-page covers.
   Photos, responsive sources and individual subject positions remain authored
   in the page templates/brand layer. The grid overlaps only the dark edge. */
.page-intro-split {
  position: relative;
  isolation: isolate;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  padding-block: clamp(3rem, 4.4vw, 4rem);
}
.page-intro-split .intro-text {
  grid-column: 1 / 8;
  grid-row: 1;
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-block: 2rem;
}
.page-intro-split .intro-photo {
  grid-column: 7 / 13;
  grid-row: 1;
  width: 100%;
  margin: 0;
  align-self: stretch;
  aspect-ratio: 4 / 5;
}
.page-intro-split .intro-photo::after {
  pointer-events: none;
  background:
    linear-gradient(90deg,
      #141210 0%, rgba(20,18,16,.98) 7%,
      rgba(20,18,16,.92) 14%, rgba(20,18,16,.82) 22%,
      rgba(20,18,16,.68) 30%, rgba(20,18,16,.5) 38%,
      rgba(20,18,16,.32) 46%, rgba(20,18,16,.16) 54%,
      rgba(20,18,16,.05) 62%, rgba(20,18,16,0) 70%),
    linear-gradient(0deg,
      #141210 0%, rgba(20,18,16,.84) 8%,
      rgba(20,18,16,.6) 18%, rgba(20,18,16,.35) 30%,
      rgba(20,18,16,.14) 42%, rgba(20,18,16,.03) 54%,
      rgba(20,18,16,0) 64%);
}
.page-intro-split .intro-text h1 {
  text-shadow: 0 2px 20px rgba(20,18,16,.25);
}

/* Nigeria uses an existing full-width cover rather than the split template. */
.expedition-hero.has-photo {
  background: #141210;
}
.expedition-hero.has-photo .exp-hero-photo {
  width: 54%;
}
.expedition-hero.has-photo .exp-hero-photo::after {
  pointer-events: none;
  background:
    linear-gradient(90deg,
      #141210 0%, rgba(20,18,16,.98) 7%,
      rgba(20,18,16,.92) 14%, rgba(20,18,16,.82) 22%,
      rgba(20,18,16,.68) 30%, rgba(20,18,16,.5) 38%,
      rgba(20,18,16,.32) 46%, rgba(20,18,16,.16) 54%,
      rgba(20,18,16,.05) 62%, rgba(20,18,16,0) 70%),
    linear-gradient(0deg,
      #141210 0%, rgba(20,18,16,.8) 10%,
      rgba(20,18,16,.5) 24%, rgba(20,18,16,.22) 38%,
      rgba(20,18,16,.05) 52%, rgba(20,18,16,0) 64%);
}
@media (min-width: 901px) {
  .expedition-hero.has-photo .page-intro > * {
    max-width: min(1120px, 60vw);
  }
}

@media (max-width: 900px) {
  .page-intro-split {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 1.5rem 3rem;
  }
  .page-intro-split .intro-photo {
    grid-column: 1;
    grid-row: 1;
    width: calc(100% + 2.5rem);
    margin-inline: -1.25rem;
    aspect-ratio: 16 / 10;
  }
  .page-intro-split .intro-photo::after,
  .expedition-hero.has-photo .exp-hero-photo::after {
    background: linear-gradient(180deg,
      rgba(20,18,16,0) 20%, rgba(20,18,16,.03) 30%,
      rgba(20,18,16,.12) 42%, rgba(20,18,16,.28) 54%,
      rgba(20,18,16,.5) 66%, rgba(20,18,16,.74) 78%,
      rgba(20,18,16,.92) 90%, #141210 100%);
  }
  .page-intro-split .intro-text {
    grid-column: 1;
    grid-row: 2;
    margin-top: -2rem;
    padding-block: 0;
  }
  .page-intro-split .intro-text h1 {
    font-size: clamp(2.5rem, 8.8vw, 4.8rem);
  }
  .expedition-hero.has-photo .exp-hero-photo {
    width: 100%;
  }
  .expedition-hero.has-photo .page-intro {
    margin-top: -2rem;
    padding-top: 0;
  }
}
