✅ 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>