Add a Query Loop block to your page

Click + and search for “Query Loop”

Open List View

Click the List View icon

Select Post Template block

Expand Query Loop → Click “Post Template”

Switch to Grid layout

In the toolbar, click the Grid icon

Enable Masonry in sidebar

Check “Enable masonry layout” in Settings panel

Installation

Enable Masonry on Query Loop Block

Masonry Columns

Aspect Ratio Rules

Responsive Breakpoints

Gap/Gutter Spacing