#filters .active{
    border: 1px solid #EAEEF3 !important;
}

#filters .button{
    transition: all .3s ease-in-out;
    border-radius: 0 18px;
    border: 1px solid #222C35;
}
#filters .button:hover{
    border: 1px solid #EAEEF3;
}
#posts .card-img img{
    max-height: 318px;
    object-fit: cover;
    min-height: 318px;
}

@media screen and (max-width: 768px) {
    #posts .card-img img{
        max-height: 270px;
        object-fit: cover;
        min-height: 270px;
    }
    #posts .card-details h2{
        font-size: 1.5rem !important;
    }
    #posts .title-and-btn{
        min-height: 246px;
    }
}
#posts .card-details h2 {
    font-size: 1.7rem !important;
}
#posts .card{
    padding: 0;
    min-height: 594px;   /* was a fixed height: long titles pushed "Read more" out of the card */
    height: 100%;        /* fills the grid item when archive.js evens out a row */
}

#posts .card{
    padding: 0.13rem 0.12rem 0.13rem 0.12rem !important;
    background-color: #222C35;
    border: 0.5px solid rgba(255, 255, 255, 0.2);
}
#posts .card .card-content{
    width: 100%;
    flex: 1;             /* fills the whole card */
    display: flex;
    flex-direction: column;
    border-radius: 30px;
    /* backdrop-filter: blur(15.600000381469727px); */
    background-color: #222C35;
}
#posts .card-details{
    flex: 1;
    display: flex;
    flex-direction: column;
}

#posts .card-img img{
    border-radius: 30px;
}

#posts .title-and-btn{
    flex: 1;
    min-height: 200px;
}
/* Pin "Read more" to the bottom of every card */
#posts .title-and-btn > .d-flex:last-child{
    margin-top: auto;
    padding-top: 1rem;
}
/* Titles: up to 3 lines on wide screens, 4 on smaller ones and 5 where three
   narrow columns sit side by side (longer titles end in "…"). This caps how
   tall a card can get, so one long title can't stretch the rest of its row. */
#posts .card-details h3 > a{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
@media screen and (max-width: 1399.98px){
    #posts .card-details h3 > a{
        -webkit-line-clamp: 4;
    }
}
@media screen and (min-width: 992px) and (max-width: 1199.98px){
    #posts .card-details h3 > a{
        -webkit-line-clamp: 5;
    }
}
/* Tighter gap between the category/date line and the title (the global
   heading margins added 42px). Only affects these news cards. */
#posts .top-card > .d-flex > h5{
    margin-bottom: 0 !important;
}
#posts .top-card > h3{
    margin-top: 8px !important;
}

#load-more-btn{
    border-radius: 10px;
    border: 1px solid rgba(248, 249, 250, 0.30);
    background: transparent;
    padding: 15px 30px;
    transition: all .3 linear;
}

#load-more-btn:hover{
    background: #FBB900;
}
