.screenshot {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5em auto;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

[data-md-color-scheme="slate"] .screenshot {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

/* A left-to-right sequence of framed screenshots (e.g. list screen -> detail screen), joined by
   arrows showing the click-through order. Wraps to a stacked, downward-pointing layout on narrow
   viewports rather than overflowing horizontally. */
.screenshot-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 1.5em 0;
}

.screenshot-flow .screenshot {
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
}

.screenshot-flow-arrow {
    flex: 0 0 auto;
    font-size: 1.6em;
    line-height: 1;
    color: rgba(0, 0, 0, 0.35);
}

[data-md-color-scheme="slate"] .screenshot-flow-arrow {
    color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 480px) {
    .screenshot-flow {
        flex-direction: column;
    }

    .screenshot-flow-arrow {
        transform: rotate(90deg);
    }
}

/* Deliberate top-to-bottom stacking, e.g. for wide screenshots that don't sit well side by side
   regardless of viewport width. Unlike the mobile fallback above, this applies unconditionally. */
.screenshot-flow.vertical {
    flex-direction: column;
}

.screenshot-flow.vertical .screenshot-flow-arrow {
    transform: rotate(90deg);
}
