.wp-block-remote-data-blocks-foundation-events-list .community-list:last-child .wp-block-group:has(.wp-block-separator),
.wp-block-remote-data-blocks-foundation-events-list .community-card--list:last-child .wp-block-separator {
    display: none;
}

.community-card {
    gap: var(--wp--preset--spacing--50);
}

.community-card.has-left-border {
    border-left: 4px solid var(--wp--preset--color--primary);
}

.community-card--featured {
    gap: 0 !important;
}

.community-card--featured img {
    flex: 1;
    width: 100%;
}

.community-card--featured figure {
    display: flex;
    flex-direction: column;
}

.community-card--featured figcaption {
    flex-shrink: 0;
    margin-bottom: 0;
    margin-left: 0;
}

.community-card__content {
    height: 100%
}

.community-card .rdb-block-label {
    color: var(--wp--preset--color--medium-gray);
    display: block;
    font-size: var(--wp--preset--font-size--small);
}

.rdb-block-label {
    font-weight: 400;
}

.rdb-container .wp-block-image img {
    width: 100%;
}

@media (min-width: 780px) {
    .community-card__content .wp-block-buttons {
        justify-content: flex-end
    }

    .community-card__content .wp-block-buttons>.wp-block-button {
        flex-basis: auto;
        width: auto;
    }

    .community-card__content .wp-block-buttons>.wp-block-button .wp-block-button__link {
        width: inherit;
    }
}

.community-card--stacked {
    align-content: start;
}

.rdb-container:has( .community-cards--grid ),
.editor-styles-wrapper .remote-data-blocks-loop-template:has( .community-cards--grid ) {
    display: grid;
    gap: 32px;
    grid: auto/repeat(12,1fr);
}

.rdb-container:has( .community-cards--grid ) .community-cards--grid,
.editor-styles-wrapper .remote-data-blocks-loop-template li:has( .community-cards--grid ) {
    grid-column: span 6;
}

@media (min-width: 782px) {
    .rdb-container:has( .community-cards--grid ) .community-cards--cols-3,
    .rdb-container:has( .community-cards--grid ) .community-cards--cols-4,
    .rdb-container:has( .community-cards--grid ) .community-cards--cols-6,
    .editor-styles-wrapper .remote-data-blocks-loop-template li:has( .community-cards--cols-3 ),
    .editor-styles-wrapper .remote-data-blocks-loop-template li:has( .community-cards--cols-4 ),
    .editor-styles-wrapper .remote-data-blocks-loop-template li:has( .community-cards--cols-6 ) {
        grid-column: span 4;
    }
}

@media (min-width: 1024px) {
    .rdb-container:has( .community-cards--grid ) .community-cards--cols-4,
    .editor-styles-wrapper .remote-data-blocks-loop-template li:has( .community-cards--cols-4 ) {
        grid-column: span 3;
    }

    .rdb-container:has( .community-cards--grid ) .community-cards--cols-6,
    .editor-styles-wrapper .remote-data-blocks-loop-template li:has( .community-cards--cols-6 ) {
        grid-column: span 2;
    }
}

.rdb-container:has( .community-cards--grid ) div:has( .remote-data-pagination ) {
    grid-column: span 12;
}