Real estate

Property gallery

The photo area of a property page: a photo grid with a full-screen lightbox, or one large photo with a thumbnail strip.

Examples

Photo grid with lightbox

Click any photo to open the lightbox. data-gallery-index tells site.js which slide to show first. Arrow keys and swipe work through Bootstrap's carousel.

Main photo with thumbnails

Add data-gallery to the wrapper and data-thumb to each button. No extra code needed.

Classes

Class / attributePurpose
.property-galleryOne large photo and four small ones. On phones it shows three.
.gallery-item + data-gallery-indexPhoto button that opens the lightbox at that slide.
.gallery-more"Show all photos" button.
.modal-lightbox + .gallery-carouselFull-screen carousel using Bootstrap's modal and carousel.
[data-gallery], [data-thumb], [data-gallery-main]Thumbnail strip that swaps the main photo.