.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.bbb-story {
  --story-rule: #d5d2cd;
  --story-accent: #884432;
  --story-serif: Georgia, "Times New Roman", serif;
  width: min(100% - 2.5rem, var(--page));
  margin-inline: auto;
}

.bbb-story-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  grid-template-areas: "title portrait" "copy portrait";
  gap: 2rem clamp(2rem, 6vw, 6.5rem);
  align-items: start;
  padding: clamp(3rem, 8vw, 8rem) 0 clamp(3rem, 7vw, 7rem);
}

.bbb-story-title { grid-area: title; }
.bbb-story-title .eyebrow {
  color: var(--story-accent);
  margin-bottom: 1.25rem;
}
.bbb-story-title h1 {
  font-size: clamp(3.45rem, 6.2vw, 6.25rem);
  line-height: .95;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.bbb-story-opening > .bbb-story-prose { grid-area: copy; }

.bbb-story-prose {
  width: min(100%, 58ch);
  color: #222;
  font: clamp(1.125rem, 1.55vw, 1.375rem)/1.55 var(--story-serif);
}

.bbb-story-prose p { margin: 0 0 1em; }
.bbb-story-prose p:last-child { margin-bottom: 0; }
.bbb-story-prose h2 {
  margin: 0 0 1.15rem;
  font: 750 clamp(1.65rem, 3.6vw, 3.15rem)/1.02 Arial, Helvetica, sans-serif;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.bbb-story-prose .bbb-story-emphasis {
  border-left: 2px solid var(--story-accent);
  padding-left: clamp(.75rem, 2vw, 1.5rem);
  margin-block: 1.45em;
  font: 750 clamp(1.45rem, 2.5vw, 2.35rem)/1.13 Arial, Helvetica, sans-serif;
  letter-spacing: -.035em;
  color: var(--ink);
  text-wrap: pretty;
}

.bbb-story-photo { margin: 0; min-width: 0; }
.bbb-story-photo img { width: 100%; height: auto; }
.bbb-story-portrait {
  grid-area: portrait;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.bbb-story-portrait img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.5);
  transform-origin: 54% 14%;
}
.bbb-story-landscape img { aspect-ratio: 4 / 3; object-fit: cover; }
.bbb-story-whole-image img { max-height: 40rem; object-fit: contain; }

.bbb-story-chapter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "copy photo";
  align-items: center;
  gap: clamp(2rem, 6vw, 6.5rem);
  border-top: 1px solid var(--story-rule);
  padding: clamp(3.25rem, 7vw, 7rem) 0;
}
.bbb-story-photo-first { grid-template-areas: "photo copy"; }
.bbb-story-chapter .bbb-story-prose { grid-area: copy; }
.bbb-story-chapter .bbb-story-photo { grid-area: photo; }

.bbb-story-work, .bbb-story-end {
  border-top: 1px solid var(--story-rule);
  padding: clamp(3.5rem, 7vw, 7rem) 0;
}
.bbb-story-centred { margin-inline: auto; }
.bbb-story-work .bbb-story-prose h2 { margin-bottom: 1.75rem; }
.bbb-story-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(1rem, 4vw, 3.75rem);
  list-style: none;
  margin: clamp(2rem, 5vw, 4.25rem) 0 0;
  padding: 0;
}
.bbb-story-gallery a { display: block; }
.bbb-story-gallery img { aspect-ratio: 4 / 3; object-fit: contain; background: #f6f5f2; }
.bbb-story-gallery span {
  display: block;
  padding: .9rem 0;
  border-bottom: 1px solid var(--story-rule);
  font-weight: 700;
}
.bbb-story-gallery a:hover span, .bbb-story-gallery a:focus-visible span {
  text-decoration: underline;
  text-underline-offset: .22em;
}
.bbb-story-prose .bbb-story-farewell { margin-block: 1.9em 1.4em; }
.bbb-story-prose .bbb-story-signature {
  font: 700 1rem/1.4 Arial, Helvetica, sans-serif;
  color: var(--ink);
}

@media (min-width: 1024px) and (min-height: 700px) {
  .bbb-story-portrait {
    position: sticky;
    top: 6.5rem;
    width: min(100%, 34.4rem, calc(80svh - 6.4rem));
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .bbb-story { width: calc(100% - 2rem); }
  .bbb-story-opening {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "portrait" "copy";
    gap: 1.65rem;
    padding-top: 2.75rem;
  }
  .bbb-story-title h1 { font-size: clamp(3.05rem, 11vw, 4.65rem); }
  .bbb-story-chapter, .bbb-story-photo-first {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "photo";
    gap: 1.75rem;
  }
}

@media (max-width: 460px) {
  .bbb-story-gallery { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
}
