body.post-type-archive-projecten section#category-archive .container ul {
    overflow: hidden;
    padding: 60px 0;
    display: flex;
    flex-wrap: wrap;
}

body.post-type-archive-projecten section#category-archive ul li.single-cat {
    flex: 0 0 24.25%;
    margin-right: 1%;
}

body.post-type-archive-projecten section#category-archive ul li.single-cat:nth-child(4n) {
    margin-right: 0;
}

body.post-type-archive-projecten section#category-archive ul li.single-cat:nth-child(n+5) {
    margin-top: 1%;
}

body.post-type-archive-projecten section#category-archive ul li.single-cat h3 {
    font-size: 23px;
    color: var(--maincolor);
    font-weight: 500;
    margin: 17px 0;
}

body.post-type-archive-projecten section#category-archive ul li.single-cat a {
    font-size: 16px;
    padding: 10px 20px;
    display: inline-flex !important;
    flex-wrap: wrap;
    align-items: center;
    background: var(--maincolor) !important;
    font-weight: 400;
    color: white;
}

@media screen and (max-width: 1100px) and (min-width: 600px) {

    body.post-type-archive-projecten section#category-archive ul li.single-cat {
        flex: 0 0 32.66666777%;
        margin-right: 1% !important;
    }

    body.post-type-archive-projecten section#category-archive ul li.single-cat:nth-child(3n) {
        margin-right: 0 !important;
    }

    body.post-type-archive-projecten section#category-archive ul li.single-cat:nth-child(n+4) {
        margin-top: 1% !important;
    }

}

@media screen and (max-width: 600px) {

    body.post-type-archive-projecten section#category-archive ul li.single-cat {
        flex: 0 0 49.5%;
        margin-right: 1% !important;
    }

    body.post-type-archive-projecten section#category-archive ul li.single-cat h3 {
        text-align: center;
    }

    body.post-type-archive-projecten section#category-archive ul li.single-cat a {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    body.post-type-archive-projecten section#category-archive ul li.single-cat:nth-child(2n) {
        margin-right: 0 !important;
    }

    body.post-type-archive-projecten section#category-archive ul li.single-cat:nth-child(n+3) {
        margin-top: 1% !important;
    }

    body.post-type-archive-projecten section#category-archive .container ul {
        padding: 20px 0;
    }

}