/* Generated app screens (#3276) — included through book.toml additional-css.
 *
 * Every suite figure is a 960 px drawing inside mdBook's content column. The
 * column is 750 px at desktop width (0.78× scale) and about 335 px on a phone,
 * which would render 12 px labels at 4 px. The figure therefore keeps a legible
 * minimum width and scrolls sideways on narrow screens instead of shrinking.
 */

.gb-screen {
    margin: 1.25rem 0;
    max-width: none;
}

.gb-screen-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gb-screen-scroll img {
    display: block;
    min-width: 0;
    max-width: 100%;
    height: auto;
}

/* Below a 720 px column the drawing stops shrinking and scrolls. At 720 px the
 * smallest label (10 px) still renders at 7.5 px; at a 335 px column it would be
 * 3.5 px. */
@media (max-width: 719px) {
    .gb-screen-scroll img {
        min-width: 720px;
    }
}

/* Paper has no scrollbars: the full-width figure shrinks as before. */
@media print {
    .gb-screen-scroll {
        overflow: visible;
    }

    .gb-screen-scroll img {
        min-width: 0;
        width: 100%;
    }
}
