/* v1.16.0 — WordPress page thumbnails are the image source of truth. */
.drpc-page .drpc-hero__image img {
    object-position: var(--drp-cat-focal, 50% 35%);
}
@media (max-width: 950px) {
    .drpc-page .drpc-hero__image img {
        object-position: var(--drp-cat-focal, 50% 35%);
    }
}
/* Product renderings must not be cropped like photographs. */
.drp-procedure-page--motiva .drp-inner-hero--procedure .drp-inner-hero__media::after {
    display: none;
}
@media (max-width: 767px) {
    .drp-procedure-page .drp-inner-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .drp-procedure-page .drp-inner-hero__grid > * { min-width: 0; }
    /* The picture spans the entire viewport, rather than staying as a narrow
       portrait card inside the padded text column. */
    .drp-procedure-page .drp-inner-hero--procedure .drp-inner-hero__media {
        display: block;
        grid-column: 1 / -1;
        width: 100vw;
        max-width: none;
        max-height: none;
        margin-inline: calc(50% - 50vw);
        box-shadow: none;
        border-radius: 0;
        aspect-ratio: 4 / 5;
        overflow: hidden;
    }
    .drp-procedure-page .drp-inner-hero--procedure .drp-inner-hero__media img {
        display: block;
        width: 100%;
        max-width: none;
        height: 100%;
        object-fit: cover;
    }
    /* Motiva marketing artwork has logo/text inside the original photograph.
       It must scale to the mobile width without losing the edges or logo. */
    .drp-procedure-page--motiva .drp-inner-hero--procedure .drp-inner-hero__media {
        background: #fff;
        aspect-ratio: auto;
        height: auto;
    }
    .drp-procedure-page--motiva .drp-inner-hero--procedure .drp-inner-hero__media img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center !important;
    }
}
/* Prevent a second Motiva product/logo image from being cropped in the
   introductory strip as well, even if the source is portrait or square. */
@media (max-width: 767px) {
    .drp-procedure-page--motiva .drp-procedure-strip__image {
        aspect-ratio: auto;
        height: auto;
        min-height: 0;
        background: #fff;
    }
    .drp-procedure-page--motiva .drp-procedure-strip__image img {
        position: static;
        inset: auto;
        display: block;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center !important;
    }
}

/* v1.16.2: compact procedure hero on phones only. */
@media (max-width: 767px) {
    .drp-procedure-page .drp-inner-hero--procedure {
        padding: 40px 1vw 0px !important;
    }
}
