/* North York straight plank, Etobicoke herringbone, Scarborough chevron.
   Chrome, type, and the spec list stay in projects-show.css.
   These rules are the three gallery rhythms only. */

.pf-floor {
  width: 100%;
  height: calc(100svh - 64px);
}

.pf-floor img,
.pf-seq .fx-frame img,
.pf-pair .fx-frame img,
.pf-follow .fx-frame img,
.pf-mitre .fx-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pf-caption,
.pf-sheet {
  padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px);
}

.pf-lead {
  max-width: 48ch;
  margin: 16px 0 0;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--fx-ink-soft);
}

.pf-shared {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--fx-ink-soft);
}

.pf-page .fx-faq h2 {
  max-width: 16ch;
  font-size: clamp(28px, 3vw, 44px);
}

.pf-page .ps-truth + .fx-faq,
.pf-page .fx-faq + .pf-sheet,
.pf-page .pf-sheet + .ps-truth {
  border-top: 1px solid var(--fx-line);
}

.pf-seq {
  display: grid;
  gap: 8px;
  padding: 0 var(--fx-margin) 8px;
}

.pf-seq .fx-frame {
  width: 72%;
  aspect-ratio: 1600 / 1067;
}

.pf-seq .fx-frame:nth-child(even) { margin-left: auto; }

.pf-pair {
  display: grid;
  gap: 20px 32px;
  align-items: center;
  padding: 20px var(--fx-margin) 28px;
}

.pf-pair .fx-frame {
  aspect-ratio: 1;
  width: min(100%, 72vh);
}

.pf-pair p {
  margin: 16px 0 0;
  max-width: 36ch;
  font-family: var(--fx-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.15;
  color: var(--fx-ink);
}

.pf-pair .pf-lead {
  font-family: var(--fx-sans);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--fx-ink-soft);
}

.pf-follow {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.pf-follow .fx-frame:first-child { aspect-ratio: 1600 / 1067; }

.pf-follow .fx-frame:last-child {
  width: 42%;
  aspect-ratio: 1;
  margin-left: auto;
}

.pf-mitre {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  align-content: start;
  background: var(--fx-line);
}

.pf-mitre__center { grid-column: 1 / -1; aspect-ratio: 1600 / 1067; }

.pf-mitre__side { aspect-ratio: 1600 / 1067; min-width: 0; }

@media (min-width: 800px) {
  .pf-floor { height: calc(100svh - 80px); }

  .pf-pair,
  .pf-mitre { min-height: calc(100svh - 80px); }

  .pf-pair {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .pf-pair .fx-frame {
    width: min(100%, calc(100svh - 180px));
  }

  .pf-mitre {
    grid-template-columns: 1fr 1.35fr 1fr;
    align-items: end;
    padding-top: 0;
  }

  .pf-mitre__center {
    grid-column: auto;
    order: 2;
    height: 70vh;
    aspect-ratio: auto;
  }

  .pf-mitre__side { order: 1; height: 48vh; aspect-ratio: auto; }
  .pf-mitre__side--right { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-page .pf-floor,
  .pf-page .pf-seq .fx-frame,
  .pf-page .pf-pair .fx-frame,
  .pf-page .pf-follow .fx-frame,
  .pf-page .pf-mitre .fx-frame,
  .pf-page .fx-frame img,
  .pf-page .fx-acc summary::after {
    transition: none;
  }
}
