/** Tablet **/ @media (max-width: 980px){ .col-width .et_pb_gallery_item { width: 25% !important; /*four columns*/ clear: none !important; } } /** Small Tablet and Large Phone **/ @media (max-width: 767px){ .col-width .et_pb_gallery_item { width: 50% !important; /*two columns*/ clear: none !important; } } /** Phone **/ @media (max-width: 479px){ .col-width .et_pb_gallery_item { width: 50% !important; /*two columns*/ clear: none !important; } }