section#diensten{
    margin: 80px 0;
}

section#diensten .dienst img{
    height: 300px;
    width: 100%;
    object-fit: cover;
} 

section#diensten .dienst{
    box-sizing: border-box;
    position: relative;
}

section#diensten .dienst .button{
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

section#diensten .label{
    background: #058890;
    color: white;
    padding: 2px 10px;
    box-sizing: border-box;
    margin-top: 10px;
    display: block;
    width: fit-content;
}

section#diensten h2{
    margin: 0;
    color: #000;
    font-size: 45px;
    line-height: 50px;
    margin-bottom: 20px;
    margin-top: 10px;
}

section#diensten h2 strong{
    color: #be1622;
}

section#diensten .container{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    overflow: visible;
}

section#diensten .container .content{
    grid-column: 2 / 4;
}
section#diensten .container .dienstwrapper .row img{
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #EAEAEA;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 10px;
    flex: 0 0 70px;
}

section#diensten .container .dienstwrapper .row:nth-child(n+3){
    margin-top: 40px;
} 

section#diensten .container .dienstwrapper .row{
    display: flex;
    gap: 20px;
}

section#diensten .container .dienstwrapper .row h3{
    font-size: 20px;
    line-height: 20px;
    margin-top: 0;
    margin-bottom: 5px;
}

section#diensten .container .dienstwrapper .row .content p{
    margin: 0;
}

section#diensten .container .dienstgalerij{
    flex: 1;
    position: relative;
    display: grid;
    grid-template: 1fr 1fr / 1fr 1fr;
    gap: 20px;
    padding-bottom: 60px;
}

section#diensten .container .dienstgalerij a:nth-child(2n){
    position: relative;
    top: 60px;
}

section#diensten .container .dienstgalerij a img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

section#diensten .container .content img{
    height: 300px;
    width: 100%;
    object-fit: cover;
}

section#diensten .container .dienst{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


@media screen and (min-width: 1000px) {
    section#diensten .container .dienst:nth-child(1){
        padding-right: 20px;
        margin-bottom: 40px;
    }

    section#diensten .container .dienst:nth-child(2){
        padding-right: 20px;
        padding-left: 20px;
        border-right: 1px solid #e7e7e7;
        border-left: 1px solid #e7e7e7;
        margin-bottom: 40px;
    }

    section#diensten .container .dienst:nth-child(3){
        padding-left: 20px;
        margin-bottom: 40px;
    }

    section#diensten .container .dienst:nth-child(4){
        padding-right: 20px;
        
    }

    section#diensten .container .content{
        padding-left: 20px;
        border-left: 1px solid #e7e7e7;
    }

    section#diensten .container .dienst:nth-child(1):before{
        position: absolute;
        content: '';
        width: calc(100% - 20px);
        left: 0;
        bottom: -20px;
        background: #e7e7e7;
        height: 1px;
    }

    section#diensten .container .dienst:nth-child(2):before{
        position: absolute;
        content: '';
        width: calc(100% - 40px);
        left: 20px;
        bottom: -20px;
        background: #e7e7e7;
        height: 1px;
    }

    section#diensten .container .dienst:nth-child(3):before{
        position: absolute;
        content: '';
        width: calc(100% - 20px);
        right: 0px;
        bottom: -20px;
        background: #e7e7e7;
        height: 1px;
    }
}

@media screen and (max-width: 1000px) {
    section#diensten h2{
        font-size: 30px;
        line-height: 30px;
    }

    section#diensten .container{
        gap: 20px;
    }

    section#diensten{
        margin: 40px 0;
    }
    section#diensten .container{
        gap: 40px;
    }

    section#diensten .container{
        grid-template-columns: 1fr 1fr;
    }

    section#diensten .container .content{
        grid-column: 1 / 3;
    }
}

@media screen and (max-width: 650px) {
    section#diensten .container{
        grid-template-columns: 1fr;
    }

    section#diensten .container .content{
        grid-column: unset!important;
    }
}