.blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gutter);
    justify-content: start;
    --gutter: 3rem;
    --cols: 3;
}

.blog-card {
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    width: calc(100% / var(--cols) - var(--gutter) * (var(--cols) - 1) / var(--cols));
    cursor: pointer;
    background-color: var(--white);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.12)) drop-shadow(0 1px 2px rgba(0,0,0,0.24));
    margin-bottom: auto;
}

.blog-card-header {
    border-radius: 4px 4px 0 0;
    display: flex;
    position: relative;
    padding-bottom: calc(100% / 21 * 9);
    overflow: hidden;
    transform: translate(0,0);
    transition: 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) transform;
}

.blog-card:hover .blog-card-header {
    transform: translate(-0.75rem, -0.75rem);
}

.blog-card-header img {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    display: flex;
    transform: scale(1);
    filter: brightness(0.75) grayscale(1);
    transition: 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) transform, 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) filter;
}

.blog-card:hover .blog-card-header img {
    filter: brightness(1) grayscale(0);
    transform: scale(1.1)
}

.blog-card-content {
    padding: 1rem;
}

.blog-card-title {
    font-family: 'MaisonNeue', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 900;
    line-height: 1.1;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.blog-card-details {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
}

.blog-card-chevron {
    line-height: 0.87;
}

.blog-card-chevron::after {
    content: "\f054";
    font-family: "FontAwesome";
    font-weight: bold;
    font-size: 4rem;
    margin-right: 0.75rem;
    line-height: 0.87;
    color: var(--grey);
    transition: 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) color, 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) margin;
}

.blog-card:hover .blog-card-chevron::after {
    color: var(--yellow);
    margin-right: 0;
}

.blog-card-category {
    line-height: 0.8;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--grey);
    transition: 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) color;
    width: 75%;
}

.blog-card-category:hover {
    color: var(--black)
}

@media only screen and (max-width: 1312px) {
    .blog-grid {
        --gutter: 2rem;
    }
}

@media only screen and (max-width: 1080px) {
    .blog-grid {
        --gutter: 3rem;
        --cols: 2;
    }
}

@media only screen and (max-width: 1080px) {
    .blog-grid {
        --gutter: 2rem;
    }
}

@media only screen and (max-width: 680px) {
    .blog-grid {
        --cols: 1;
        --gutter: 3rem
    }
}


/* Pagination */

.pagination {
    display: flex;
    column-gap: 0.5rem;
    margin-top: 1.5rem;
    justify-content: end;
}

.page-numbers {
    background-color: var(--yellow);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--black);
    font-weight: bold;
    text-decoration: none;
}

.page-numbers.current {
    background-color: var(--black);
    color: var(--white);
}

.paginate-link::before {
    font-family: "FontAwesome";
    font-weight: bold;
    display: block;
    font-size: 1.3rem;
}

.paginate-link#paginate-newer::before {content: "\f053";}
.paginate-link#paginate-older::before {content: "\f054";}