/* A complete first frame, followed by the project introduction and its story. */
.project-page {
  --project-header-height: 80px;
  --project-cover-gutter: clamp(24px, 5vw, 80px);
}

.project-page .project-intro,
.project-page .settlement-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: calc(100vh - var(--project-header-height)) auto auto;
  grid-template-rows: calc(100svh - var(--project-header-height)) auto auto;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  scroll-margin-top: var(--project-header-height);
}

.project-page .project-cover,
.project-page .settlement-hero-image {
  display: grid;
  grid-column: 1;
  grid-row: 1 / 4;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: subgrid;
  align-self: stretch;
  justify-content: normal;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
}

.project-page .project-cover > .project-image-link,
.project-page .settlement-hero-image > .project-image-link {
  display: block;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--paper, #eeece5);
}

.project-page .project-cover > .project-image-link > img,
.project-page .settlement-hero-image > .project-image-link > img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: var(--paper, #eeece5);
}

.project-page .project-intro-copy,
.project-page .settlement-hero-copy {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: none;
  margin: 0 auto;
  padding: 48px var(--project-cover-gutter) 28px;
}

.project-page .project-intro-copy {
  width: min(100%, 1100px);
}

.project-page .project-intro-copy .project-lead,
.project-page .project-intro-copy .concept-author {
  max-width: 730px;
}

.project-page .project-cover > .frame-caption,
.project-page .settlement-hero-image.settlement-figure > .frame-caption {
  grid-column: 1;
  grid-row: 3;
  min-width: 0;
  max-width: none;
  margin: 0 auto;
  padding: 0 var(--project-cover-gutter) 40px;
}

.project-page .project-cover > .frame-caption {
  width: min(100%, 1100px);
}

.project-page .settlement-hero-image.settlement-figure > .frame-caption {
  width: min(100%, 1480px);
}

@media (max-width: 700px) {
  .project-page { --project-header-height: 70px; }
  .project-page .project-intro-copy,
  .project-page .settlement-hero-copy {
    padding-top: 32px;
    padding-bottom: 24px;
  }
}

@supports not (grid-template-rows: subgrid) {
  .project-page .project-cover,
  .project-page .settlement-hero-image { display: contents; }
}
