.post-grid-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.post-grid-filters .filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.post-grid-filters .filter span {
    cursor: pointer;
    padding: 6px 14px;
    border: 1px solid #ccc;
    border-radius: 999px;
    user-select: none;
}

.post-grid-filters .filter span.is-active {
    background: #222;
    border-color: #222;
    color: #fff;
}

.post-grid-filters .filter-reset {
    cursor: pointer;
    padding: 6px 14px;
    border: 1px solid #ccc;
    background: none;
    border-radius: 999px;
    margin-left: auto;
}

.post-grid.is-loading .post-grid-results {
    opacity: 0.4;
    pointer-events: none;
}

.post-grid-loading {
    display: none;
}

.post-grid.is-loading .post-grid-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.post-grid-loading .loader {
    width: 28px;
    height: 28px;
    border: 3px solid #ddd;
    border-top-color: #222;
    border-radius: 50%;
    animation: post-grid-spin 0.7s linear infinite;
}

@keyframes post-grid-spin {
    to {
        transform: rotate(360deg);
    }
}