Menu
All plugins

Airbnb Gallery

A Bricks element that shows photos as the classic one large and four small tiles, with a “Show all photos” button that opens Bricks’ own lightbox on the whole set.

Version: 1.0.0 · Requires: PHP 7.4+, Bricks · See the live demo

What it does

  • Adaptive tiled grid: 1, 2, 3, 4 or 5+ images each get their own layout.
  • With more than five images, the fifth tile shows a +N overlay. Every image is still in the lightbox with next and previous.
  • Uses Bricks’ native lightbox (PhotoSwipe), so there is no extra lightbox script.

Installation

  1. Upload and activate the plugin. Bricks must be active.
  2. In the Bricks editor search for Airbnb Gallery (Media group).
  3. Pick photos in Images.

Layout by image count

  • 1 — Single full-width tile (16:9)
  • 2 — Two equal tiles side by side
  • 3 — Large left tile, two stacked on the right
  • 4 — Large left tile, three stacked on the right
  • 5 or more — Large 2×2 tile on the left, four small tiles on the right; extras hidden but in the lightbox

Settings

  • Images — Media Library picker
  • Show “Show all photos” button — On. Opens the lightbox at the first image.
  • Button text — “Show all photos”
  • Gap — CSS length, e.g. 8px. Plain text, not a number-and-unit control.
  • Tile border radius — CSS length, e.g. 12px

Lightbox group:

  • Image size — Full (default) or any registered size
  • Animation — None, Fade, Zoom (default)
  • Caption — Off
  • Thumbnail navigation — Off
  • Lightbox ID — Group this gallery with others on the same page

Known limits

  • Only the tiled layout is built. There is no grid, masonry, filtering or tilt effect.
  • Captions in the lightbox come from the media library, if switched on.
  • Gap and radius are plain CSS values.