@media (min-width: 890px) { .section { margin-top: 0px; overflow: hidden; } .row { padding: 0 0 0 20px; } .row:after { content: " "; visibility: hidden; display: block; height: 0; clear: both; } .em-gallery { height: auto; float: left; margin: 0px auto; } .em-gallery a { -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-touch-callout: none; display: block; float: left; margin: 0 2px 2px 0; max-width: 19.3%; line-height: 0; } .em-gallery a img { height: auto; } a.em-gallery__img--main { width: auto; height: auto; } .em-gallery figure { display: none; } .em-gallery__title { line-height: 14px; font-size: 14px; opacity: 0.8; margin-top: 5px; width: 100%; float: left; } } @media (max-width: 890px) { .section { margin-top: 10px; overflow: hidden; } .row { padding: 0 15px 0 20px; } .row:after { content: " "; visibility: hidden; display: block; height: 0; clear: both; } .em-gallery { height: auto; float: left; margin: 0px auto; } .em-gallery a { -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-touch-callout: none; display: block; float: left; margin: 0 2px 2px 0; max-width: 19.3%; line-height: 0; } .em-gallery a img { height: auto; } a.em-gallery__img--main { width: auto; height: auto; } .em-gallery figure { display: none; } .em-gallery__title { line-height: 14px; font-size: 14px; opacity: 0.8; margin-top: 5px; width: 100%; float: left; } }