Hi @joanmor, yes this would be plugin territory for us.
Even if we wanted to include it, the functionality vs. presentation rules would be a grey area for lightboxes and we’d likely end up in a deep discussion with the www.remarpro.com Theme Review team on it.
Here are a few reasons why we think using a plugin is actually better in the long-run:
1. There many, many to choose from already. Each one a little different, so you can really find the one that does exactly what you’re looking for.
2. We would not write it from scratch, we would simply pick our favorite from the many JS libraries out there that create lightboxes. Chances are high there is already a plugin out there that uses the one we’d pick (see answer #1).
3. You aren’t “locked” into using a certain lightbox style or features. A new fancy lightbox plugin comes out next week? Just swap plugins.
4. You can switch your theme at any time without affecting the lightboxes working inside your content areas.
5. You are more likely to get frequent updates and the latest-and-greatest features for your lightboxes. We are less likely than a plugin (whose primary focus is making cool lightboxes) to stay on top of library updates and pushing those out.
In summary: We want all users of Primer to be in the most control possible and not lock them into using something that already exists as a plugin.
Hope this helps provide a little context, and thank you very much for using Primer!
Frankie