Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A minimal, single-page photo gallery for Astro with a responsive CSS grid and Fancybox lightbox.

Free photography website theme for Astro with portfolios and testimonials, built with Tailwind CSS.
Astro Photo Grid is a minimal, single-page photo gallery template for Astro that compiles an images folder into a responsive justified grid with a Fancybox lightbox.
Astro Photo Grid is a minimal, single-page photo gallery template built on the Astro static site generator. It takes the photos you place in the src/images directory and generates a responsive, justified gallery page with automatic lightbox support. The template is distributed as a GitHub template repository with 164 stars and includes a live demo at https://astro-photo-grid.netlify.app/.
BaseLayout.astro) and an images folder, with only five configuration steps needed to go live.src/images and the template generates a ready-to-deploy static gallery.The template provides an Astro project with a base layout and a page that imports images from src/images. When you run the Astro build, it outputs a static site containing the justified grid and the Fancybox lightbox. The getting-started workflow is: click "Use this template" on GitHub, edit the site URL and site name, replace the images, and deploy.
Yes, the template is open source and distributed via GitHub as a template repository. There is no mention of a license or paid tier in the repository description.
No. The justified gallery layout is implemented entirely with modern CSS, so the grid itself renders without JavaScript. JavaScript is only used by the Fancybox lightbox for full-screen previews and interactions.
Replace the image files in the src/images directory with your own photos. The template automatically picks up the images in that folder and generates the grid. You may also update the site name in src/layouts/BaseLayout.astro to customize the page's heading.
Astro Photo Grid uses Fancybox, a library that provides full-screen previews with swipe, drag, pinch-to-zoom, and a customizable toolbar. Fancybox is credited in the template's feature list.