Adaptive Gallery in action
A rail that fits the image, a lightbox with every photograph, and layouts you control at each Bricks breakpoint. These examples use eight wildlife images, including portrait and landscape originals.
Read the setup guideLayouts and overflowImage proportionsLive data sourcesAppearance and edge casesLayouts, resizing and overflow
Use the arrows, thumbnails or dots. Open +N to browse the complete gallery, then close it on another image to see the main gallery synchronise.
Responsive by breakpoint
Vertical on desktop, horizontal below 991px, swipe and dots below 767px.







1 / 8Wildlife image 1 — independent Playground gallery fixture
Horizontal thumbnails
The rail sits above the image; selecting a thumbnail crossfades the stage.







1 / 8Wildlife image 1 — independent Playground gallery fixture
Swipe and dots
Use touch or the arrows. The eight dots track the current image.







1 / 8Wildlife image 1 — independent Playground gallery fixture
Main image only
A clean image stage with arrows, count and a full-gallery lightbox.







1 / 8Wildlife image 1 — independent Playground gallery fixture
One-slot overflow rail
A 150px stage and 150px thumbnail leave one slot: the gallery action.







1 / 8Wildlife image 1 — independent Playground gallery fixture
Exact fit: two thumbnails
Two images, a 200px stage and 90px thumbnails: no unnecessary overflow action.

1 / 2Wildlife image 1 — independent Playground gallery fixture
Every aspect ratio, with mixed originals
Fixed proportions keep the stage stable. Natural follows the selected photograph, so a portrait image changes the stage height. Contain preserves the whole image; Cover fills the frame.
3:2
Select the portrait photograph to compare it with the landscape originals.







1 / 8Wildlife image 1 — independent Playground gallery fixture
4:3
Select the portrait photograph to compare it with the landscape originals.







1 / 8Wildlife image 1 — independent Playground gallery fixture
Square
Select the portrait photograph to compare it with the landscape originals.







1 / 8Wildlife image 1 — independent Playground gallery fixture
16:9
Select the portrait photograph to compare it with the landscape originals.







1 / 8Wildlife image 1 — independent Playground gallery fixture
2:1
Select the portrait photograph to compare it with the landscape originals.







1 / 8Wildlife image 1 — independent Playground gallery fixture
5:4
Select the portrait photograph to compare it with the landscape originals.







1 / 8Wildlife image 1 — independent Playground gallery fixture
3:4 portrait
Select the portrait photograph to compare it with the landscape originals.







1 / 8Wildlife image 1 — independent Playground gallery fixture
2:3 portrait
Select the portrait photograph to compare it with the landscape originals.







1 / 8Wildlife image 1 — independent Playground gallery fixture
Natural
Select the portrait photograph to compare it with the landscape originals.







1 / 8Wildlife image 1 — independent Playground gallery fixture
Five live image sources
Each example below reads the named source. The options gallery reverses the order, making its separate storage visible. Site editors can change these records and reload the page.
Media Library
Eight individually selected attachment records.







1 / 8Wildlife image 1 — independent Playground gallery fixture
ACF on this page
Field: pg_ag_gallery. ACF Pro owns the original selection.







1 / 8Wildlife image 1 — independent Playground gallery fixture
ACF options
Field: pg_ag_options_gallery, shared options scope; reversed selection.







1 / 8Wildlife image 8 — independent Playground gallery fixture
Bricks dynamic tag
The ACF gallery tag resolves to local attachment IDs.







1 / 8Wildlife image 1 — independent Playground gallery fixture
Custom post meta
The pg_gallery_meta value contains an attachment-ID array.







1 / 8Wildlife image 1 — independent Playground gallery fixture
Attached images
The eight demo attachments belong to this page.







1 / 8Wildlife image 1 — independent Playground gallery fixture
WooCommerce: the product source combines its featured image and product-gallery IDs. WooCommerce is not installed on this Playground, so a real product integration is documented in the guide rather than presented as a live test.
Appearance, motion and edge cases
These instances are independent. Try keyboard navigation in the lightbox, Escape, focus return, the thumbnail strip and changing the selected image before closing. Reduced-motion preferences disable the crossfade.
Right rail and Cover
Right-hand rail, cropped images and instant transitions.







1 / 8Wildlife image 1 — independent Playground gallery fixture
Rounded thumbnails
An independent gallery with rounded thumbnails, captions and an image counter.







1 / 8Wildlife image 1 — independent Playground gallery fixture
Single image
No previous/next arrows are needed for one image.
1 / 1Wildlife image 1 — independent Playground gallery fixture
Empty gallery
Intentional empty source: no broken image or invalid counter should appear below this explanation.