Masonry Photo Gallery

1440px
Masonry Photo Gallery preview

Key Highlights

Pinterest-style layout
Smooth lightbox
Infinite scroll
Fast image loading

About this template

Showcase your photography in a dynamic masonry layout that adapts beautifully to different image orientations. Features infinite scroll, lightbox viewing, category filtering, and smooth load animations. Perfect for photographers with diverse work.

What's included

Masonry grid layout
Lightbox gallery
Category filtering
Infinite scroll
Blur-up image loading
EXIF data display
Touch-friendly
Keyboard navigation

Best for

PhotographersVisual ArtistsIllustratorsDesigners

Industries

PhotographyArtDesign

AI Generation Prompt

Create a masonry photography portfolio:

1. HEADER:
- Fixed minimal header
- Logo + Hamburger menu
- Filter categories: All, Portrait, Landscape, Street, etc.

2. MASONRY GRID:
- Pinterest-style auto-flowing grid
- Variable height images
- 3 columns on desktop, 2 on tablet, 1 on mobile
- Lazy loading with blur placeholder
- Hover: Slight lift + shadow + title overlay

3. LIGHTBOX:
- Full-screen image view on click
- Arrow navigation
- Image counter (12/45)
- EXIF data display option
- Close button + Escape key

4. IMAGE DETAIL (optional):
- Full-width hero image
- Title, description, date
- Related images grid
- Share buttons

5. ABOUT:
- Two-column layout
- Photographer bio + equipment list

6. CONTACT:
- Simple form
- Availability calendar

COLORS:
- Background: #ffffff
- Text: #1a1a1a
- Grid gaps: #f5f5f5

LOADING:
- Blur-up technique for images
- Skeleton placeholders
- Infinite scroll trigger


RESPONSIVE DESIGN (CRITICAL):
- Mobile-first approach: Design for 375px width first, then scale up
- Breakpoints: sm (640px), md (768px), lg (1024px), xl (1280px)
- Touch targets: Minimum 44x44px for all interactive elements
- Navigation: Hamburger menu on mobile, full nav on desktop
- Typography: Scale down headings on mobile (text-2xl → text-lg)
- Spacing: Reduce padding/margins on mobile (p-8 → p-4)
- Images: Use responsive images with srcset, object-fit: cover
- Grid: Stack columns on mobile (grid-cols-1), expand on desktop
- Hide non-essential elements on mobile with hidden md:block
- Test at 375px, 768px, 1024px, and 1440px widths

SEO & AI OPTIMIZATION (CRITICAL FOR DISCOVERABILITY):

1. HTML HEAD REQUIREMENTS:
- <title> tag: Primary keyword first, brand last (max 60 chars)
- <meta name="description"> : Action-oriented, include primary keyword (max 155 chars)
- <link rel="canonical" href="[full-url]">
- <meta name="robots" content="index, follow">
- Open Graph: og:title, og:description, og:image (1200x630), og:url, og:type
- Twitter Card: twitter:card="summary_large_image", twitter:title, twitter:description, twitter:image
- AI crawler discovery links in <head>:
  <link rel="alternate" type="text/markdown" href="[url].md" title="Markdown">
  <link rel="alternate" type="application/ld+json" href="[url].json" title="Structured Data">

2. SEMANTIC HTML STRUCTURE:
- Single <h1> containing primary keyword (first 40-60 words answer the page's main query)
- Logical heading hierarchy: h1 > h2 > h3 (never skip levels)
- Use <main>, <article>, <section>, <nav>, <header>, <footer>, <aside> landmarks
- Each <section> should have an aria-label or heading
- Use <figure> and <figcaption> for images with context

3. JSON-LD STRUCTURED DATA (in <script type="application/ld+json">):
- WebSite schema with SearchAction for site search
- Organization schema with logo, sameAs social links
- BreadcrumbList schema for navigation context
- Match primary schema to content type:
  - Landing pages: WebPage or Product
  - Blogs: Article with author, datePublished, dateModified
  - E-commerce: Product with offers, price, availability
  - FAQ sections: FAQPage schema (critical for AI answer engines)
  - Local business: LocalBusiness with address, hours, geo
  - Events: Event with startDate, location, offers

4. CONTENT STRUCTURE FOR AI CITATION (GEO/AEO):
- First paragraph (40-60 words): Direct answer to page's primary intent
- Use clear, factual language - AI prefers authoritative, non-fluffy content
- Include specific numbers, statistics, dates where relevant
- Each H2 section should stand alone as a complete answer
- Add statistics/facts every 150-200 words (increases citation likelihood)
- FAQ sections: Use consistent ## FAQ heading with ### Question / Answer pattern
- Use <hr> or --- between distinct content sections (helps AI chunking)

5. IMAGES & MEDIA:
- All <img> must have descriptive alt text (not "image" or "photo")
- Use loading="lazy" for below-fold images
- Include width and height attributes to prevent CLS
- Use WebP format with fallback, srcset for responsive
- Add structured data for key images (ImageObject schema)

6. PERFORMANCE (Core Web Vitals):
- Largest Contentful Paint: Hero image/text visible < 2.5s
- Cumulative Layout Shift: Reserve space for images, ads, embeds
- First Input Delay: Minimize JS blocking, defer non-critical scripts
- Use font-display: swap for web fonts
- Preload critical resources: <link rel="preload">

7. ACCESSIBILITY (also helps SEO):
- All interactive elements keyboard accessible
- Focus states visible on all focusable elements
- Color contrast ratio minimum 4.5:1 for text
- aria-label on icon-only buttons
- Skip link to main content

This prompt will be used to generate your project. Feel free to customize it in the builder.

Integrations Ready

Image CDNContact Form

Start building now

Use AI to customize this template and launch in minutes.

Template overview

Responsive Animations SEO A11y
Components28+
Pages4
Build time5 min
Difficultybeginner
Popularity
91%
AuthorSpawned Design Team

Design system

Color palette
#ffffff
#1a1a1a
#f5f5f5
#e5e5e5
#333333
Typography
InterAll text
Tech stack
ReactTailwind CSSReact Masonry

Ready to build your project?

Start with this template and customize it with AI in minutes. No coding required.