Start with creating categories Gallery -> Categories
Create gallery items
Gallery -> Add Gallery Item
Fill in the details: title, content, images, featured image and assign featured image also choose “action on click”
Create page Pages -> Add New
Switch to Visual Composer and choose Marco Gallery
Fill in the details: enter categories you would like to use separated with commas and set the the rest of the settings.
There are additional settings in Theme Settings -> Gallery