.masonry {
    /* Masonry container */
    -webkit-column-count: 4;
    -moz-column-count: 4;
    column-count: 4;
    -webkit-column-gap: 1em;
    -moz-column-gap: 1em;
    column-gap: 1em;
    padding: 0;
    -moz-column-gap: 1.5em;
    -webkit-column-gap: 1.5em;
    column-gap: 1.5em;
    font-size: .85em;
   
}

.labelCategorystyle {
    width: 90%;
    color: white;
    margin: auto;
    text-align: center;
    padding: 5px;
    margin-bottom: 10px;
    border-bottom: 1px solid #d6d7d8;
    background-color: black;
    transition: all 0.4s;
    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    -moz-transition: all 0.4s;
}
    .labelCategorystyle:hover {
        background-color: #ED1C24;       
    }

.item {
    display: inline-block;
    background: #fff;
    padding: 1em;
    margin: 0 0 3em;
    width: 100%;
    /*-webkit-transition: 1s ease all;*/
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border: 1px solid gray;
}

    .item img {
        max-width: 100%;
    }

.categoryimage{
    width: 100%;
    float: left;
}

@media only screen and (max-width: 320px) {
    .masonry {
        -moz-column-count: 1;
        -webkit-column-count: 1;
        column-count: 1;
    }
}

@media only screen and (min-width: 321px) and (max-width: 768px) {
    .masonry {
        -moz-column-count: 2;
        -webkit-column-count: 2;
        column-count: 2;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1200px) {
    .masonry {
        -moz-column-count: 3;
        -webkit-column-count: 3;
        column-count: 3;
    }
}

@media only screen and (max-width: 992px){
    .labelCategorystyle{
        font-size: 10pt;
        padding: 3px;
    }
}

@media only screen and (min-width: 1201px) {
    .masonry {
        -moz-column-count: 4;
        -webkit-column-count: 4;
        column-count: 4;
    }
}
