/* Two CAD examples only; the course copy and surrounding sections stay unchanged. */
:is(.page-id-7400, .page-id-7589) img[data-nodos-academy-crop="7412"] {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
}

/* Keep the model pair proportional to the centred teaching section below it. */
:is(.page-id-7400, .page-id-7589) .wp-block-gallery:has(img[data-nodos-academy-crop="7414"]) {
    max-width: 1040px !important;
    margin-inline: auto !important;
}

:is(.page-id-7400, .page-id-7589) img[data-nodos-academy-crop="7414"] {
    aspect-ratio: 15 / 8;
}

/* At the native Columns stacking breakpoint, favour readable models over empty grid. */
@media (max-width: 781px) {
    :is(.page-id-7400, .page-id-7589) img[data-nodos-academy-crop="7412"] {
        aspect-ratio: 1;
    }
    :is(.page-id-7400, .page-id-7589) img[data-nodos-academy-crop="7414"] {
        aspect-ratio: 4 / 3;
    }
}
