Every time the page is refreshed or a layout change is requested, a new layout is generated, even if the screen size stays the same.
Due to these limitations, cards are not bound by their content dimensions. This allows UHUGRID to generate visually appealing cards using aspect ratios that fit best for the current screen size and available free space.
Just inject it in you HTML markup and the rest will be taken care of! Make sure to read about how to structure your markup so that it can be activated.
The plugin comes with the basic styling necessary for it to work properly. You are responsible for styling .gallery__item and its content as you desire.
Overriding .gallery and .gallery__item is the correct way to use the library. Please watch the How to video to understand some important details before you override any styles.
column_size optional: a range from 1 to 40, 1 is approximately 100px. If you insert 0 or undefined, UHUGRID will choose the best column size depending on the display width of the user. By default it can scale up to 4K displays.