Here are some CSS masonry layout examples that you can use.
Pure CSS masonry layout w/ Flexbox
Dev: Jhey
Simple Masonry Layout With Flexbox
Dev: Dudley Storey
CSS3 Image Wall
Dev: James Barnett
Masonry Layout with filtering
Dev: Daniel Gonzalez
Masonry Layout with CSS Grids
Dev: Madalena
CSS Grid: Responsive Masonry Layout
Dev: Saief Al Emon
Easiest Masonry grid layout Tutorial
Dev: CSSFTW
Masonry Layout with Grid
Dev: Boots
Masonry layout pure css
Dev: Devi Krisdiansyah
Pure CSS masonry layout
Dev: Gabriele Romanato
Masonry Layout
Dev: David Rivadeneyra
CSS Grid: Columns (Pure CSS Masonry Layout)
Dev: Lasse Stilvang
CSS Column masonry layout
Dev: Trevor Eyre
CSS Grid – Masonry Layout
Dev: Kevin
CSS-Only Responsive Masonry Layout
Dev: Pierre Lizet
Masonry Layout with CSS Grids
Dev: Madalena
Photo Gallery
Dev: Russ Perry
CSS Masonry Effect
Dev: Luca
Easy Horizontal Masonry Effect with CSS Grid
Dev: Andy Barefoot
Masonry
Dev: RenGM
Responsive Pure CSS Masonry Layout – Column Count
Dev: Stephanie
Only CSS Masonry
Dev: Omar Trujillo
Masonry Dynamic Column Flexbox (CSS Only)
Dev: Chris Weissenberger
Left-to-right Masonry Layout using CSS Grid
Dev: Chris Coyier
CSS Only Masonry Layout (No CSS Grid)
Dev: Kreig Durham