I'm experiencing an issue with my gallery overflowing the parent div and not staying sorted in all screen sizes. Here's a screenshot along with a snippet of the code:
https://i.sstatic.net/mKRtZ.jpg
<div id="gallery" class="container-fluid">
<h1><kbd>Gallery</kbd></h1>
<div class="container">
<ul>
<li class="col-lg-2 col-md-2 col-sm-3 col-xs-4"> <img class="lazy" data-original="images/galerija/1.png" width="150" height="150"> </li>
(...)
</ul>
</div>
</div>
My goal is to properly sort the images within the div like a grid, and then use jQuery to extend the div on smaller screens.