main#projecten{
    padding-bottom: 200px;
}

main#projecten .projectwrapper .container{
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    
}

main#projecten .projectwrapper{
    position: relative;
}

main#projecten .projectwrapper:after {
    position: absolute;
    width: 100%;
    height: 250px;
    background: #171717;
    bottom: -50px;
    content: '';
    z-index: -1;
}

main#projecten .projectwrapper a:hover h4 {
    color: #FFDA34!important;
    border-color: #FFDA34!important;
}

main#projecten .projectwrapper:nth-child(n+3) .container{
    margin-top: 100px;
}

main#projecten .projectwrapper .container a.project{
    flex: 0 0 32%;
}

main#projecten .projectwrapper .container a{
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

main#projecten .projectwrapper .container a:nth-child(n+4){
    margin-top: 40px;
}

main#projecten .projectwrapper .container a h3{
    margin: 0;
    text-align: center;
    color: white;
    font-size: 36px;
    line-height: 44px;
    text-transform: uppercase;
    font-weight: 600;
    font-family: neue-haas-unica, sans-serif;
    margin-top: 20px;
}

main#projecten .projectwrapper .container a h4 {
    margin: 0;
    text-align: center;
    color: white;
    font-size: 24px;
    line-height: 30px;
    padding-bottom: 3px;
    border-bottom: 2px solid white;
    text-transform: uppercase;
    font-weight: 400;
    font-family: neue-haas-unica, sans-serif;
    display: inline-block;
    margin-top: 10px;
}

main#projecten .projectwrapper .container a img{
    height: 500px;
    object-fit: cover;
    width: 100%;
    border-radius: 10px;
}

main#singleproject .projectimage{
    width: 100%;
    height: 400px;
}

main#singleproject .projectimage img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

main#singleproject .projectcontent{
    display: flex;
    flex-wrap: wrap;
    gap: 4%;
    margin: 60px 0;
}

main#singleproject .projectcontent > div{
    flex: 0 0 48%;
}

main#singleproject section#gallery .gallerywrap{
    list-style-type: none!important;
    display: flex;
    gap: 2%;
    flex-wrap: wrap;
    margin-top: 120px;
}

main#singleproject section#gallery .gallerywrap li{
    flex: 0 0 32%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
}

main#singleproject section#gallery .gallerywrap li:nth-child(n+4){
    margin-top: 30px;
}

main#singleproject section#gallery .gallerywrap li a{
    width: 100%;
    height: 100%;
}

main#singleproject section#gallery .gallerywrap li a img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media only screen and (max-width: 1300px) {
    body main#projecten .projectwrapper .container a{
        flex: 0 0 100%!important;
    }

    body main#projecten .projectwrapper .container a:not(:last-child) h3, body main#projecten .projectwrapper .container a:not(:last-child) h4{
        color: #171717;
    }

    body main#projecten .projectwrapper .container a:nth-child(n+2){
        margin-top: 25px;
    }

    main#projecten .projectwrapper .container a img{
        height: 300px;
    }
}

@media only screen and (max-width: 800px) {
    body main#projecten .projectwrapper .container a{
        flex: 0 0 100%!important;
    }

    body main#projecten .projectwrapper .container a:nth-child(n+2){
        margin-top: 25px;
    }
}

@media only screen and (max-width: 1000px) {
    main#singleproject .projectcontent > div{
        flex: 0 0 100%;
    }

    main#singleproject section#gallery .gallerywrap{
        display: block;
    }

    main#singleproject section#gallery .gallerywrap li{
        height: 300px;
    }

    main#singleproject section#gallery .gallerywrap li:not(:last-child){
        margin-bottom: 25px;
    }
}