CMS Lightbox not working on second pagination page

Hey guys!
I developed a CMS lightbox that opens when the CMS element is clicked. I have in total 103 elements on my CMS list and the limit of elements to show on 1 page is 100 so I have to set pagination. The light box on the first page works well but on the second page, the light box doesn’t work. Did anyone ever experience this?

Hey @doriana! Can you share your links?