.library-filters-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 32px;
}

.library-filters-buttons > div {
    margin-bottom: 12px;
}

.library-filters-buttons > .last-item {
    order: 1;
}

.library-filters-buttons > div{
    margin-right: 12px;
}

.library-filters-buttons .btn-library {
    font-family: "Montserrat", Sans-serif;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    color: rgb(41, 35, 92);
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    background: none;
    position: relative;
}

.library-filters-buttons .btn-library.is-checked::before,
.library-filters-buttons .btn-library:hover::before {
    opacity: 1;
    visibility: visible;
}

.library-filters-buttons .btn-library::before {
    content: '';
    height: 3px;
    background: #FD047E;
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.27s ease-in-out, visibility 0.27s ease-in-out;
}

.library-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px -16px;
}

.library-grid > .element-item {
    display: flex;
    max-width: 100%;
    flex: 0 0 100%;
    padding: 0 8px 16px;
}

.library-article {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    color: rgb(41, 35, 92);
    padding: 20px;
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0);
    transition: box-shadow 0.27s ease-in-out;
}

.library-article:hover {
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.15);
}

.library-article .entry-thumbnail {
    height: 52vw;
    position: relative;
    margin: 0 0 9px;
}

.library-article .entry-thumbnail .entry-label {
    position: absolute;
    left: 0;
    top: 19px;
    padding: 10px 10px 10px 10px;
    background-color: #FD047E;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
}

.library-article .entry-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.library-article .entry-thumbnail h3 {
    font-family: "Montserrat", Sans-serif;
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
    color: rgb(41, 35, 92);
}

.library-article .entry-readmore {
    font-family: "Montserrat", Sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #FD047E;
    margin-top: auto;
}

@media (max-width: 767px) {

    .library-grid > .element-item {
        min-height: auto !important;
    }

}

@media (min-width: 768px) {
    .library-filters-buttons {
        margin: 0 0 40px;
    }

    .library-filters-buttons > div {
        margin-bottom: 0;
    }

    .library-filters-buttons > div {
        margin-right: 29px;
    }

    .library-grid > .element-item {
        max-width: 50%;
        flex: 0 0 50%;
    }

    .library-article .entry-thumbnail {
        height: 26.04vw;
    }

    .library-article .entry-thumbnail h3 {
        font-size: 22px;
        line-height: 28.6px;
    }
}

@media (min-width: 1024px) {
    .library-grid {
        margin: 0 -15px -30px;
    }

    .library-filters-buttons {
        margin: 0 0 51px;
    }

    .library-grid > .element-item {
        max-width: 33.3333%;
        flex: 0 0 33.3333%;
        padding: 0 15px 30px;
    }

    .library-article .entry-thumbnail {
        height: 200px;
    }
}