/* Center incomplete rows while keeping the theme's responsive tile widths. */
[data-imara-stats-grid].content-grid-4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

[data-imara-stats-grid].content-grid-4::before,
[data-imara-stats-grid].content-grid-4::after {
    content: none;
}

[data-imara-stats-grid] > [data-imara-stat] {
    flex: 0 0 auto;
    box-sizing: border-box;
    min-width: 0;
}

/* Inset the desktop dividers without adding height to the strip. */
@media (width > 768px) {
    .stats-2 [data-imara-stats-grid] > [data-imara-stat]:not(:last-child) {
        position: relative;
        border-right-color: transparent;
    }

    .stats-2 [data-imara-stats-grid] > [data-imara-stat]:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 0;
        right: -1px;
        bottom: 4rem;
        width: 1px;
        background-color: #ddd;
        pointer-events: none;
    }
}
