/* Shared two-article topic layout for the homepage and Gutenberg preview. */
:is(body.home, .editor-styles-wrapper) .blocco-topic.topic-home > .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

:is(body.home, .editor-styles-wrapper) .blocco-topic.topic-home.topic-two-articles::before {
    border-top: 0;
}

:is(body.home, .editor-styles-wrapper) .blocco-topic.topic-home > .grid-2 > .card-news-vertical {
    min-width: 0;
    border-top: 0;
    padding-top: 0;
}

/* Keep the preview self-contained, including an iframe without legacy wrappers. */
.editor-styles-wrapper .blocco-topic.topic-two-articles .card-news-vertical-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.editor-styles-wrapper .blocco-topic.topic-two-articles .figure-vertical {
    margin: 0 0 8px;
}

.editor-styles-wrapper .blocco-topic.topic-two-articles .figure-vertical img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    :is(body.home, .editor-styles-wrapper) .blocco-topic.topic-home > .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}
