Here’s a plugin I have written that extends the Bricks theme, specifically it allows you to use Masonry.js (built into WordPress) with the Product Element. I was surprised this wasn’t a built-in option and created this lightweight plugin to achieve integration. All you need to do is install the plugin and add a custom id to the product element.
The plugin is straightforward enough, you will find a settings panel where you may customise the style sheet. It is important you add the id `#masonry-for-bricks` to the relevant product element via the Bricks builder for the masonry effect to work.