/* Exact-mapped article illustrations. No effect on pre-existing image blocks. */
/* An illustration inserted after a module introduction makes its paragraph
   cease to be :last-child. Preserve the two-column title/introduction layout
   and give the new figure a separate row across both columns. */
body.single-post .entry-content .jt-pr-next15__head > figure.jt-editorial-figure {
    grid-column: 1 / -1;
}
@media (min-width: 1025px) {
    body.single-post .entry-content .jt-pr-next15__head:has(> figure.jt-editorial-figure) > p:not(.jt-pr-next15__kicker) {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }
    body.single-post .entry-content .jt-pr-next15__head > figure.jt-editorial-figure {
        grid-row: 3;
    }
}

body.single-post .entry-content figure.jt-editorial-figure {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 800px;
    margin: clamp(28px, 4vw, 52px) auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    float: none;
    clear: both;
}

body.single-post .entry-content .jt-editorial-figure > img {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
    box-shadow: none;
}

body.single-post .entry-content .jt-editorial-figure > figcaption {
    display: block;
    margin: 0;
    padding: 13px 0 0;
    border: 0;
    color: inherit;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0;
    text-transform: none;
    text-align: left;
    overflow-wrap: break-word;
}

@media (max-width: 600px) {
    body.single-post .entry-content figure.jt-editorial-figure {
        margin-block: 26px;
    }
    body.single-post .entry-content .jt-editorial-figure > figcaption {
        padding-top: 10px;
    }
}

@media print {
    body.single-post .entry-content figure.jt-editorial-figure {
        break-inside: avoid;
        max-width: 140mm;
    }
}

/* Keep this figure's frame together despite legacy article image !important rules. */
@layer jt-editorial-figure-frame {
    body.single-post .entry-content figure.jt-editorial-figure {
        width: 100% !important;
        max-width: 800px !important;
        margin: clamp(28px, 4vw, 52px) auto !important;
    }
    body.single-post .entry-content .jt-editorial-figure > img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        margin: 0 !important;
    }
    body.single-post .entry-content .jt-editorial-figure > figcaption {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    @media (max-width: 600px) {
        body.single-post .entry-content figure.jt-editorial-figure { margin-block: 26px !important; }
    }
    @media print {
        body.single-post .entry-content figure.jt-editorial-figure { max-width: 140mm !important; }
    }
}
