/* Read the photograph with the story: intrinsic proportions, paper around it. */
.single-story {
    --article-photo-space: clamp(2.5rem, 5vw, 5rem);
    --article-sequence-gap: clamp(1.5rem, 3.5vw, 3.5rem);
    padding-bottom: clamp(4rem, 7vw, 7rem);
}

.article-heading {
    max-width: 68rem;
    margin-bottom: clamp(3rem, 6vw, 6rem);
}

.article-body {
    line-height: 1.95;
}

.article-body > :is(h2, h3, h4) {
    margin-top: var(--article-photo-space);
    margin-bottom: 1.5rem;
}

.article-body > figure,
.article-body > .article-sequence {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: min(50rem, calc(100vw - var(--gutter) * 2));
    max-width: none;
    margin-block: var(--article-photo-space);
}

.article-body > figure,
.article-sequence > figure {
    display: grid;
    justify-items: center;
    min-width: 0;
}

.article-body figure img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 40rem;
    max-height: min(40rem, 68svh);
    object-fit: contain;
}

.article-body figure figcaption {
    width: 100%;
    max-width: var(--measure);
    margin: 1rem auto 0;
    font-size: .75rem;
    line-height: 1.8;
}

.article-body > .article-sequence {
    width: min(68rem, calc(100vw - var(--gutter) * 2));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: var(--article-sequence-gap);
}

.article-sequence > figure {
    width: 100%;
    margin: 0;
}

.article-sequence > figure:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - var(--article-sequence-gap)) / 2);
}

.article-body > figure + figure {
    margin-top: var(--article-photo-space);
}

.article-body blockquote {
    margin-block: 2.5rem 3rem;
    padding-block: 1.75rem;
    line-height: 1.75;
}

.article-body blockquote cite {
    display: block;
    margin-top: 1rem;
    font-family: inherit;
    font-size: .75rem;
    font-style: normal;
    letter-spacing: 0;
}

.article-body table {
    margin-block: 2rem var(--article-photo-space);
}

.article-topics {
    margin-top: var(--article-photo-space);
}

@media (max-width: 780px) {
    .single-story {
        --article-photo-space: 3rem;
        --article-sequence-gap: 2.5rem;
    }

    .article-heading {
        margin-bottom: 3rem;
    }

    .article-body > .article-sequence {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .article-sequence > figure:last-child:nth-child(odd) {
        width: 100%;
    }

    .article-body figure img {
        max-height: 35rem;
        max-height: min(35rem, 64svh);
    }
}

@media print {
    .article-body > figure,
    .article-body > .article-sequence {
        left: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin-block: 1.5rem;
    }

    .article-body > .article-sequence {
        display: block;
    }

    .article-sequence > figure,
    .article-sequence > figure:last-child:nth-child(odd) {
        width: 100%;
        margin-block: 1.5rem;
        break-inside: avoid;
    }

    .article-body figure img {
        max-height: 18cm;
    }
}
