/* Aliswa overrides — natural-overflow pagination replaces CSS columns */

/* Remove CSS multi-column layout from manuscript */
.manuscript {
  column-width: unset !important;
  column-gap: unset !important;
  column-fill: unset !important;
  /* cqi units no longer valid without container — use clamp fallback (px min/max) */
  overflow: hidden;
}

/* Each page is a full-size container */
.slide-page {
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Ensure elements inside pages maintain their original styles */
.slide-page h1,
.slide-page h2,
.slide-page h3,
.slide-page h4,
.slide-page p,
.slide-page ul,
.slide-page ol,
.slide-page li {
  /* Break properties no longer needed — paginator handles breaks */
  break-before: auto !important;
  break-after: auto !important;
  break-inside: auto !important;
}

/* Images: cap to slide-page in BOTH axes (overrides the main stack's 80cqw/cqh
 * which would fall back to svw/svh in aliswa — no container-type ancestor —
 * and produce a long thin strip when the source canvas is tall). */
.slide-page img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
