/* Reading layout for workshop content. */
#body-inner p {
  line-height: 1.5;
  text-align: justify;
  text-indent: 2em;
}

/* Do not indent short UI/content elements that are not prose. */
#body-inner p:has(> img),
#body-inner p:has(> a > img),
#body-inner .notice p,
#body-inner .tabs-wrapper p,
#body-inner blockquote p {
  text-indent: 0;
}

/* Keep top-level pages semantically marked as chapters, but present them
   with the same reading layout as their child pages. */
#chapter {
  display: block;
  height: auto;
  padding: 0;
}

#chapter #body-inner {
  max-width: none;
  padding-bottom: 0;
}

#chapter h1 {
  font-size: 3.25rem;
  line-height: 1.6;
  border-bottom: 0;
}

body #chapter h1 {
  font-size: 3.25rem;
}

#chapter p {
  text-align: justify;
  font-size: 1rem;
}

#body-inner img:not(.inline) {
  cursor: zoom-in;
}

/* Make the enlarged image use the available viewport. */
.featherlight .featherlight-content {
  max-width: 96vw;
  max-height: 96vh;
  padding: 12px 12px 0;
}

.featherlight .featherlight-image {
  max-width: 94vw;
  max-height: 90vh;
  object-fit: contain;
}
