Dynamic Lightbox From Repeater

How can you connect the dataset in the light box to the referenced collection? Is there a way to transfer the referenced collection from the main page to the lightbox?