/* Preserve the complete editorial composition. No image link or enlargement. */
.rrom-editorial-cover { margin-top: 0; margin-bottom: clamp(28px, 4vw, 44px); }
.rrom-editorial-cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 18px; }
.rrom-editorial-cover .wp-element-caption { margin: 12px 0 0; color: #52616a; font: 400 12px/1.6 Inter, Arial, sans-serif; text-align: left; }
@media (max-width: 781px) {
    .rrom-editorial-cover img { border-radius: 12px; }
    .rrom-editorial-cover .wp-element-caption { font-size: 11px; }
}

/* Blog cards: fill the existing frame without stretching the illustration. */
body.rrom-interior-continuity .rrom-blog-feature-image .rrom-editorial-card-cover {
    position: relative;
    height: 100%;
    min-height: 360px;
    margin: 0;
}
body.rrom-interior-continuity .rrom-blog-feature-image .rrom-editorial-card-cover a {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    overflow: hidden;
}
body.rrom-interior-continuity .rrom-blog-feature-image .rrom-editorial-card-cover img {
    display: block;
    width: 100%;
    height: 100% !important;
    max-height: none;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    background: transparent;
}
body.rrom-interior-continuity .rrom-blog-list .rrom-editorial-card-cover img {
    object-fit: cover !important;
}
@media (max-width: 781px) {
    body.rrom-interior-continuity .rrom-blog-feature-image .rrom-editorial-card-cover {
        height: auto;
        min-height: 0;
        aspect-ratio: 3 / 2;
    }
}

/* Home news: preserve V4 frames, including the horizontal tablet card. */
body.rrom-home-continuity .rrom-news-grid .rrom-editorial-card-cover a {
    position: relative;
    display: block;
    width: 100%;
    max-height: none;
    overflow: hidden;
}
body.rrom-home-continuity .rrom-news-grid .rrom-editorial-card-cover img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100% !important;
    max-height: none;
    aspect-ratio: auto !important;
    object-fit: cover !important;
}

/* The six approved illustrations keep a stable focal point across languages and srcset sizes. */
body :is(.rrom-news-grid, .rrom-blog-feature-image, .rrom-blog-list)
    .rrom-editorial-card-cover[data-rrom-cover="C4"] img { object-position: 28% 50%; }
body :is(.rrom-news-grid, .rrom-blog-feature-image, .rrom-blog-list)
    .rrom-editorial-card-cover[data-rrom-cover="C6"] img { object-position: 75% 50%; }

/* A horizontal group scene cannot fit a portrait media column without losing faces.
   Keep the V4 card, but place its artwork above its text at tablet widths. */
@media (min-width: 782px) and (max-width: 1100px) {
    body.rrom-home-continuity .rrom-news-grid > .wp-block-post:last-child:has(> .rrom-editorial-card-cover) {
        display: flex;
        flex-direction: column;
    }
    body.rrom-home-continuity .rrom-news-grid > .wp-block-post:last-child > .rrom-editorial-card-cover {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 3 / 2;
        margin: 0 0 26px !important;
    }
    body.rrom-home-continuity .rrom-news-grid > .wp-block-post:last-child > .rrom-editorial-card-cover a {
        position: relative;
        inset: auto;
        height: auto;
        aspect-ratio: 3 / 2;
    }
    body.rrom-home-continuity .rrom-news-grid > .wp-block-post:last-child:has(> .rrom-editorial-card-cover) .wp-block-post-date {
        margin-top: 0 !important;
    }
}

/* Below this width the featured blog artwork becomes taller than it is wide.
   Stack the existing media and copy so the people and place remain in view. */
@media (min-width: 782px) and (max-width: 1280px) {
    body.rrom-interior-continuity .rrom-blog-feature-grid:has(.rrom-editorial-card-cover) {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    body.rrom-interior-continuity .rrom-blog-feature-image .rrom-editorial-card-cover {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 3 / 2;
    }
}
