/* Shared page frame and project-by-project portfolio presentation. */
body.single-page #about,
body.single-page #portfolio {
  padding: 18px 30px 20px;
  background: #fff;
}

body.single-page #about .hero-top,
body.single-page #portfolio .hero-top {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(17, 17, 17, .34);
}

body.single-page #about .hero-rule,
body.single-page #portfolio .hero-rule {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 17, 17, .34);
}


body.single-page #about {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
}

body.single-page #about .about-body {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

body.single-page #about .about-overview {
  min-height: 0;
}

body.single-page #about .team-section {
  min-height: 138px;
}

body.single-page #about .about-body {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 0;
}

body.single-page #about .about-home-feature {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 40px);
}

body.single-page #about .about-home-feature > :first-child {
  display: block;
  width: 100%;
  min-width: 0;
  cursor: default;
}

body.single-page #about .about-home-feature img {
  display: block;
  width: 100%;
  height: min(80svh, 540px);
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
}

body.single-page #about .about-home-feature .home-project-copy {
  align-self: start;
  margin: 0;
}

/* Keep About's content, while matching the Home image-and-copy composition. */
body.single-page #about .about-overview {
  display: flex;
  align-items: center;
  min-height: 0;
}

body.single-page #about .about-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 40px);
}

body.single-page #about .about-grid img,
body.single-page #about .about-grid figure,
body.single-page #about .about-image {
  width: 100%;
  height: min(72svh, 500px);
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
}

body.single-page #about .about-copy,
body.single-page #about .about-text {
  align-self: start;
  margin: 0;
}

body.single-page #about .about-copy h1,
body.single-page #about .about-copy h2,
body.single-page #about .about-text h1,
body.single-page #about .about-text h2 {
  margin-top: 0;
  line-height: .98;
}

body.single-page #about .about-copy p,
body.single-page #about .about-text p {
  max-width: 36ch;
}

body.single-page #portfolio {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.single-page #portfolio.project-detail-open > :not(.project-detail-page) {
  visibility: hidden;
}

body.single-page #portfolio .project-detail-page {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 18px 30px 20px;
  background: #fff;
}

body.single-page #portfolio.project-detail-open .project-detail-page.is-active {
  display: grid;
}

body.single-page #portfolio .project-detail-top {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(17, 17, 17, .34);
}

body.single-page #portfolio .project-detail-top a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #111;
  color: #111;
  font-family: var(--font-oswald, Oswald, sans-serif);
  letter-spacing: .1em;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

body.single-page #portfolio .project-detail-top a:hover,
body.single-page #portfolio .project-detail-top a:focus-visible {
  background: #111;
  color: #fff;
}

body.single-page .main-nav .portfolio-nav-item {
  position: relative;
}

body.single-page .main-nav .portfolio-subnav {
  position: absolute;
  z-index: 20;
  top: -8px;
  left: calc(100% + 14px);
  display: grid;
  min-width: 170px;
  padding: 8px 0;
  border: 1px solid rgba(17, 17, 17, .22);
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-5px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

body.single-page .main-nav .portfolio-nav-item:hover .portfolio-subnav,
body.single-page .main-nav .portfolio-nav-item:focus-within .portfolio-subnav {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

body.single-page .main-nav .portfolio-subnav a {
  display: block;
  padding: 7px 12px;
  font: 400 13px/1.25 var(--font-oswald, Oswald, sans-serif);
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}

body.single-page .main-nav .portfolio-subnav a:hover,
body.single-page .main-nav .portfolio-subnav a:focus-visible {
  background: #f1f1ef;
}

body.single-page #portfolio .project-detail-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

body.single-page #portfolio .project-detail-scroll::-webkit-scrollbar {
  display: none;
}

body.single-page #portfolio .project-gallery {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body.single-page #portfolio .project-gallery-item {
  flex: 0 0 100%;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 40px);
  padding: 12px 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

body.single-page #portfolio .project-gallery-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.single-page #portfolio .project-description-panel {
  --project-gallery-gap: clamp(24px, 4vw, 56px);
  position: relative;
  display: block;
  flex: 0 0 100%;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  overflow: visible;
}

body.single-page #portfolio .project-description-panel > img {
  position: absolute;
  top: 12px;
  left: 0;
  width: calc((100% - var(--project-gallery-gap)) * .6667);
  height: min(75svh, 540px);
  margin: 0;
}

body.single-page #project-mountain-refuge .project-gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  grid-auto-rows: min(75svh, 540px);
  column-gap: clamp(24px, 4vw, 56px);
  row-gap: 24px;
  align-items: start;
}

body.single-page #project-mountain-refuge .project-description-panel {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: clamp(24px, 4vw, 56px);
  width: 100%;
  height: min(75svh, 540px);
  min-height: 0;
  padding: 0;
  overflow: visible;
}

body.single-page #project-mountain-refuge .project-description-panel > img {
  position: static;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
}

body.single-page #project-mountain-refuge .project-description-copy {
  position: static;
  grid-column: 2;
  grid-row: 1;
  width: auto;
  overflow: visible;
}

body.single-page #project-mountain-refuge .project-gallery-item:not(.project-description-panel) {
  grid-column: 1;
  height: min(75svh, 540px);
  min-height: 0;
  padding: 0;
  display: block;
  overflow: hidden;
}

body.single-page #project-mountain-refuge .project-gallery-item:not(.project-description-panel) img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

body.single-page #portfolio .project-gallery-item,
body.single-page #portfolio .project-gallery-item.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

body.single-page #portfolio .project-description-copy {
  position: absolute;
  top: 12px;
  left: calc((100% - var(--project-gallery-gap)) * .6667 + var(--project-gallery-gap));
  width: calc((100% - var(--project-gallery-gap)) * .3333);
  font-family: var(--font-oswald, Oswald, sans-serif);
}

body.single-page #portfolio .project-description-heading h2 {
  max-width: 18ch;
  margin: 0 0 14px;
  font-family: var(--font-oswald, Oswald, sans-serif);
  font-size: clamp(2rem, 2.7vw, 2.8rem);
  line-height: .98;
}

body.single-page #portfolio .project-description-heading p {
  margin: 0;
  font-family: var(--font-oswald, Oswald, sans-serif);
  font-size: 11px;
  letter-spacing: .08em;
}

body.single-page #portfolio .project-description-copy p {
  max-width: 42ch;
  margin: 0 0 16px;
  font-family: var(--font-oswald, Oswald, sans-serif);
  font-size: clamp(.95rem, 1.15vw, 1.15rem);
  line-height: 1.48;
}

body.single-page #portfolio .project-description-panel > img {
  width: 100%;
  height: min(75svh, 540px);
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
}

body.single-page #portfolio .project-gallery-item img {
  display: block;
  width: 100%;
  height: min(75svh, 540px);
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
  cursor: zoom-in;
}

body.single-page .project-lightbox {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 4vh 4vw;
  background: rgba(12, 12, 12, .96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

body.single-page .project-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

body.single-page .project-lightbox img {
  display: block;
  max-width: 92vw;
  max-height: 90svh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  transform-origin: 0 0;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

body.single-page .project-lightbox.is-zoomed img {
  cursor: grab;
}

body.single-page .project-lightbox-zoom {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 74px;
  display: flex;
  gap: 10px;
}

body.single-page .project-lightbox-zoom button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(12, 12, 12, .6);
  color: #fff;
  font: 300 26px/1 var(--font-oswald, Oswald, sans-serif);
  cursor: pointer;
}

body.single-page .project-lightbox-zoom button:hover,
body.single-page .project-lightbox-zoom button:focus-visible {
  background: #fff;
  color: #111;
}

body.single-page .project-lightbox-close {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 22px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .7);
  background: transparent;
  color: #fff;
  font: 300 30px/1 var(--font-oswald, Oswald, sans-serif);
  cursor: pointer;
}

body.single-page .project-lightbox-close:hover,
body.single-page .project-lightbox-close:focus-visible {
  background: #fff;
  color: #111;
}

body.single-page.project-lightbox-open {
  overflow: hidden;
}

body.single-page #portfolio .project-gallery-copy {
  align-self: start;
}

body.single-page #portfolio .project-gallery-copy h2 {
  max-width: 8ch;
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 4.4vw, 4.4rem);
  line-height: .98;
}

body.single-page #portfolio .project-gallery-copy .project-summary {
  max-width: 38ch;
  font-size: clamp(.9rem, 1.05vw, 1rem);
  line-height: 1.4;
}

body.single-page #portfolio .project-gallery-copy p,
body.single-page #portfolio .project-gallery-copy small {
  font-family: var(--font-oswald, Oswald, sans-serif);
}

body.single-page #portfolio .project-gallery-copy p {
  margin: 0 0 12px;
}

body.single-page #portfolio .project-detail-bottom {
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 17, 17, .34);
}

@media (prefers-reduced-motion: reduce) {
  body.single-page #portfolio .project-gallery-item {
    transition: none;
    transform: none;
  }
}

body.single-page #portfolio .portfolio-page-label {
  display: none;
}

body.single-page #portfolio .portfolio-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior-y: contain;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

body.single-page #portfolio .portfolio-scroll::-webkit-scrollbar {
  display: none;
}

body.single-page #portfolio .portfolio-grid {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body.single-page #portfolio .project-card,
body.single-page #portfolio .project-card[hidden] {
  flex: 0 0 100%;
  min-height: 100%;
  display: grid;
  align-content: center;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 40px);
  padding: clamp(8px, 1.2vh, 14px) 0;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

body.single-page #portfolio .project-card[hidden] {
  display: grid !important;
}

body.single-page #portfolio .project-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.single-page #portfolio .project-visual {
  width: 100%;
  height: min(80svh, 540px);
  aspect-ratio: 1.2 / 1;
}

body.single-page #portfolio .project-card:first-child .project-visual.has-project-image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

body.single-page #portfolio .project-card:first-child .project-visual.has-project-image::before,
body.single-page #portfolio .project-card:first-child .project-visual.has-project-image::after,
body.single-page #portfolio .project-card:first-child .project-visual.has-project-image > * {
  display: none !important;
}

body.single-page #portfolio .project-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: start;
  align-self: start;
  gap: 16px;
  padding-top: 0;
}

body.single-page #portfolio .project-meta h3 {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(2.5rem, 4.4vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.035em;
}

body.single-page #portfolio .project-card:first-child .project-meta h3 {
  max-width: 16ch;
  font-size: clamp(2rem, 3.3vw, 3.25rem);
}

body.single-page #home .home-project-copy h1,
body.single-page #home .home-project-copy h2,
body.single-page #home .home-project-copy h3,
body.single-page #about .about-home-feature .home-project-copy h1,
body.single-page #about .about-home-feature .home-project-copy h2,
body.single-page #about .about-home-feature .home-project-copy h3 {
  max-width: 16ch;
  font-size: clamp(2rem, 3.3vw, 3.25rem);
  line-height: .98;
}

body.single-page #portfolio .project-meta > :first-child {
  display: none;
}

body.single-page #portfolio .project-meta p,
body.single-page #portfolio .project-meta span,
body.single-page #portfolio .project-meta small {
  font-family: var(--font-oswald, Oswald, sans-serif);
}

body.single-page #portfolio .project-meta p {
  max-width: 34ch;
  font-size: clamp(.95rem, 1.15vw, 1.15rem);
  line-height: 1.45;
}

body.single-page #portfolio .project-arrow,
body.single-page #portfolio .project-note {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  body.single-page #portfolio .project-card {
    transition: none;
    transform: none;
  }
}

@media (max-width: 760px) {
  body.single-page .site-header .menu-toggle {
    position: relative;
    z-index: 101;
  }

  body.single-page .main-nav {
    position: fixed !important;
    z-index: 100;
    inset: 98px 0 0;
    display: none !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 24px 22px 32px;
    border-top: 1px solid rgba(17, 17, 17, .2);
    background: #fff;
  }

  body.single-page:has(.menu-toggle[aria-expanded="true"]) .main-nav,
  body.single-page .main-nav.is-open,
  body.single-page .main-nav.open,
  body.single-page .main-nav.active {
    display: flex !important;
  }

  body.single-page .main-nav .portfolio-nav-item {
    width: 100%;
  }

  body.single-page #home .home-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: start;
    gap: 14px;
  }

  body.single-page #home .home-feature > :first-child {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
  }

  body.single-page #home .home-feature .home-project-copy {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  body.single-page #home .home-feature img {
    display: block;
    width: 100%;
    height: min(48svh, 360px);
    aspect-ratio: 1.2 / 1;
    object-fit: cover;
  }

  body.single-page #about,
  body.single-page #portfolio {
    padding: 14px 18px 16px;
  }

  body.single-page #about .about-body {
    gap: 0;
  }

  body.single-page #about .about-home-feature {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 14px;
  }

  body.single-page #about .about-home-feature img {
    height: min(55svh, 390px);
  }

  body.single-page #about .team-section {
    min-height: 112px;
  }

  body.single-page #about .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  body.single-page #about .about-grid img,
  body.single-page #about .about-grid figure,
  body.single-page #about .about-image {
    height: min(42svh, 300px);
    aspect-ratio: 1.2 / 1;
  }

  body.single-page #portfolio .project-card,
  body.single-page #portfolio .project-card[hidden] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: start;
    gap: 14px;
    padding: 12px 0;
  }

  body.single-page #portfolio .project-visual {
    height: min(55svh, 390px);
    aspect-ratio: 1.2 / 1;
  }

  body.single-page #portfolio .project-meta {
    gap: 7px;
  }

  body.single-page #portfolio .project-meta h3 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  body.single-page #portfolio .project-detail-page {
    padding: 14px 18px 16px;
  }

  body.single-page .main-nav .portfolio-subnav {
    position: static;
    min-width: 0;
    margin: 4px 0 0 12px;
    padding: 2px 0;
    border: 0;
    border-left: 1px solid rgba(17, 17, 17, .25);
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  body.single-page #portfolio .project-gallery-item {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    align-items: start;
    gap: 14px;
    padding: 8px 0;
  }

  body.single-page #portfolio .project-description-panel {
    display: grid;
    position: relative;
    flex: 0 0 auto;
    height: auto;
    min-height: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-block: 20px;
  }

  body.single-page #project-mountain-refuge .project-gallery {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    row-gap: 18px;
  }

  body.single-page #project-mountain-refuge .project-description-panel {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
    padding: 0;
    gap: 16px;
  }

  body.single-page #project-mountain-refuge .project-description-panel > img {
    grid-column: 1;
    grid-row: 1;
    height: min(55svh, 390px);
  }

  body.single-page #project-mountain-refuge .project-description-copy {
    grid-column: 1;
    grid-row: 2;
  }

  body.single-page #project-mountain-refuge .project-gallery-item:not(.project-description-panel) {
    grid-column: 1;
    height: min(55svh, 390px);
    min-height: 0;
  }

  body.single-page #portfolio .project-description-panel > img {
    position: static;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: min(55svh, 390px);
  }

  body.single-page #portfolio .project-description-copy {
    position: static;
    grid-column: 1;
    grid-row: 2;
    width: auto;
  }

  body.single-page #portfolio .project-description-heading h2 {
    max-width: 18ch;
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  body.single-page #portfolio .project-description-copy p {
    font-size: 15px;
    line-height: 1.45;
  }

  body.single-page #portfolio .project-gallery-item img {
    height: min(55svh, 390px);
  }

  body.single-page #portfolio .project-gallery-copy h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}

@media (min-width: 601px) {
  body.single-page #home .home-feature {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
    grid-template-rows: auto;
    align-content: center;
    align-items: start;
    gap: clamp(20px, 3vw, 40px);
  }

  body.single-page #home .home-feature > :first-child {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
  }

  body.single-page #home .home-feature .home-project-copy {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  body.single-page #home .home-feature img {
    display: block;
    width: 100%;
    height: min(80svh, 540px);
    aspect-ratio: 1.2 / 1;
    object-fit: cover;
  }
}

/* Featured image: show the whole render at its own proportions, never cropped. */
body.single-page .home-project-image {
  aspect-ratio: auto;
  max-height: none;
  width: fit-content;
  max-width: 100%;
  background: none;
}
body.single-page #home .home-feature img,
body.single-page #about .about-home-feature img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72svh, 560px);
  aspect-ratio: auto;
  object-fit: contain;
}

/* One fluid layout (no jumps while resizing): image and text side by side, close together;
   the image shrinks first as the window narrows. Phones stack them (below). */
body.single-page #home .home-feature,
body.single-page #about .about-home-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  height: auto;
}
body.single-page #home .home-feature > .home-project-image,
body.single-page #about .about-home-feature > .home-project-image {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
}
body.single-page #home .home-feature .home-project-copy,
body.single-page #about .about-home-feature .home-project-copy {
  flex: 0 1 340px;
  min-width: 200px;
}

/* Home: image is the hero, title and details stay quiet. */
body.single-page #home .home-feature img {
  max-height: min(80svh, 820px);
}
body.single-page #home .home-feature .home-project-copy h1 {
  font-size: clamp(24px, 2.4vw, 40px);
  line-height: 1;
  margin-bottom: 16px;
}
body.single-page #home .home-project-info {
  line-height: 1.6;
}
body.single-page #home .home-project-info span {
  font-size: 10px !important;
}
body.single-page #home .home-feature .home-project-copy {
  flex-basis: 280px;
}

/* Project page: description text at 50% opacity so the images lead. */
body.single-page .project-description-copy {
  opacity: .5;
}

/* Phones: image above text; scroll the panel instead of clipping if a phone is very short. */
@media (max-width: 760px) {
  body.single-page #home .home-feature,
  body.single-page #about .about-home-feature {
    flex-direction: column;
    align-items: stretch;
  }
  body.single-page #home .home-feature .home-project-copy,
  body.single-page #about .about-home-feature .home-project-copy {
    flex: 0 0 auto;
  }
  /* Phones: image fills the full column width (no white gap on the right), whole render, never cropped. */
  body.single-page #home .home-feature > .home-project-image,
  body.single-page #about .about-home-feature > .home-project-image {
    width: 100%;
  }
  body.single-page #home .home-feature img,
  body.single-page #about .about-home-feature img {
    width: 100%;
    max-height: none;
  }
  body.single-page #home,
  body.single-page #about {
    overflow-y: auto;
  }
  /* Without this the content shrinks below its height and slides under the top and bottom lines. */
  body.single-page #home .hero-copy,
  body.single-page #about .hero-copy {
    flex-shrink: 0;
  }
  body.single-page #about {
    grid-template-rows: auto minmax(min-content, 1fr) auto;
  }
  body.single-page #about .about-body,
  body.single-page #about .about-home-feature {
    height: auto;
  }
  /* Portfolio card: image short enough that the title fits above the bottom line. */
  body.single-page #portfolio .project-card .project-visual {
    max-height: 40svh;
  }
}
