/************************************************************************************
MEDIA QUERIES
*************************************************************************************/

/* reset to 5-column */
@media screen and (max-width: 1240px) {
    .grid6 .content_block {
        width: 16.8%; 
    }
    .grid6 .content_block:nth-of-type(6n+1) {
        margin-left: 3.2%;
        clear: none;
    }
    .grid6 .content_block:nth-of-type(5n+1) {
        margin-left: 0;
        clear: left;
    }
}

/* reset to 4-column */
@media screen and (max-width: 960px) {
    .grid6 .content_block,
    .grid5 .content_block {
        width: 22.6%;
    }
    .grid6 .content_block:nth-of-type(5n+1),
    .grid5 .content_block:nth-of-type(5n+1) {
        margin-left: 3.2%;
        clear: none;
    }
    .grid6 .content_block:nth-of-type(4n+1),
    .grid5 .content_block:nth-of-type(4n+1) {
        margin-left: 0;
        clear: left;
    }
}

/* reset to 3-column */
@media screen and (max-width: 740px) {
    .grid6 .content_block,
    .grid5 .content_block,
    .grid4 .content_block {
        width: 31.2%;
    }
    .grid6 .content_block:nth-of-type(4n+1),
    .grid5 .content_block:nth-of-type(4n+1),
    .grid4 .content_block:nth-of-type(4n+1) {
        margin-left: 3.2%;
        clear: none;
    }
    .grid6 .content_block:nth-of-type(3n+1),
    .grid5 .content_block:nth-of-type(3n+1),
    .grid4 .content_block:nth-of-type(3n+1) {
        margin-left: 0;
        clear: left;
    }
}

/* reset to 2-column */
@media screen and (max-width: 600px) {
    .grid6 .content_block,
    .grid5 .content_block,
    .grid4 .content_block,
    .grid3 .content_block {
        width: 48.4%;
    }
    .grid6 .content_block:nth-of-type(3n+1),
    .grid5 .content_block:nth-of-type(3n+1),
    .grid4 .content_block:nth-of-type(3n+1),
    .grid3 .content_block:nth-of-type(3n+1) {
        margin-left: 3.2%;
        clear: none;
    }
    .grid6 .content_block:nth-of-type(2n+1),
    .grid5 .content_block:nth-of-type(2n+1),
    .grid4 .content_block:nth-of-type(2n+1),
    .grid3 .content_block:nth-of-type(2n+1) {
        margin-left: 0;
        clear: left;
    }
}

/* reset to fullwidth */
@media screen and (max-width: 400px) {
    .content_block {
        width: 100% !important;
        margin-left: 0 !important;
        clear: none !important;
    }
}    