.stepper-table + .md-typeset__scrollwrap td:first-child,
.stepper-table + table td:first-child {
    white-space: nowrap;
}

.stepper-dimension {
    white-space: nowrap;
}

.md-typeset .grid.notebook-gallery {
    grid-template-columns: minmax(0, 1fr);
}

.notebook-gallery img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    width: 100%;
}

.md-typeset .arithmatex {
    overflow-x: auto;
}

@media (min-width: 60em) {
    .md-typeset .stepper-table + .md-typeset__scrollwrap :is(th, td),
    .md-typeset .stepper-table + table :is(th, td) {
        min-width: 0;
        padding-inline: .65em;
    }

    .md-typeset .grid.notebook-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
