πŸ“· Responsive Lightbox Gallery Demo

Built with PhotoSwipe v5 + Dynamic HTML Captions

✨ Features Implemented

βœ… Total Benefits:
Feature Outcome
πŸ–ΌοΈ Thumbnail figcaption Shows brief text over/under the thumbnail
πŸ” Lightbox template Displays full caption when lightbox opens
πŸ”— HTML support Use links, bold text, emojis, etc.
πŸ’‘ CSS custom styling Captions are beautiful, readable, and responsive
🧩 Plugin-based Less custom JS, more maintainable
<section class="gallery">
  <figure>
    <a href="https://picsum.photos/id/1015/1200/900"
       data-pswp-width="1200"
       data-pswp-height="900"
       data-pswp-caption-id="#caption-1">
      <img src="https://picsum.photos/id/1015/300/225" alt="Mountain Landscape" />
    </a>
    <figcaption>
      <h3>Mountain Landscape</h3>
      <p>This is the preview caption. <a href="https://example.com">Learn more</a>.</p>
    </figcaption>
  </figure>

  <template id="caption-1">
    <div class="pswp-caption-content">
      <h3>πŸŒ„ Mountain Landscape</h3>
      <p>This is the full lightbox caption, with <a href="https://example.com" target="_blank">clickable links</a> and custom HTML.</p>
    </div>
  </template>
</section>