/* Keep the menu over the entire chapter viewport, including its bottom edge. */
body.chapter-shell.impact-mode #drawer {
  inset: 0;
  height: auto;
  max-height: none;
  background: var(--black);
}

/* Keep the caption outside the portrait crop and above its collage. */
#live-poster .composition-live > .chiqi-crop-caption,
#live-poster .composition-out > .chiqi-crop-caption {
  top: 47%;
  bottom: auto;
  left: 14%;
  width: max-content;
  max-width: 78%;
  z-index: 6;
  overflow-wrap: anywhere;
  pointer-events: none;
}

/* Give the existing archive text its own readable paper surface. */
#main[data-screen="home"] .v2-page-index-caption {
  display: inline-block;
  padding: 3px 6px;
  border: 1px solid var(--black);
  background: var(--paper);
  color: var(--black);
}
