/**
 * Saturn Filter Styles
 * CSS Grid masonry-style layout without Isotope
 */

/* Grid container using CSS Grid with masonry-like behavior */
.wp-block-query > .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
}

/* Individual post items */
.wp-block-post {
    break-inside: avoid;
    display: block;
}

/* Filter buttons styling */
.filters-button-group {
    margin-bottom: 20px;
    text-align: center;
}

.filters-button-group button {
    font-family: inherit;
    font-size: 16px;
    padding: 8px 16px;
    background: none;
    border: none;
    padding: 0 !important;
    color: var(--saturn-ui-link-colour);
    text-decoration: underline;
    cursor: pointer;
    box-shadow: none;
    appearance: none;
}

.filters-button-group button:hover {
    color: #000000;
}

.filters-button-group button.is-checked {
    color: #000000;
}

/* Responsive design */
@media screen and (max-width: 992px) {
    .wp-block-query > .wp-block-post-template {
        grid-template-columns: repeat(2, 1fr);
    }

    .wp-block-post {
        width: 50% !important;
    }
}

@media screen and (max-width: 576px) {
    .wp-block-query > .wp-block-post-template {
        grid-template-columns: 1fr;
    }

    .wp-block-post {
        width: 100% !important;
    }
}

/* Alternative: Use CSS columns for true masonry (optional) */
/*
.wp-block-query > .wp-block-post-template {
    column-count: 3;
    column-gap: 0;
}

.wp-block-post {
    break-inside: avoid;
    page-break-inside: avoid;
    width: 100% !important;
}

@media screen and (max-width: 992px) {
    .wp-block-query > .wp-block-post-template {
        column-count: 2;
    }
}

@media screen and (max-width: 576px) {
    .wp-block-query > .wp-block-post-template {
        column-count: 1;
    }
}
*/
