.generated-story .post p {
    max-width: 920px;
}

.generated-story.is-hydrating {
    min-height: 520px;
    visibility: hidden;
}

.generated-story .post figure {
    margin: 2rem 0 0;
}

.generated-story .post figure img {
    display: block;
    width: 100%;
    height: auto;
}

.news-story-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.news-story-gallery figure {
    margin: 0 !important;
    overflow: hidden;
    background: #f4eee7;
}

.news-story-gallery figure:first-child {
    grid-column: 1 / -1;
}

.news-story-gallery img {
    width: 100%;
    height: auto;
    transition: transform 500ms ease;
}

.news-story-gallery figure:hover img,
.news-story-gallery figure:focus-within img {
    transform: scale(1.025);
}

#content > .generated-story .fade-in-up,
#content > .generated-story + .section .fade-in-up {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (max-width: 767.98px) {
    .generated-story.is-hydrating {
        min-height: 440px;
    }

    .news-story-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-story-gallery figure:first-child {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-story-gallery img {
        transition: none;
    }
}

.generated-story #story-body {
    line-height: 1.85;
}

.generated-story #story-body img,
.generated-story #story-body iframe,
.generated-story #story-body video {
    max-width: 100%;
}

.generated-story #story-body img {
    height: auto;
}

.generated-story #story-body p {
    margin: 0 0 1em;
}

.generated-story #story-related {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(33, 65, 57, 0.18);
}

.generated-story #story-related ul {
    padding-left: 20px;
}

.generated-story #story-error {
    margin-top: 20px;
    padding: 16px;
    color: #8b3128;
    background: #fff2ef;
    border-radius: 8px;
}
