.mg-features {
    max-width: 68rem;
    margin: 4rem auto 0;
    padding-top: 4rem;
    border-top: 1px solid var(--mg-line);
}

.mg-features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.25rem;
}

/* Compact: one bar to a row on the phone, three across from 48em (below).
   Not a variant of the two-up grid — a different arrangement of a different
   component, and it says so rather than patching one column at a time. */
.mg-features--compact .mg-features__grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

/* A footer, not a feature. Less air above it than the homepage row, which is
   the page rather than the end of one. */
.mg-features--compact {
    margin-top: 3rem;
    padding-top: 2.5rem;
}

/* One rule for the whole foot of the page, not two.
   `.mg-post-nav` already draws a hairline where the article ends, and this row
   drew another a short distance below it — the previous/next block and the
   trailers are both furniture, one band, and dividing them said they were two
   subjects. Spacing separates them instead. Two classes, so it does not matter
   that `.mg-features` is declared in a later stylesheet than `.mg-post-nav`. */
.mg-post-nav + .mg-features {
    margin-top: 4rem;
    padding-top: 0;
    border-top: 0;
}

/* Every bar the same height, its contents centred in it.
   The grid already stretches each `.mg-feature` to the tallest of the three;
   what it could not do was stretch the bordered box *inside* one, so a journal
   title running to three lines left the two beside it as short boxes hanging
   from a tall row. The flex column passes the height down, and
   `align-content` centres the title and date in whatever is left. */
.mg-features--compact .mg-feature {
    display: flex;
    flex-direction: column;
}

.mg-features--compact .mg-feature__link {
    flex: 1 1 auto;
    align-content: center;
}

.mg-feature {
    display: block;
}

/* Phone: the work and the journal take a column each, and the exhibition
   drops below them as a wide bar rather than a third tall tile. Not in the
   compact row, where every entry is already a bar and they simply stack. */
.mg-feature--exhibition {
    order: 1;
    grid-column: 1 / -1;
}

.mg-features--compact .mg-feature--exhibition {
    order: 0;
    grid-column: auto;
}

.mg-feature__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .7rem;
}

.mg-feature__viewall {
    display: none;
    flex: none;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--mg-ink-soft);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid var(--mg-line);
}

.mg-feature__viewall:hover,
.mg-feature__viewall:focus-visible {
    color: var(--mg-ink);
    border-bottom-color: currentColor;
}

.mg-feature--exhibition .mg-feature__viewall,
.mg-features--compact .mg-feature__viewall {
    display: block;
}

.mg-feature__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.mg-feature--exhibition .mg-feature__link,
.mg-features--compact .mg-feature__link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "frame title arrow"
        "frame meta  arrow";
    align-items: center;
    column-gap: .9rem;
    padding: .6rem .8rem;
    border: 1px solid var(--mg-line);
}

.mg-feature__frame {
    display: block;
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--mg-field);
}

.mg-feature--exhibition .mg-feature__frame,
.mg-features--compact .mg-feature__frame {
    grid-area: frame;
    width: 3.4rem;
    aspect-ratio: 1;
}

.mg-feature__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mg-feature__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--mg-ink-soft);
    opacity: .45;
}

.mg-feature__placeholder svg {
    width: 42%;
    height: auto;
}

.mg-feature__arrow {
    grid-area: arrow;
    display: block;
    width: 1.15rem;
    color: var(--mg-ink-soft);
}

.mg-feature__arrow svg {
    display: block;
    width: 100%;
    height: auto;
}

.mg-feature__eyebrow {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--mg-ink-soft);
}

.mg-feature__title {
    display: block;
    margin-top: .4rem;
    font-size: 1.1rem;
    line-height: 1.25;
}

.mg-feature--exhibition .mg-feature__title,
.mg-features--compact .mg-feature__title {
    grid-area: title;
    margin-top: 0;
}

.mg-feature__meta {
    display: block;
    margin-top: .25rem;
    font-family: var(--mg-fell);
    font-style: italic;
    color: var(--mg-ink-soft);
}

.mg-feature--exhibition .mg-feature__meta,
.mg-features--compact .mg-feature__meta {
    grid-area: meta;
    margin-top: 0;
    font-size: .95rem;
}

.mg-feature__meta .amount,
.mg-feature__meta del,
.mg-feature__meta ins {
    color: inherit;
    text-decoration-color: var(--mg-line);
    background: none;
}

.mg-feature__meta ins {
    text-decoration: none;
}

@media (hover: hover) {
    .mg-feature__link:hover .mg-feature__title {
        font-style: italic;
    }
}

.mg-feature__link:focus-visible {
    outline: 2px solid var(--mg-ink);
    outline-offset: 4px;
}

/* Tablet up: room for three tiles, so the exhibition is one of them again.
   A wide bar and a tall tile are different components on one markup tree —
   this and the nav are the only places desktop rules undo the base. */
@media (min-width: 48em) {
    .mg-features__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* Three across here too, but bars rather than tiles, so the gutter is the
       one between cards and not between columns of a page. Restated because
       the base compact rule above outranks the one-class rule it follows. */
    .mg-features--compact .mg-features__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .mg-feature--exhibition {
        order: 0;
        grid-column: auto;
    }

    .mg-feature__head {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .mg-feature__viewall {
        display: block;
    }

    .mg-feature__eyebrow {
        font-size: .75rem;
    }

    .mg-feature__title {
        font-size: 1.35rem;
    }

    /* The four rules below turn the exhibition bar back into a tile, and the
       `:not()` is what keeps them off the compact row — there the bar is the
       component at every width, so there is nothing to undo. Three classes
       against the base's two, deliberately: see docs/10-stylesheet.md. */
    .mg-features:not(.mg-features--compact) .mg-feature--exhibition .mg-feature__link {
        display: block;
        padding: 0;
        border: 0;
    }

    .mg-features:not(.mg-features--compact) .mg-feature--exhibition .mg-feature__frame {
        width: auto;
        aspect-ratio: 4 / 5;
    }

    .mg-features:not(.mg-features--compact) .mg-feature--exhibition .mg-feature__title {
        margin-top: .4rem;
    }

    .mg-features:not(.mg-features--compact) .mg-feature--exhibition .mg-feature__meta {
        margin-top: .25rem;
        font-size: inherit;
    }

    .mg-feature__arrow {
        display: none;
    }

    /* The arrow is how a bar says it is a link. It goes on the homepage row,
       where the whole tile is obviously one, and stays here. */
    .mg-features--compact .mg-feature__arrow {
        display: block;
    }

    /* A trailer keeps the phone's type sizes at every width — grown to the
       homepage row's it would stop being a trailer. */
    .mg-features--compact .mg-feature__eyebrow {
        font-size: .7rem;
    }

    .mg-features--compact .mg-feature__title {
        font-size: 1.1rem;
    }

    .mg-features--compact .mg-feature__head {
        margin-bottom: .7rem;
    }
}
