/*
 * Print stylesheet for the PDF build (mkdocs-to-pdf / WeasyPrint).
 *
 * WeasyPrint cannot break an image across two pages. An image taller than the
 * text area therefore never fits anywhere: it is pushed to the next page, does
 * not fit there either, and the layout stops - the rest of the manual silently
 * disappears from the PDF. Two screenshots were enough to cut the handbook from
 * 175 pages down to 12.
 *
 * Capping the height keeps every screenshot on a single page. width:auto makes
 * WeasyPrint scale the width along with it, so nothing is distorted.
 *
 * Only for print: on the website the images stay as they are.
 */
@media print {
  img {
    max-height: 20cm;
    width: auto;
    object-fit: contain;
  }
}
