/* Four user-supplied story sketches. Load after styles.css. */
.story-interlude {
  display: grid;
  grid-template-columns: 34% minmax(0, 1fr);
  height: auto;
  min-height: 420px;
  overflow: visible;
  background: #ede1cf;
  border-top: 1px solid #d9c4aa;
  border-bottom: 1px solid #d9c4aa;
}
.story-interlude::after { display: none; }
.story-interlude .interlude-copy {
  color: var(--navy);
  padding: 62px 36px 62px var(--gutter);
}
.story-interlude .interlude-copy h2 {
  font-size: clamp(42px, 4.3vw, 68px);
  text-shadow: none;
}
.story-interlude .interlude-copy .text-link {
  color: var(--navy);
  border-color: #202a4360;
}
.interlude-sketch {
  align-self: center;
  min-width: 0;
  margin: 0;
  background: #f1e3cf;
}
.interlude-sketch > img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.interlude-sketch > figcaption {
  padding: 13px 24px;
  font-size: 10px;
  letter-spacing: .04em;
  color: #675443;
}
#story .story-photograph {
  min-width: 0;
}

#story .story-sketches-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
#story .story-sketches-cell:first-child { grid-column: 1 / -1; }

.story-sketches-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.story-sketches-cell {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 4 / 3;
  padding: 5px;
  overflow: hidden;
  border: 1px solid #d9c4aa;
  background: #f1e3cf;
}

.story-sketches-cell > img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

#story .story-photograph > .story-sketches-caption {
  gap: 8px;
  padding-top: 19px;
}

#story .story-memory.story-memory--text {
  gap: 0;
}

#story .story-memory--text .story-memory-text {
  max-width: 340px;
}

/* Add both classes to the four-image gallery in the expanded story. */
.story-dialog-gallery.story-sketches-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin: 30px 0 14px;
}

@media (max-width: 800px) {
  .story-interlude { grid-template-columns: 1fr; min-height: 0; }
  .story-interlude .interlude-copy { padding: 48px var(--gutter) 40px; }
  .story-interlude .interlude-copy h2 { font-size: clamp(43px, 7vw, 60px); }
  .interlude-sketch > figcaption { padding: 13px var(--gutter); }
  .story-sketches-grid { gap: 8px; }
  .story-sketches-cell { padding: 3px; }
}

@media (max-width: 600px) {
  #story .story-photograph { max-width: 480px; }
  .story-sketches-grid { gap: 10px; }
  .story-dialog-gallery.story-sketches-grid { gap: 10px; }
}
