Linking Lightboxes to Content Manager

You can link to the lightbox to the buttons as mentioned here:
https://support.wix.com/en/article/editor-x-using-lightboxes#link-elements-to-a-lightbox

Here is a forum post on connecting your lightbox to your dataset using code. https://www.wix.com/velo/forum/tips-tutorials-examples/connecting-your-database-to-lightboxes

It uses the query() and openLightbox() APIs.