/* DS 0.42.0 — a text panel and its neighbouring image share one outer size.
   The bounded two-column layout from 0.41 remains. The common grid row grows
   with the complete text, while a short text panel stretches to its photo.
   No copy is shortened, hidden or given a fixed height. */
@media (min-width: 981px) {
    body.ds-choice main#main :is(.ds150-pair, .product-story, .af110-copy-media, .ds0200-showroom-grid) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, var(--ds041-media-max, 640px))) !important;
        justify-content: center;
        align-items: stretch !important;
    }

    /* Bound both columns equally. Capping only the image would leave a wider
       text panel when a large screen or a design setting widens the container. */
    body.ds-choice main#main :is(.ds150-pair, .product-story, .af110-copy-media, .ds0200-showroom-grid) > :is(.ds150-copybox, .ds140-text-card, .ds130-text-card, .af110-copy, .hy-intro-copy, .dsr2-code-copy, .contact-section__copy) {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto !important;
        aspect-ratio: auto !important;
        align-self: stretch !important;
        justify-self: stretch;
        margin-block: 0;
    }

    body.ds-choice main#main :is(.ds150-pair, .product-story, .af110-copy-media, .ds0200-showroom-grid) > :is(.ds150-media-box, .product-story__photo, .af110-illustration, .hy-intro-media, .dsr2-photo-frame, .contact-section__media) {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        align-self: stretch !important;
        justify-self: stretch;
        margin-block: 0;
    }

    /* A stretched grid item has a definite used height. Existing manual
       carousels and image wrappers fill it, preserving their controls/zoom. */
    body.ds-choice main#main :is(.ds150-pair, .product-story, .af110-copy-media, .ds0200-showroom-grid) > :is(.ds150-media-box, .product-story__photo, .af110-illustration, .hy-intro-media, .dsr2-photo-frame, .contact-section__media) :is(.ds0220-story-photos, .af-intro-photos, .af110-media, .af110-gen-media, .inline-carousel, .inline-slides) {
        width: 100%;
        height: 100% !important;
        min-height: 0;
    }
}

/* Drawings, labelled model comparisons and material illustrations must keep
   every edge and label when their surrounding panel grows with the text. */
body.ds-choice main#main :is(.product-story, .af110-copy-media, .ds150-pair):is([data-media-role="model"], [data-media-role="comparison"]) img,
body.ds-choice main#main :is(.product-story, .af110-copy-media, .ds150-pair) :is([data-media-role="model"], [data-media-role="comparison"], .af110-model-pair, .af110-drawings, .af110-media--model, .af110-media--comparison) img {
    object-fit: contain !important;
}

/* Below 981px, 0.41's natural-height stacked layout and 0.34's mobile
   heading/photo/copy order remain in control; no desktop height is carried over. */
