.grid-item:nth-child(1) {
    grid-area: a;
}

.grid-item:nth-child(2) {
    grid-area: b;
}

.grid-item:nth-child(3) {
    grid-area: c;
}

.grid-item:nth-child(4) {
    grid-area: d;
}

.grid-item:nth-child(5) {
    grid-area: e;
}

.grid-item:nth-child(6) {
    grid-area: f;
}

.grid-item:nth-child(7) {
    grid-area: g;
}
.grid-item:nth-child(8) {
    grid-area: h;
}
.grid-item:nth-child(9) {
    grid-area: i;
}
.grid-item:nth-child(10) {
    grid-area: j;
}
.grid-item:nth-child(11) {
    grid-area: k;
}

.custom-post-grid {
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;
    grid-template-rows: 350px 350px 350px 350px;
    grid-template-areas: "a a  b b"
        "a a  c c"
        "d e f g"
        "h i j k";
}

@media (max-width: 1158px) {
    .custom-post-grid {
        grid-template-columns: 33.34% 33.33% 33.34%;
        grid-template-rows: 350px 350px 350px;
        grid-template-areas:
        "a b c"
        "d e f"
        "g h i";
    }
}
@media (max-width: 900px) {
    .custom-post-grid {
        grid-template-columns: 50% 50%;
        grid-template-rows: 350px 350px 350px 350px 350px;
        grid-template-areas:
        "a b"
        "c d"
        "e f"
        "g h"
        "i j";
    }
}

@media (max-width: 620px) {

    .custom-post-grid {

        grid-template-columns: 100%;
        grid-template-rows: 350px 350px 350px 350px 350px 350px 350px 350px 350px;
        grid-template-areas:
        "a"
        "b"
        "c"
        "d"
        "e"
        "f"
        "g"
        "h"
        "i";
    }
}

.grid-item {
    position: relative;
    overflow: hidden;

}

@media (max-width: 1158px) {
    .grid-item {
        position: relative;
        width: 100%;
        height: 100%;
    }
}

.grid-item a {
    display: flex;
    width: 100%;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    justify-content: flex-end;
    align-items: center;
}

.grid-item-img-container {
    height: 100%;
    width: 100%;
    position: absolute;
}

.grid-item a img {
    width: 100%;
    object-fit: cover;
    height: 100%;
    transition: .3s all;
    transform: scale(1.00);
}

.grid-item:hover .grid-item-img-container img {
    transform: scale(1.05);
    filter: brightness(0.6);
}

.grid-item-info {
    z-index: 10;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 24px 24px;
}

.grid-item-info h3 {
    font-size: 32px;
    font-weight: 700;
    font-family: "Gilroy-Bold";
    text-shadow: 0 0 6px #010401;
    text-align: center;
}

.grid-item-info p {
    font-size: 22px;
    text-shadow: 0 0 6px #010401;
    text-align: center;
}
@media (max-width: 1158px) {
    .grid-item-info h3 {
        font-size: 24px;
    }
    .grid-item-info p {
        font-size: 16px;
    }
}

.post-tags {
    position: absolute;
    top: 50px;
    left: 0;
    z-index: 1;
    padding: 10px 30px;
    background-color: #ff7775;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    border-radius: 0 30px 30px 0;
}

.post-filter{
    padding: 19px 0px;
    padding-left: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
@media (max-width: 767px) {
    .post-filter{
        padding-left: 20px;
    }
}
.filter-btn{
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 17px;
    display: inline-block;
    color: #131313;
    text-decoration: none;
    background-color: #ffe5e6;
    border: unset;
    border-radius: 120px;
    transition: background-color .4s, color .4s;
    cursor: pointer;
    &:hover {
        background-color: #DE0A1B;
        color: #fff;
    }
}
.active{
    background-color: #DE0A1B;
    color: #fff;
}