.filter_button{
    float: left;
    margin: 0 0.5%;
    width: 19%;
    text-align: center;
    color: #b7b7b7;
    background-color: #FFFFFF;
    padding: 10px 0 4px 0;
}
.filter_button.active-button{
    color: #FFFFFF;
    background-color: #25cbd3;
}
#filter_container:hover .filter_button{
    color: #b7b7b7;
    background-color: #FFFFFF;
}

#filter_container .filter_button:hover{
    color: #FFFFFF;
    background-color: #25cbd3;
}
.filter_button h2{
    font-size: 18px;
    display: inline;
}
#filter{
    width: 1170px;
    margin: 0 auto;
    background-color: transparent;
}
#filter_container{
    margin-top: 130px;
    margin-bottom: 30px;
    padding: 0 15px;
}
#filter_container:after {
    display: block;
    clear: both;
    content: '';
}
#filter:after {
    display: block;
    clear: both;
    content: '';
}
#references_body #content{
    margin-top: 10px;
}

div.reference_open, .filter_is_active div.reference.column{
    width: calc(33.17vw - 17px) !important;
    max-width: 380px;
    max-height: 380px;
    float: left !important;
    margin: 5px !important;
    height: calc(33.17vw - 17px) !important;
}
#content .img-size-height.reference_open img.background {
    width: auto;
    height: 100%;
    position: relative;
}
#content .img-size-width.reference_open img.background {
    width: 100%;
    height: auto;
    position: relative;
}
.filter_is_active .column-block{
    float: none !important;
    width: auto !important;
    margin: 0;
    padding: 0;
}
.filter_is_active .column{
    float: none !important;
    width: auto !important;
    margin: 0;
    padding: 0;
}
.filter_is_active .column-block:after{
    clear: none;
}
.filter_is_active #eblokk img.background{
    left:-64%;
}
.filter_is_active #diegel img.background{
    left:-28%;
}
.filter_is_active #real img.background{
    left:-40%;
}
.filter_is_active #orange img.background{
    left:-50%;
}
.filter_is_active #boltinfo img.background{
    left:-30%;
}
.filter_is_active #karoracentrum img.background{
    left:-10%;
}
/*#references {
    min-height: 600px;
}*/
.filter_is_active #eblokk .logo {
    width: 40%;
}
.filter_is_active #real .logo {
    width: 40%;
}
.filter_is_active #orange .logo {
    width: 35%;
}
.filter_is_active #boltinfo .logo {
    width: 40%;
}
.filter_is_active #muuska .logo {
    width: 40%;
}
.filter_is_active #typo .logo {
    width: 26%;
}
.filter_is_active #diegel .logo {
    width: 50%;
}


@media (max-width: 1210px) {
    #filter{
        width: 100%;
    }
    .filter_is_active .padding{
        padding: 0 5px;
    }
    div.reference_open, .filter_is_active div.reference.column{
        width: calc(33.17vw - 17px) !important;
        height: calc(33.17vw - 17px) !important;
    }

}

@media (max-width: 950px) {
    /*div.reference_open, .filter_is_active div.reference.column{
        width: calc(33.17vw - 20px) !important;
        height: calc(33.17vw - 20px) !important;
    }*/
    div.reference_open, .filter_is_active div.reference.column{
        width: calc(50vw - 23px) !important;
        max-width: calc(50vw - 23px) !important;
        margin: 5px !important;
        height: 250px !important;
    }
    .filter_is_active #vagd-zsebre{
        margin: 5px !important;
    }
    .filter_is_active #eblokk img.background{
        left: 55%;
    }
    .filter_is_active #diegel img.background{
        left: 50%;
    }
    .filter_is_active #real img.background{
        left: 70%;
    }
    .filter_is_active #orange img.background{
        left: 60%;
    }
    .filter_is_active #boltinfo img.background{
        left: 50%;
    }
    .filter_is_active #karoracentrum img.background{
        left: 66%;
    }
    #content #forexhunter.img-size-height.reference_open img.background, #content #greensys.img-size-height.reference_open img.background, #content #rosenberg.img-size-height.reference_open img.background, #content #auchan.img-size-height.reference_open img.background {
        width: 100%;
        height: auto;
    }
    .filter_is_active #muuska img.background {
        transform: translate(-50%, -40%);
    }

    /*#references {
        min-height: 900px;
    }*/

}

@media (max-width: 680px) {
    .filter_is_active #forexhunter img.background{
        width: auto !important;
        height: 100% !important;
    }

}

@media (max-width: 600px) {
    .filter_button h2{
        font-size: 14px;
    }
    .filter_is_active #greensys img.background{
        width: auto !important;
        height: 100% !important;
    }
    .filter_is_active #rosenberg img.background{
        width: auto !important;
        height: 100% !important;
    }
    .filter_is_active #auchan img.background{
        width: auto !important;
        height: 100% !important;
    }

}
@media (max-width: 550px){
    .filter_is_active #rapcity img.background{
        width: auto !important;
        height: 100% !important;
    }
    .filter_is_active #vagd-zsebre img.background{
        width: auto !important;
        height: 100% !important;
    }
    .filter_is_active #ge img.background{
        width: auto !important;
        height: 100% !important;
    }
    .filter_is_active #hillside img.background{
        width: auto !important;
        height: 100% !important;
    }
    .filter_is_active #young img.background{
        width: auto !important;
        height: 100% !important;
    }
    .filter_is_active #abonett img.background{
        width: auto !important;
        height: 100% !important;
    }
    .filter_is_active #eblokk img.background{
        width: auto !important;
        height: 100% !important;
    }
    .filter_is_active #real img.background{
         width: auto !important;
         height: 100% !important;
     }
    .filter_is_active #orange img.background{
        width: auto !important;
        height: 100% !important;
    }

}
@media (max-width: 500px){
    .filter_button:nth-child(1){
        width: 100%;
        float: none;
        margin: 0 0 5px 0;
    }
    .filter_button:nth-child(2), .filter_button:nth-child(4){
        width: 49%;
        margin: 5px 1% 5px 0;
    }
    .filter_button:nth-child(3), .filter_button:nth-child(5){
        width: 49%;
        margin: 5px 0 5px 1%;
    }
    #filter_container{
        margin-bottom: 10px;
        margin-top: 100px;
        padding: 0;
    }
    div.reference_open, .filter_is_active div.reference.column{
        width: 100% !important;
        max-width: none !important;
        float: left !important;
        margin: 5px 0 5px 0 !important;
        height: 180px !important;
    }
    /*.open {
        width: 100% !important;
        height: 33vw !important;
    }*/
    #content .reference_open img.background {
        width: 100% !important;
        height: auto !important;
        transform: translate(-50%,-50%);
       /* left: 0%; */
    }
    .filter_is_active #eblokk img.background{
        left: 50%;
    }
    .filter_is_active #diegel img.background{
        left: 50%;
    }
    .filter_is_active #real img.background{
        left: 50%;
    }
    .filter_is_active #orange img.background{
        left: 50%;
    }
    .filter_is_active #boltinfo img.background{
        left: 50%;
    }
    .filter_is_active #karoracentrum img.background{
        left: 50%;
    }
    .filter_is_active #muuska img.background{
        top:110%;
    }
    .filter_is_active #vagd-zsebre {
        margin: 5px 0 5px 0 !important;
    }
    .filter_is_active #eblokk img.background{
        width: auto !important;
        height: 100% !important;
    }
    .filter_is_active #real img.background{
        width: auto !important;
        height: 100% !important;
    }
    .filter_is_active #orange img.background{
        width: auto !important;
        height: 100% !important;
    }

}