How-to guide
A picture gallery
A content block with many cells is already a grid. Add pictures and a bit of CSS.
Steps
Add a content block and set 4 columns in Layout; 2 on tablet and phone (Responsive).
Add one cell per picture (Block › Add cell) and insert a picture in each.
In the Effects tab, add the class
galleryto the block, then paste the CSS below into Site CSS.
CSS
.gallery .jc-cell img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform .3s; }
.gallery .jc-cell { overflow: hidden; }
.gallery .jc-cell:hover img { transform: scale(1.05); }Prompt for your AI
In my JoodCMS kit, add a gallery section to [page]: a content block with className "gallery", grid 4 columns
(2 on tablet and phone), and one cell per picture: [list of media files with alt texts]. Add the gallery CSS to theme.json.