:root {
  --paper: #f7f5ef;
  --ink: #222520;
  --muted: #696b61;
  --line: #d7d6cd;
  --accent: #bb452b;
  --frame: #d8d4ca;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 20px/1.75 Georgia,"Times New Roman",serif;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

button {
  font: inherit;
  color: inherit;
}

a:focus-visible,button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 60;
  background: var(--paper);
  padding: 10px;
}

.skip:focus {
  top: 10px;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 50;
}

.hero {
  max-width: 1380px;
  margin: auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px,4vw,60px);
  align-items: center;
  padding: 50px 4vw 80px;
}

.hero-copy h1 {
  font-size: clamp(48px,5.5vw,78px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 0 0 24px;
}

.hero h1 em {
  color: var(--accent);
  font-weight: 400;
}

.eyebrow {
  font: 600 11px/1.5 Arial,sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 0 0 24px;
}

.hero-sub {
  font-size: 23px;
  line-height: 1.5;
}

.read-link {
  display: inline-flex;
  gap: 30px;
  text-decoration: none;
  border-bottom: 1px solid;
  padding-bottom: 7px;
  font: 14px/1.5 Arial,sans-serif;
}

.hero-figure {
  margin: 0;
}

.chapter {
  max-width: 1180px;
  padding: 0 30px;
  margin: 0 auto 80px;
}

.chapter-heading {
  max-width: 790px;
  margin: 0 auto 30px;
}

.chapter h2,.sources h2 {
  font-size: clamp(30px,3.5vw,43px);
  line-height: 1.2;
  letter-spacing: -.6px;
  font-weight: 400;
  margin: 0;
}

.chapter-body>p,.visual-intro {
  max-width: 720px;
  margin: 0 auto 24px;
}

.story-photo {
  max-width: 790px;
  margin: 42px auto;
}

.media {
  padding: 10px;
  background: var(--frame);
}

.photo {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  width: 100%;
  background: transparent;
  cursor: zoom-in;
}

.media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.hero-figure img {
  width: 100%;
  height: auto;
}

.zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f7f5efde;
  font: 21px/1 Arial,sans-serif;
}

figcaption {
  padding: 12px 0 0;
  font: 13px/1.6 Arial,Helvetica,sans-serif;
  color: var(--muted);
}

figcaption p {
  margin: 0;
}

.eisbaer-pair,.motif-grid,.motif-finale-duo {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  max-width: 980px;
  margin: 42px auto;
}

.eisbaer-pair>.story-photo,.motif-grid>.story-photo,.motif-finale-duo>.story-photo {
  flex: var(--image-ratio) 1 20px;
  min-width: 0;
  max-width: none;
  margin: 0;
}

.becker-subheading {
  max-width: 720px;
  margin: 40px auto 20px;
  font-size: 27px;
  line-height: 1.3;
  font-weight: 400;
}

.source-quote {
  max-width: 720px;
  margin: 24px auto 30px;
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  font-size: 21px;
  font-style: italic;
  line-height: 1.65;
}

.source-quote cite {
  display: block;
  margin-top: 14px;
  font: 12px/1.6 Arial,sans-serif;
  color: var(--muted);
}

.reference {
  font: 12px Arial,sans-serif;
  vertical-align: super;
  text-decoration: none;
}

.motif-sequence {
  margin: 58px auto 70px;
  max-width: 980px;
}

.motif-label {
  max-width: 790px;
  margin: 0 auto 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font: italic 22px/1.4 Georgia,serif;
  color: var(--muted);
}

.motif-subheading {
  margin-top: 44px;
}

.motif-lead .story-photo {
  margin: 0 auto 28px;
}

.kurpark-single {
  display: grid;
  gap: 30px;
}

.kurpark-single .story-photo {
  width: 100%;
  margin: 0 auto;
}

.motif-finale {
  max-width: 980px;
  margin: 60px auto 0;
}

.motif-finale-heading {
  font-size: 27px;
  line-height: 1.3;
  font-weight: 400;
  text-align: center;
}

.trilogy-nav {
  max-width: 1130px;
  margin: 70px auto;
  padding: 30px;
  border-block: 1px solid var(--line);
}

.trilogy-nav h2 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 400;
  margin: 0 0 25px;
}

.trilogy-cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}

.trilogy-cards a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 23px;
  border: 1px solid var(--line);
  text-decoration: none;
}

.trilogy-cards a[aria-current] {
  border-color: var(--accent);
}

.trilogy-cards small,.trilogy-cards span {
  font: 13px/1.6 Arial,sans-serif;
  color: var(--muted);
}

.trilogy-cards strong {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 400;
}

.sources {
  max-width: 790px;
  margin: 70px auto;
  padding: 0 24px;
}

.sources p,.sources li {
  font: 14px/1.75 Arial,sans-serif;
}

.sources ol {
  padding-left: 22px;
}

.sources li {
  margin: 18px 0;
  scroll-margin-top: 110px;
}

.sources a {
  overflow-wrap: anywhere;
}

.viewer {
  border: 0;
  padding: 48px 44px 20px;
  background: var(--paper);
  max-width: 95vw;
  max-height: 94vh;
  width: max-content;
  overflow: auto;
}

.viewer::backdrop {
  background: #111e;
}

.viewer img {
  display: block;
  max-width: calc(95vw - 88px);
  max-height: 74vh;
  width: auto;
  height: auto;
  margin: auto;
}

.viewer p {
  font: 13px/1.6 Arial,sans-serif;
  max-width: 800px;
}

.viewer button {
  cursor: pointer;
  border: 0;
  background: var(--paper);
  font: 28px Arial,sans-serif;
}

.viewer-close {
  position: absolute;
  right: 10px;
  top: 8px;
}

.viewer-arrow {
  position: absolute;
  top: 45%;
}

.viewer-prev {
  left: 5px;
}

.viewer-next {
  right: 5px;
}

.has-viewer {
  overflow: hidden;
}

.project-footer,.site-footer {
  max-width: 790px;
  margin: 50px auto;
  padding: 0 24px;
}

.project-footer h2,.site-footer h2 {
  font-size: 30px;
  font-weight: 400;
}

@media (max-width:800px) {
  body {
    font-size: 18px;
    line-height: 1.75;
  }
  
  .hero {
    display: block;
    padding: 35px 24px 55px;
  }
  
  .hero-copy {
    margin-bottom: 32px;
  }
  
  .hero-figure {
    max-width: 600px;
    margin: auto;
  }
  
  .chapter {
    padding: 0 22px;
    margin-bottom: 58px;
  }
  
  .hero-copy h1 {
    font-size: clamp(43px,8vw,65px);
  }
  
  .hero-sub {
    font-size: 21px;
  }
  
  .source-quote {
    font-size: 19px;
  }
  
  .trilogy-cards {
    grid-template-columns: 1fr;
  }
  
  .eisbaer-pair,.motif-grid,.motif-finale-duo {
    gap: 16px;
  }
  
  .trilogy-nav {
    padding: 24px;
  }
  
  .hb-credit {
    max-width: 650px;
  }
}

@media (max-width:650px) {
  .eisbaer-pair,.motif-grid,.motif-finale-duo {
    display: block;
  }
  
  .eisbaer-pair>.story-photo,.motif-grid>.story-photo,.motif-finale-duo>.story-photo {
    margin: 0 auto 28px;
    max-width: 100%;
  }
  
  .motif-sequence {
    margin: 42px auto 50px;
  }
  
  .viewer {
    padding: 45px 32px 16px;
  }
  
  .viewer img {
    max-width: calc(95vw - 64px);
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}

.media img {
  aspect-ratio: var(--image-ratio);
  object-fit: fill;
}

.project {
  max-width: 1130px;
  margin: 70px auto;
  padding: 34px 30px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.project h2 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 400;
  margin: 0;
}

.project p {
  font-size: 17px;
  line-height: 1.7;
  margin-top: 0;
}

.project a {
  font: 13px/1.6 Arial,sans-serif;
}

@media (max-width:650px) {
  .project {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 22px;
  }
}

/* Restore original photograph presentation and scan borders. */

.media img {
  aspect-ratio: auto;
}

button:focus-visible,a:focus-visible,summary:focus-visible,.gallery:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.hero-figure {
  margin: 0;
}

.hero-figure .photo {
  background: #e9e6dd;
  padding: 18px;
}

.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-figure figcaption {
  font: 11px/1.6 system-ui,sans-serif;
  color: var(--muted);
  margin: 12px 0;
}

.photo {
  position: relative;
  border: 0;
  padding: 0;
  display: block;
  width: 100%;
  cursor: zoom-in;
  background: transparent;
}

.gallery {
  max-width: 1100px;
  margin: 47px auto 43px;
  background: #eeece5;
  touch-action: pan-y;
  border: 1px solid #e3e0d6;
}

.media {
  padding: 27px;
  min-height: 250px;
  display: grid;
  place-items: center;
}

.media .photo {
  display: grid;
  place-items: center;
}

.media img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: 520px;
  object-fit: contain;
}

@media (max-width:800px) {
  .hero-figure {
    max-width: 680px;
  }
  
  .hero-figure .photo {
    padding: 12px;
  }
  
  .gallery {
    margin: 32px -10px;
  }
  
  .media {
    padding: 12px;
  }
  
  .media img {
    height: 390px;
  }
}

@media (max-width:480px) {
  .media img {
    height: 310px;
  }
}

.hero-figure .photo {
  padding: 8px;
}

.story-photo {
  max-width: 1100px;
  margin: 47px auto 43px;
  background: #eeece5;
  border: 1px solid #e3e0d6;
}

.story-photo .media {
  padding: 12px;
}

.story-photo .media img {
  height: auto;
  width: 100%;
  object-fit: contain;
}

.story-photo figcaption {
  background: var(--paper);
  padding: 21px 25px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 30px;
  font: 13px/1.6 system-ui,sans-serif;
  border-top: 1px solid var(--line);
}

.story-photo figcaption p {
  margin: 7px 0 0;
  color: var(--muted);
}

@media (max-width:800px) {
  .hero-figure {
    max-width: none;
    margin-inline: -10px;
  }
  
  .hero-figure .photo {
    padding: 5px;
  }
  
  .story-photo {
    margin: 32px -10px;
  }
  
  .story-photo .media {
    padding: 6px;
  }
  
  .story-photo figcaption {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 17px;
  }
}

.photo-pair .story-photo {
  margin: 0;
  min-width: 0;
}

.photo-pair .media img {
  height: 340px;
  object-fit: contain;
}

.photo-pair .story-photo figcaption {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 17px;
}

@media (max-width:800px) {
  .photo-pair .media img {
    height: auto;
  }
}

.story-photo.compact-photo .media img {
  width: auto;
  max-width: 100%;
  height: 520px;
  object-fit: contain;
}

@media (max-width:800px) {
  .story-photo.compact-photo .media img {
    height: 390px;
  }
}

@media (max-width:480px) {
  .story-photo.compact-photo .media img {
    height: 310px;
  }
}

figcaption, .story-photo figcaption {
  grid-template-columns: 1fr;
}

.gallery .media {
  padding: 12px;
}

.gallery .media img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 800px) {
  .gallery .media {
    padding: 6px;
  }
}

.gallery .media {
  min-height: 0;
}

.gallery .media .photo {
  position: relative;
  width: 100%;
  aspect-ratio: var(--slideshow-ratio, 4 / 3);
}

.gallery .media .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 801px) {
  .hero-figure {
    min-width: 0;
    max-width: none;
    margin: 0;
  }
  
  .hero-figure .photo {
    padding: 8px;
  }
}

.slide figcaption,
.story-photo figcaption {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  gap: 0;
}

.js .slide .media {
  flex: 0 0 auto;
}

.hero-figure figcaption {
  font-size: 13px;
}

.gallery.gallery-opening {
  width: 100%;
  max-width: 790px;
  margin-left: auto;
  margin-right: auto;
}

.gallery.gallery-opening .media .photo {
  aspect-ratio: 1569 / 2048;
}

.gallery.gallery-opening .media img {
  object-fit: contain;
}

.opening-pair .media {
  padding: 10px;
  background: #eeece5;
}

.opening-pair .media img {
  height: 320px;
  width: 100%;
  object-fit: contain;
}

@media (max-width:800px) {
  .opening-pair .media img {
    height: 230px;
  }
}

@media (max-width:480px) {
  .opening-pair .media img {
    height: 170px;
  }
}

.photo-pair.soldier-stack .story-photo {
  width: 100%;
  margin: 0;
}

.photo-pair.soldier-stack .media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.photo-pair.soldier-stack .media {
  padding: 12px;
}

.photo-pair.soldier-stack .story-photo figcaption {
  grid-template-columns: 1fr;
}

@media (max-width:800px) {
  .photo-pair.soldier-stack .media img {
    height: auto;
  }
}

.chapter:not(#kapitel-1) .story-photo,
.chapter:not(#kapitel-1) .gallery {
  width: 100%;
  max-width: 790px;
  margin-left: auto;
  margin-right: auto;
}

.chapter:not(#kapitel-1) .story-photo.compact-photo .media img {
  height: auto;
  width: 100%;
  max-width: 100%;
}

.gallery.gallery-koblenz .media .photo {
  aspect-ratio: 1569 / 2048;
}

.gallery.gallery-koblenz .media img {
  object-fit: contain;
}

@media (max-width:800px) {
  .chapter:not(#kapitel-1) .story-photo,.chapter:not(#kapitel-1) .gallery {
    width: 100%;
    max-width: 790px;
    margin-left: auto;
    margin-right: auto;
  }
}

.beauvisage-box .gallery.gallery-koblenz {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 26px 0 0;
}

.beauvisage-box .gallery.gallery-koblenz .media {
  background: transparent;
}

@media (max-width:800px) {
  .beauvisage-box .gallery.gallery-koblenz {
    margin-top: 20px;
  }
}

.beauvisage-box .gallery.gallery-koblenz {
  background: transparent;
  border-color: transparent;
}

.hero-figure .photo,.story-photo .media {
  background: #d8d4ca;
}

.story-photo .media img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-figure figcaption {
  font-size: 12px;
}

.gallery-strip .story-photo {
  margin: 38px 0;
}

@media (max-width:800px) {
  .hero-figure {
    margin-inline: 0;
  }
}

.bear-pair {
  max-width: 790px;
  align-items: start;
}

.bear-pair .media {
  height: 520px;
}

.bear-pair .media img {
  width: 100% !important;
  height: 490px !important;
  object-fit: contain;
}

.bear-pair figcaption {
  min-height: 140px;
}

@media (max-width:800px) {
  .bear-pair {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .bear-pair .media {
    height: 300px;
  }
  
  .bear-pair .media img {
    height: 275px !important;
  }
  
  .bear-pair figcaption {
    padding: 12px;
    font-size: 12px;
  }
}

@media (max-width:520px) {
  .bear-pair {
    grid-template-columns: 1fr;
  }
  
  .bear-pair .media {
    height: auto;
  }
  
  .bear-pair .media img {
    height: auto !important;
    max-height: 560px;
  }
  
  .bear-pair figcaption {
    min-height: 0;
  }
}

@media (min-width: 801px) {
  .hero-figure {
    width: 100%;
    max-width: 710px;
    justify-self: start;
  }
}

.hero-figure .media {
  padding: 10px;
  min-height: 0;
  display: block;
  background: #d8d4ca;
}

.hero-figure .photo {
  padding: 0;
}

.hero-figure .media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 800px) {
  .hero-figure {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
  }
  
  .hero-figure .media {
    padding: 6px;
  }
  
  .hero-figure .photo {
    padding: 0;
  }
}

.eisbaer-pair {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 23px;
  max-width: 980px;
  margin: 52px auto;
  align-items: start;
}

.eisbaer-pair figure {
  margin: 0;
}

.eisbaer-pair .media {
  padding: 14px;
  min-height: 0;
}

.eisbaer-pair .media img {
  width: 100%;
  height: 440px;
  object-fit: contain;
}

.eisbaer-pair figcaption {
  min-height: 104px;
}

.story-photo {
  max-width: 790px;
  margin: 50px auto;
}

.story-photo .media {
  min-height: 0;
  padding: 18px;
  background: #d8d4ca;
}

.story-photo .media img {
  width: 100%;
  height: auto;
  max-height: 850px;
  object-fit: contain;
}

.story-photo figcaption {
  padding: 13px 0;
  font: 13px/1.6 Arial,Helvetica,sans-serif;
  color: var(--muted);
}

.story-photo figcaption p {
  margin: 0 0 7px;
}

.hero-figure .media {
  padding: 11px;
}

.hero-figure .media img {
  height: auto;
  width: 100%;
  max-height: 790px;
  object-fit: contain;
}

@media (max-width:800px) {
  .hero-figure {
    max-width: 660px;
    margin: auto;
  }
  
  .eisbaer-pair {
    gap: 13px;
  }
  
  .eisbaer-pair .media img {
    height: 310px;
  }
}

@media (max-width:530px) {
  .eisbaer-pair {
    grid-template-columns: 1fr;
  }
  
  .eisbaer-pair .media img {
    height: auto;
    max-height: 700px;
  }
  
  .eisbaer-pair figcaption {
    min-height: 0;
  }
}

.motif-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
  align-items: start;
}

.motif-grid .story-photo {
  margin: 0;
  max-width: none;
}

.motif-grid .story-photo .media {
  padding: 13px;
}

.motif-grid .story-photo .media img {
  width: 100%;
  height: auto;
  max-height: 510px;
  object-fit: contain;
}

.motif-grid .story-photo figcaption {
  min-height: 0;
}

.motif-grid .story-photo:nth-child(3) {
  grid-column: 1/-1;
  max-width: 690px;
  justify-self: center;
}

.motif-lead .story-photo {
  margin: 0 auto 27px;
  max-width: 830px;
}

.motif-finale {
  max-width: 790px;
  margin: 80px auto 10px;
}

.motif-finale .story-photo {
  margin: 25px auto 0;
}

@media (max-width:650px) {
  .motif-grid {
    grid-template-columns: 1fr;
  }
  
  .motif-grid .story-photo:nth-child(3) {
    grid-column: auto;
    max-width: none;
  }
  
  .motif-grid .story-photo .media img {
    max-height: none;
  }
}

.motif-finale:has(.motif-finale-pair) {
  max-width: 1120px;
}

.motif-finale-pair .story-photo {
  width: 100%;
  max-width: none;
  margin: 0;
}

.motif-finale-pair .media {
  padding: 12px;
}

@media (min-width: 651px) {
  .motif-grid > .story-photo:nth-child(-n/**/+2) .media,
    .motif-finale-pair > .story-photo .media,
    .eisbaer-pair > .story-photo .media {
    box-sizing: border-box;
    height: clamp(430px, 60vw, 730px);
    min-height: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .motif-grid > .story-photo:nth-child(-n/**/+2) .media > .photo,
    .motif-finale-pair > .story-photo .media > .photo,
    .eisbaer-pair > .story-photo .media > .photo {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  
  .motif-grid > .story-photo:nth-child(-n/**/+2) .media > .photo > img,
    .motif-finale-pair > .story-photo .media > .photo > img,
    .eisbaer-pair > .story-photo .media > .photo > img {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
}

.motif-finale:has(.motif-finale-stack) {
  max-width: 790px;
  margin: 54px auto 18px;
}

.motif-finale-stack .story-photo {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.motif-finale-stack .media {
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  padding: 12px;
  background: #d8d4ca;
  display: block;
}

.motif-finale-stack .media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}

@media (max-width:650px) {
  .motif-finale-stack .media {
    padding: 10px;
  }
}

@media (min-width: 651px) {
  figure.story-photo.single-portrait-large {
    box-sizing: border-box;
    width: 100%;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
  }
  
  figure.story-photo.single-portrait-large > .media {
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #d8d4ca;
  }
  
  figure.story-photo.single-portrait-large > .media > .photo {
    width: auto;
    max-width: 100%;
    display: block;
    padding: 0;
  }
  
  figure.story-photo.single-portrait-large > .media img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 1020px !important;
    object-fit: contain;
    margin-inline: auto;
  }
  
  .motif-finale:has(.motif-finale-stack) {
    max-width: 950px;
  }
}

@media (max-width: 650px) {
  figure.story-photo.single-portrait-large {
    max-width: 100%;
  }
  
  figure.story-photo.single-portrait-large > .media {
    padding: 10px;
  }
  
  figure.story-photo.single-portrait-large > .media img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}

@media (min-width: 651px) {
  figure.story-photo.single-portrait-large {
    box-sizing: border-box;
    width: max-content !important;
    max-width: min(950px, 100%) !important;
    margin: 50px auto !important;
  }
  
  figure.story-photo.single-portrait-large > .media {
    box-sizing: border-box;
    display: block !important;
    width: max-content !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 12px !important;
    background: #d8d4ca;
  }
  
  figure.story-photo.single-portrait-large > .media > .photo {
    box-sizing: border-box;
    display: block !important;
    width: max-content !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 0 !important;
  }
  
  figure.story-photo.single-portrait-large > .media img {
    display: block !important;
    width: auto !important;
    height: 1020px !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
  }
  
  .motif-finale:has(.motif-finale-stack) {
    max-width: 950px;
  }
  
  .motif-finale-stack > figure.story-photo.single-portrait-large {
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
}

@media (min-width: 651px) and (max-width: 950px) {
  figure.story-photo.single-portrait-large > .media img {
    height: 95vw !important;
  }
}

@media (max-width: 650px) {
  figure.story-photo.single-portrait-large,
    .motif-finale-stack > figure.story-photo.single-portrait-large {
    width: fit-content !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  figure.story-photo.single-portrait-large > .media {
    display: block !important;
    width: fit-content !important;
    max-width: 100% !important;
    padding: 10px !important;
  }
  
  figure.story-photo.single-portrait-large > .media img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
  }
}

.motif-finale:has(.motif-finale-duo) {
  max-width: 1120px;
  margin: 60px auto 25px;
}

.motif-finale-duo > figure.story-photo {
  flex: 0 0 auto;
  width: max-content;
  max-width: none;
  margin: 0;
  background: #d8d4ca;
}

.motif-finale-duo > figure.story-photo > .media {
  display: block;
  width: max-content;
  max-width: none;
  padding: 12px;
  background: #d8d4ca;
}

.motif-finale-duo > figure.story-photo > .media img {
  display: block;
  width: auto;
  height: clamp(330px,55vw,650px);
  max-width: none;
  max-height: none;
  object-fit: contain;
}

@media (max-width:650px) {
  .motif-finale:has(.motif-finale-duo) {
    max-width: 100%;
    margin: 44px auto 20px;
  }
  
  .motif-finale-duo > figure.story-photo > .media {
    padding: 6px;
  }
  
  .motif-finale-duo > figure.story-photo > .media img {
    height: clamp(170px,55vw,350px);
  }
}

.motif-sequence-2 .kurpark-single {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.motif-sequence-2 .kurpark-single > .story-photo {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.motif-sequence-2 .kurpark-single .story-photo .media {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  padding: 12px;
  background: #d8d4ca;
}

.motif-sequence-2 .kurpark-single .story-photo .media .photo {
  display: block;
  width: 100%;
  height: auto;
}

.motif-sequence-2 .kurpark-single .story-photo .media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}

@media (max-width:650px) {
  .motif-sequence-2 .kurpark-single .story-photo .media {
    padding: 10px;
  }
}

.motif-sequence-2 .kurpark-single {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.motif-sequence-2 .kurpark-single > .story-photo {
  flex: none;
}

.motif-sequence-2 .kurpark-single > .story-photo .media img {
  object-fit: contain;
}

@media (max-width:650px) {
  .motif-sequence-2 .kurpark-single {
    gap: 22px;
  }
}

/* Compact, responsive image enlargement. */

.viewer {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: fit-content;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  padding: 48px 24px 18px;
  border: 0;
  background: var(--paper);
  overflow: auto;
  box-shadow: 0 12px 60px #0005;
}

.viewer::backdrop {
  background: rgba(15,17,15,.88);
}

.viewer img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 80px);
  max-height: calc(100dvh - 160px);
  margin: 0 auto;
  object-fit: contain;
}

.viewer p {
  max-width: 760px;
  margin: 12px 0 0;
  font: 13px/1.5 Arial,Helvetica,sans-serif;
  color: var(--muted);
}

.viewer .viewer-close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: 28px/1 Arial,Helvetica,sans-serif;
  cursor: pointer;
}

.viewer .viewer-close:hover {
  background: var(--line);
}

.viewer .viewer-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.viewer .viewer-arrow {
  font: 24px/1 Arial,sans-serif;
  width: 32px;
  height: 44px;
  padding: 0;
}

@media (max-width:650px) {
  .viewer {
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 46px 12px 14px;
  }
  
  .viewer img {
    max-width: calc(100vw - 40px);
    max-height: calc(100dvh - 150px);
  }
  
  .viewer p {
    font-size: 12px;
  }
  
  .viewer .viewer-close {
    width: 40px;
    height: 40px;
    top: 3px;
    right: 3px;
  }
}

/* Closing pair shares the large two-image format of the motif groups. */

.motif-finale {
  width: 100%;
  max-width: 1120px;
  margin: 70px auto 25px;
}

.motif-finale>.eisbaer-pair {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
  margin: 32px auto 0;
  align-items: start;
}

.motif-finale>.eisbaer-pair>.story-photo {
  width: 100%;
  max-width: none;
  margin: 0;
  min-width: 0;
}

.motif-finale>.eisbaer-pair>.story-photo>.media {
  box-sizing: border-box;
  width: 100%;
  height: clamp(430px,60vw,730px);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.motif-finale>.eisbaer-pair>.story-photo>.media>.photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
}

.motif-finale>.eisbaer-pair>.story-photo>.media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  aspect-ratio: auto;
}

@media (max-width:650px) {
  .motif-finale>.eisbaer-pair {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .motif-finale>.eisbaer-pair>.story-photo>.media {
    height: auto;
  }
  
  .motif-finale>.eisbaer-pair>.story-photo>.media>.photo {
    height: auto;
  }
  
  .motif-finale>.eisbaer-pair>.story-photo>.media img {
    height: auto;
  }
}

.motif-finale {
  max-width: 980px;
}

.motif-finale>.eisbaer-pair {
  max-width: 980px;
  display: flex;
  gap: 20px;
}

.motif-finale>.eisbaer-pair>.story-photo {
  flex: var(--closing-ratio) 1 20px;
  width: auto;
}

.motif-finale>.eisbaer-pair>.story-photo>.media {
  height: auto;
  display: block;
}

.motif-finale>.eisbaer-pair>.story-photo>.media>.photo {
  height: auto;
  display: block;
}

.motif-finale>.eisbaer-pair>.story-photo>.media img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--closing-ratio);
}

@media (max-width:650px) {
  .motif-finale>.eisbaer-pair {
    display: block;
  }
  
  .motif-finale>.eisbaer-pair>.story-photo {
    margin-bottom: 28px;
  }
}

/* A quieter single portrait, aligned with the scale of paired photographs. */

#verbreitung figure.story-photo.schirm-photo {
  width: 100%;
  max-width: 450px;
  margin: 40px auto;
}

#verbreitung .schirm-photo>.media {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 10px;
}

#verbreitung .schirm-photo>.media>.photo {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
}

#verbreitung .schirm-photo>.media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

/* Every enlargement fills the available stage, including small originals. */

.viewer {
  width: calc(100vw - 32px);
  height: calc(100dvh - 32px);
  max-width: none;
  max-height: none;
  padding: 48px 24px 18px;
  overflow: hidden;
}

.viewer[open] {
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  gap: 12px;
}

.viewer img {
  grid-row: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
}

.viewer p {
  grid-row: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width:650px) {
  .viewer {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    max-width: none;
    max-height: none;
    padding: 46px 12px 14px;
  }
  
  .viewer img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }
  
  .viewer p {
    font-size: 12px;
  }
}

/* Atelier story: same paper, typography, image borders and navigation as the polar-bear story. */

.atelier-pair.eisbaer-pair {
  display: flex;
  width: 100%;
  max-width: 980px;
  gap: 20px;
  align-items: flex-start;
  margin: 42px auto;
}

.atelier-pair.eisbaer-pair>figure.story-photo {
  flex: var(--pair-ratio) 1 20px;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
}

.atelier-pair.eisbaer-pair>.story-photo>.media {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 10px;
}

.atelier-pair.eisbaer-pair>.story-photo>.media>.photo {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
}

.atelier-pair.eisbaer-pair>.story-photo>.media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: var(--pair-ratio);
  object-fit: contain;
}

.chapter figure.story-photo.atelier-single-portrait {
  width: 100%;
  max-width: 450px;
  margin: 42px auto;
}

.chapter figure.story-photo.atelier-catalog {
  width: 100%;
  max-width: 980px;
}

.chapter figure.story-photo.atelier-document {
  width: 100%;
  max-width: 450px;
}

.chapter figure.story-photo.atelier-single-portrait .media,.chapter figure.story-photo.atelier-catalog .media,.chapter figure.story-photo.atelier-document .media {
  padding: 10px;
  display: block;
  min-height: 0;
  height: auto;
}

.chapter figure.story-photo.atelier-single-portrait .media img,.chapter figure.story-photo.atelier-catalog .media img,.chapter figure.story-photo.atelier-document .media img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
}

.document-note {
  max-width: 720px;
  margin: 26px auto 36px;
  border-block: 1px solid var(--line);
  font: 14px/1.6 Arial,sans-serif;
}

.document-note>summary,.transcription-details>summary {
  cursor: pointer;
  padding: 16px 0;
}

.document-note .story-photo {
  max-width: 600px;
  margin: 8px auto 24px;
}

.family-aside {
  max-width: 790px;
  margin: 42px auto;
  padding: 28px;
  background: var(--frame);
  border-left: 3px solid #a49a88;
}

.family-aside h3 {
  font-size: 27px;
  line-height: 1.3;
  font-weight: 400;
  margin: 0 0 20px;
}

.family-aside>p {
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 20px;
}

.family-aside .media {
  background: var(--paper);
}

.transcription-details {
  border-top: 1px solid #b8b3a8;
  font: 14px/1.7 Arial,sans-serif;
  margin-top: 22px;
}

.transcription {
  font: 15px/1.7 Georgia,serif;
  padding: 0 0 8px;
}

.transcription p {
  margin: 0 0 14px;
}

.transcription .transcript-line {
  margin: 0;
}

@media (max-width:650px) {
  .atelier-pair.eisbaer-pair {
    display: block;
  }
  
  .atelier-pair.eisbaer-pair>figure.story-photo {
    margin: 0 auto 28px;
    width: 100%;
  }
  
  .family-aside {
    padding: 22px 18px;
  }
  
  .family-aside>p {
    font-size: 17px;
  }
}

/* Keep standalone portraits and handwritten documents at the intended quiet scale. */

main .chapter:not(#kapitel-1) figure.story-photo.atelier-single-portrait,
main .chapter:not(#kapitel-1) figure.story-photo.atelier-document {
  width: 100%;
  max-width: 450px;
  margin: 42px auto;
}

main .chapter:not(#kapitel-1) figure.story-photo.atelier-catalog {
  width: 100%;
  max-width: 980px;
}

/* Catalogue sidebar, using the same inset treatment as the family story. */

.catalog-aside {
  box-sizing: border-box;
  max-width: 980px;
  margin: 52px auto;
  padding: 28px;
  background: var(--frame);
  border-left: 3px solid #a49a88;
}

.catalog-aside h3 {
  margin: 0 auto 22px;
  max-width: 720px;
  font: normal 27px/1.3 Georgia,serif;
}

.catalog-aside>p {
  max-width: 720px;
  margin: 0 auto 22px;
  font-size: 18px;
  line-height: 1.75;
}

main .chapter:not(#kapitel-1) .catalog-aside figure.story-photo.atelier-catalog {
  width: 100%;
  max-width: 100%;
  margin: 28px auto;
}

.catalog-aside .story-photo>.media {
  background: var(--paper);
}

.catalog-aside .story-photo figcaption {
  background: transparent;
  border: 0;
  padding: 12px 0 0;
}

@media (max-width:650px) {
  .catalog-aside {
    padding: 22px 18px;
    margin: 36px auto;
  }
  
  .catalog-aside>p {
    font-size: 17px;
  }
}

/* Full-screen dark viewer, matching the supplied earlier polar-bear design. */

.viewer {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  margin: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 70px 48px 18px;
  background: #282824;
  color: #d6d4ca;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.viewer::backdrop {
  background: #282824;
}

.viewer[open] {
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  gap: 28px;
}

.viewer img {
  grid-row: 1;
  align-self: center;
  justify-self: center;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  object-fit: contain;
}

.viewer p {
  grid-row: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  color: #d6d4ca;
  text-align: center;
  font: 12px/1.5 Arial,Helvetica,sans-serif;
}

.viewer .viewer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: block;
  width: auto;
  height: 34px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #d6d4ca;
  border-radius: 0;
  background: transparent;
  color: #f0eee5;
  font: 12px/32px Arial,Helvetica,sans-serif;
  cursor: pointer;
}

.viewer .viewer-close:hover {
  background: #ffffff15;
}

.viewer .viewer-close:focus-visible {
  outline: 2px solid #d6d4ca;
  outline-offset: 3px;
}

.viewer .viewer-arrow {
  background: transparent;
  color: #f0eee5;
}

@media (max-width:650px) {
  .viewer {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    padding: 64px 14px 18px;
  }
  
  .viewer[open] {
    gap: 22px;
  }
  
  .viewer img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }
  
  .viewer p {
    font-size: 11px;
  }
  
  .viewer .viewer-close {
    top: 12px;
    right: 12px;
    width: auto;
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 34px;
  }
}

/* A single sidebar contains both sides of the sisters' photograph. */

.sisters-section>.story-photo {
  background: transparent;
}

.sisters-section>.story-photo>.media {
  background: var(--paper);
}

.sisters-section>.story-photo figcaption {
  border: 0;
  background: transparent;
  padding: 12px 0 0;
}

/* Catalogue inset aligns with the single landscape photographs. */

.catalog-aside {
  width: 100%;
  max-width: 790px;
}

/* Compact family inset with optional supporting documents. */

.sisters-section {
  padding: 24px;
  max-width: 790px;
}

.sisters-section h3 {
  margin-bottom: 16px;
}

.sisters-section>p {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 16px;
}

main .chapter:not(#kapitel-1) .sisters-section>figure.atelier-single-portrait {
  max-width: 340px;
  margin: 24px auto;
}

.sisters-document-details {
  border-top: 1px solid #b8b3a8;
  margin-top: 20px;
  font: 14px/1.6 Arial,sans-serif;
}

.sisters-document-details>summary {
  padding: 14px 0;
  cursor: pointer;
}

.sisters-document-details .transcription-details {
  margin-top: 16px;
}

@media (max-width:650px) {
  .sisters-section {
    padding: 20px 16px;
  }
  
  .sisters-section>p {
    font-size: 16px;
  }
}

/* One actual image height for every portrait, including title, pairs and family inset. */

:root {
  --portrait-height: min(680px,calc((100vw - 104px)/1.31));
}

body main .hero figure.uniform-portrait,body main .chapter:not(#kapitel-1) figure.uniform-portrait {
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  margin: 34px auto;
}

body main .hero figure.uniform-portrait>.media,body main .chapter:not(#kapitel-1) figure.uniform-portrait>.media {
  display: block;
  width: max-content;
  max-width: 100%;
  height: auto;
  min-height: 0;
  padding: 10px;
}

body main figure.uniform-portrait>.media>.photo {
  display: block;
  width: max-content;
  max-width: 100%;
  height: auto;
  padding: 0;
}

body main .hero figure.uniform-portrait>.media img,body main .chapter:not(#kapitel-1) figure.uniform-portrait>.media img {
  display: block;
  width: calc(var(--portrait-height)*var(--portrait-ratio));
  height: var(--portrait-height);
  max-width: none;
  max-height: none;
  object-fit: contain;
  aspect-ratio: var(--portrait-ratio);
}

body main .atelier-pair {
  justify-content: center;
}

body main figure.uniform-portrait figcaption {
  max-width: calc(var(--portrait-height)*var(--portrait-ratio) + 20px);
}

@media (max-width:650px) {
  :root {
    --portrait-height: min(680px,calc((100vw - 128px)/.745));
  }
  
  body main .atelier-pair.eisbaer-pair>figure.uniform-portrait {
    width: max-content;
    margin: 0 auto 28px;
  }
}

/* Researched photographers' directory before the source notes. */

.photographers {
  max-width: 790px;
  margin: 70px auto;
  padding: 0 24px;
}

.photographers>h2 {
  font: normal clamp(30px,3.5vw,43px)/1.2 Georgia,serif;
  letter-spacing: -.6px;
  margin: 0 0 24px;
}

.photographers-intro,.photographers-note {
  font: 14px/1.75 Arial,Helvetica,sans-serif;
  color: var(--muted);
  margin: 0 0 26px;
}

.photographer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.photographer-list>li {
  margin: 0;
  padding: 23px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}

.photographer-list h3 {
  font: normal 25px/1.3 Georgia,serif;
  margin: 0 0 12px;
}

.photographer-list p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 10px;
}

.photographer-list .reference {
  font: 11px Arial,sans-serif;
  vertical-align: super;
  text-decoration: none;
}

.photo-evidence {
  font: 12px/1.6 Arial,sans-serif;
  color: var(--muted);
}

.photographers-note {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

@media (max-width:650px) {
  .photographer-list p {
    font-size: 16px;
  }
  
  .photographer-list h3 {
    font-size: 23px;
  }
}

/* The family photographs, frames and captions share the actual image width. */

body main .chapter:not(#kapitel-1) .sisters-section figure.story-photo.uniform-portrait {
  box-sizing: border-box;
  width: calc(var(--portrait-height)*var(--portrait-ratio) + 20px);
  max-width: 100%;
  margin: 28px auto;
}

body main .chapter:not(#kapitel-1) .sisters-section figure.story-photo.uniform-portrait>.media {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding: 10px;
}

body main .chapter:not(#kapitel-1) .sisters-section figure.story-photo.uniform-portrait>.media>.photo {
  width: 100%;
  max-width: none;
  height: auto;
}

body main .chapter:not(#kapitel-1) .sisters-section figure.story-photo.uniform-portrait>.media img {
  width: 100%;
  height: var(--portrait-height);
  max-width: 100%;
  object-fit: contain;
}

body main .chapter:not(#kapitel-1) .sisters-section figure.story-photo.uniform-portrait>figcaption {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 0 0;
  border: 0;
  background: transparent;
}

body main .chapter:not(#kapitel-1) .sisters-section figure.story-photo.uniform-portrait {
  border: 0;
  background: transparent;
}

/* This replacement already contains its white border; add no second mat. */

body main .chapter:not(#kapitel-1) .sisters-section figure.story-photo.uniform-portrait.original-white-border {
  width: calc(var(--portrait-height)*var(--portrait-ratio));
  border: 0;
  background: transparent;
}

body main .chapter:not(#kapitel-1) .sisters-section figure.story-photo.uniform-portrait.original-white-border>.media {
  padding: 0;
  background: transparent;
  border: 0;
}

/* Version 21: compact parallel view of manuscript and transcription */

.sisters-document-details[open] {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.sisters-document-details .document-pair {
  display: grid;
  grid-template-columns: minmax(0,0.9fr) minmax(0,1.1fr);
  gap: 22px;
  align-items: start;
  padding: 12px 0 8px;
}

.sisters-document-details .document-pair figure.story-photo.atelier-document {
  width: 100%;
  max-width: none;
  margin: 0;
}

.sisters-document-details .document-pair .transcription-details {
  border: 0;
  margin: 0;
  padding: 2px 0 0;
  font-size: 13px;
}

.sisters-document-details .document-pair .transcription {
  font: 13px/1.48 Georgia,serif;
  padding: 0;
}

.sisters-document-details .document-pair .transcription p {
  margin: 0 0 9px;
}

.sisters-document-details .document-pair .transcription .transcript-line {
  margin: 0;
}

.sisters-document-details .document-pair figure.story-photo figcaption {
  font-size: 12px;
}

@media (max-width:620px) {
  .sisters-document-details .document-pair {
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
  }
  
  .sisters-document-details .document-pair figure.story-photo.atelier-document {
    max-width: 310px;
    margin: 0 auto;
  }
  
  .sisters-document-details .document-pair .transcription {
    font-size: 14px;
    line-height: 1.55;
  }
}

/* Version 22: manuscript and transcription share a flush top edge; no portrait mat or fixed-height whitespace. */

body main .chapter:not(#kapitel-1) .sisters-section .sisters-document-details .document-pair figure.story-photo.atelier-document.uniform-portrait {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  align-self: start;
}

body main .chapter:not(#kapitel-1) .sisters-section .sisters-document-details .document-pair figure.story-photo.atelier-document.uniform-portrait>.media {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  margin: 0;
  background: transparent;
}

body main .chapter:not(#kapitel-1) .sisters-section .sisters-document-details .document-pair figure.story-photo.atelier-document.uniform-portrait>.media>.photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
}

body main .chapter:not(#kapitel-1) .sisters-section .sisters-document-details .document-pair figure.story-photo.atelier-document.uniform-portrait>.media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

body main .chapter:not(#kapitel-1) .sisters-section .sisters-document-details .document-pair figure.story-photo.atelier-document.uniform-portrait>figcaption {
  padding: 5px 0 0;
  margin: 0;
}

.sisters-document-details .document-pair {
  padding-top: 4px;
  align-items: start;
}

.sisters-document-details .document-pair .transcription-details {
  padding-top: 0;
}

/* Version 24: enlarge only the opening portrait by roughly nine percent on desktop. */

@media (min-width:801px) {
  body main .hero {
    --portrait-height: min(740px,calc((100vw - 104px)/1.22));
  }
}

/* v26: sisters story is part of the article, not a highlighted box */

.sisters-section {
  max-width: 790px;
  margin: 48px auto 0;
  padding: 0;
  background: none;
  border: 0;
}

.sisters-section h3 {
  font-size: 27px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 20px;
}

.sisters-section>p {
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 20px;
}

.sisters-section>.story-photo {
  margin: 26px auto;
}

.sisters-section .sisters-document-details {
  margin-top: 24px;
}

.story-conclusion {
  max-width: 790px;
  margin: 72px auto 70px;
  padding: 0;
}

.story-conclusion h2 {
  margin: 0 0 24px;
}

.story-conclusion p {
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 20px;
}

@media (max-width:650px) {
  .sisters-section>p,.story-conclusion p {
    font-size: 17px;
  }
  
  .story-conclusion {
    margin-top: 52px;
  }
}

/* v28: consistent presentation of the three individual portrait plates.
   Preserve the full original photographic cards and their proportions. */

body main figure.story-photo#bild-graef,
body main figure.story-photo#bild-content,
body main .chapter:not(#kapitel-1) .sisters-section figure.story-photo#bild-beckmann {
  box-sizing: border-box;
  display: block;
  width: min(100%,520px);
  max-width: 520px;
  margin: 42px auto;
  padding: 0;
  background: #eeece5;
  border: 1px solid #e3e0d6;
}

body main figure.story-photo#bild-graef>.media,
body main figure.story-photo#bild-content>.media,
body main .chapter:not(#kapitel-1) .sisters-section figure.story-photo#bild-beckmann>.media {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 12px;
  background: var(--frame);
  border: 0;
}

body main figure.story-photo#bild-graef>.media>.photo,
body main figure.story-photo#bild-content>.media>.photo,
body main .chapter:not(#kapitel-1) .sisters-section figure.story-photo#bild-beckmann>.media>.photo {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

body main figure.story-photo#bild-graef>.media img,
body main figure.story-photo#bild-content>.media img,
body main .chapter:not(#kapitel-1) .sisters-section figure.story-photo#bild-beckmann>.media img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}

body main figure.story-photo#bild-graef>figcaption,
body main figure.story-photo#bild-content>figcaption,
body main .chapter:not(#kapitel-1) .sisters-section figure.story-photo#bild-beckmann>figcaption {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 17px 18px;
  background: var(--paper);
  border: 0;
}

@media (max-width:650px) {
  body main figure.story-photo#bild-graef,
    body main figure.story-photo#bild-content,
    body main .chapter:not(#kapitel-1) .sisters-section figure.story-photo#bild-beckmann {
    width: 100%;
    max-width: 520px;
    margin: 30px auto;
  }
}

/* v30: Graef and Content return to the standard boxed presentation used on the page,
   but keep a portrait-sized width so the high-format cards do not become oversized. */

body main figure.story-photo#bild-graef,
body main figure.story-photo#bild-content {
  box-sizing: border-box !important;
  display: block !important;
  width: min(100%, calc(var(--portrait-height) * var(--portrait-ratio) + 20px)) !important;
  max-width: 100% !important;
  margin: 34px auto !important;
  padding: 0 !important;
  border: 1px solid #e3e0d6 !important;
  background: #eeece5 !important;
}

body main figure.story-photo#bild-graef > .media,
body main figure.story-photo#bild-content > .media {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 10px !important;
  margin: 0 !important;
  background: var(--frame) !important;
  border: 0 !important;
}

body main figure.story-photo#bild-graef > .media > .photo,
body main figure.story-photo#bild-content > .media > .photo {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body main figure.story-photo#bild-graef > .media img,
body main figure.story-photo#bild-content > .media img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

body main figure.story-photo#bild-graef > figcaption,
body main figure.story-photo#bild-content > figcaption {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 15px 18px !important;
  border: 0 !important;
  background: var(--paper) !important;
}

/* HISTORICBITS / STRAND-TRILOGIE — MASTER DESIGN v3
   This file is the single place for shared visual decisions.
   Existing story-specific layouts remain in styles.css until the
   second refactoring pass; no photographic content is cropped.
*/

:root {
  --master-paper: #f7f5ef;
  --master-frame: #d8d4ca;
  --master-text-width: 720px;
  --master-landscape-width: 1100px;
  --master-caption-size: 13px;
}

/* Large editorial headline, while keeping Atelier's serif typography. */

body .hero-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 7.2vw, 104px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 400;
}

/* The larger landscape treatment from Des Aufrührers Ende.
   Excludes portrait-marked figures and side-by-side image pairs. */

@media (min-width: 801px) {
  body main .chapter:not(#kapitel-1) figure.story-photo.landscape-wide {
    width: 100%;
    max-width: var(--master-landscape-width);
    margin-left: auto;
    margin-right: auto;
  }
}

/* Portrait presentation remains defined by the Atelier's original
   uniform-portrait rules and its individually curated image layouts. */

@media (max-width: 800px) {
  body .hero-copy h1 {
    font-size: clamp(46px, 8.5vw, 76px);
    letter-spacing: -.035em;
  }
}

@media (max-width: 480px) {
  body .hero-copy h1 {
    font-size: clamp(43px, 11vw, 58px);
  }
}
