.sape-rtb-content-cluster {
    clear: both;
    margin: 1.75em 0;
}

.sape-rtb-content-cluster--desktop {
    display: none;
}

.sape-rtb-content-cluster--mobile {
    display: block;
}

.sape-rtb-content-grid--desktop-row + .sape-rtb-content-grid--desktop-row {
    margin-top: 24px;
}

.sape-rtb-archive-insertion {
    clear: both;
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
    grid-column: 1 / -1;
}

.sape-rtb-archive-insertion .sape-rtb-content-grid {
    justify-items: center;
}

.sape-rtb-content-grid {
    --sape-rtb-mobile-columns: 1;
    --sape-rtb-desktop-columns: 2;
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(var(--sape-rtb-mobile-columns), minmax(0, 1fr));
    justify-items: center;
}

.sape-rtb-content-item,
.sape-rtb-slot-wrap {
    width: 100%;
}

.sape-rtb-slot-wrap {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.sape-rtb-slot {
    display: block;
    margin: 0 auto;
    width: 100%;
}

.sape-rtb-slot--300x250 {
    max-width: 300px;
    min-height: 250px;
}

.sape-rtb-slot--300x600 {
    max-width: 300px;
    min-height: 600px;
}

.sape-rtb-sidebar-widget {
    display: none;
}

/* Video ads stay in document order and reserve space even without geographic fill. */
.sape-rtb-video {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    align-self: start;
}

.sape-rtb-video--archive,
.sape-rtb-video--after-player {
    clear: both;
    flex-basis: 100%;
    grid-column: 1 / -1;
    margin: 24px 0;
}

.sape-rtb-video > .sape-rtb-slot-wrap {
    max-width: 300px;
}

.evf-feed__grid.sape-rtb-video-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

@media (min-width: 922px) {
    .sape-rtb-content-cluster--desktop {
        display: block;
    }

    .sape-rtb-content-cluster--mobile {
        display: none;
    }

    .sape-rtb-content-grid {
        align-items: start;
        grid-template-columns: repeat(var(--sape-rtb-desktop-columns), minmax(0, 1fr));
    }

    .sape-rtb-sidebar-widget {
        display: block;
    }
}
