/* components/featured/Featured.module.scss */
.mk-featured { position: relative; z-index: 1; overflow: hidden; }
.mk-featured__container {
    --column-count: 12;
    display: grid;
    row-gap: 0;
    column-gap: min(var(--grid-gutter), calc(100% / 11));
    grid-template-columns: repeat(12, minmax(0, 1fr));
}
.mk-featured__image1, .mk-featured__image2 { position: relative; }
.mk-featured__image1 img, .mk-featured__image2 img { width: 100%; }
.mk-featured__image1 { grid-column: 1 / span 6; }
.mk-featured__image1::after {
    content: ''; position: absolute; top: 0; bottom: 0; right: 100%; width: 50vw;
    background: var(--color-background-alt);
}
.mk-featured__image2 { grid-column: 7 / span 6; margin-top: 10rem; }
.mk-featured__image2::after {
    content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; right: 100%; width: 100vw;
    background: var(--color-background-alt);
}
.mk-featured__content {
    position: relative;
    grid-column: span 12;
    padding-bottom: var(--segment-padding);
    padding-right: var(--grid-gutter);
    background: var(--color-background-alt);
}
.mk-featured__content::after {
    content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; right: 100%; width: 50vw;
    background: var(--color-background-alt);
}
@media (min-width: 720px) {
    .mk-featured__image1 { grid-column: 1 / span 3; order: 1; margin-top: calc(var(--segment-padding) * -1); }
    .mk-featured__image2 { grid-column: 9 / span 3; order: 3; margin-top: 0; }
    .mk-featured__content {
        order: 2;
        grid-column: 4 / span 5;
        padding-top: var(--segment-padding);
        padding-right: 0;
    }
}
@media (min-width: 1080px) {
    .mk-featured__content { grid-column: 5 / span 3; }
}
/* The yellow full stop follows the heading block's text. */
.mk-featured__heading :is(h1, h2, h3, h4, h5, h6, p)::after { content: '.'; color: var(--color-accent-primary); margin-left: 0.5rem; }
/* The subheading's space is in em of its own size (its text style). */
.mk-featured__subheading > * { margin: 0.3em 0 1.1em; }

/* The button is a minkButton block (.mk-button, outline/medium = no variant). */
.mk-featured__copy > .el-richtext:not(:last-child) > p:last-child { margin-bottom: 1.875em; }

/* react-spring: the box slides in from the left, image 1 follows 200ms later (js/components/inview.js) */
.mk-featured.mk-inview .mk-featured__container,
.mk-featured.mk-inview .mk-featured__image1 {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 1.1s cubic-bezier(0.22, 0.8, 0.3, 1), transform 1.1s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.mk-featured.mk-inview .mk-featured__image1 { transition-delay: 200ms; }
.mk-featured.mk-inview.is-inview .mk-featured__container,
.mk-featured.mk-inview.is-inview .mk-featured__image1 { opacity: 1; transform: none; }
.mk-featured :is(h2, h3) { color: inherit; } /* not the builder's --color-heading (dark mode) */

/* Editable look (unset = the original): the box's background, the heading's dot, image corners. */
.mk-featured__image1::after, .mk-featured__image2::after,
.mk-featured__content, .mk-featured__content::after { background: var(--mk-featured-fill, var(--color-background-alt)); }
.mk-featured--no-dot .mk-featured__heading :is(h1, h2, h3, h4, h5, h6, p)::after { content: none; }
:is(.mk-featured__image1, .mk-featured__image2) img { border-radius: var(--mk-featured-image-radius, 0); }
