I have a portfolio page on this site that uses infinite load and a lightbox, which works normally on the first paginated page. After I scroll down and the infinite load loads the next page, and the next, etc. the lightbox no longer works. Been at this for a few days, not sure what could be the culprit here.
In the staging site, if you click on a thumbnail, you can see all 21 lightbox items in the same gallery. After loading the next page, the lightbox gallery items doesn’t update with the additional items.
I’ve made this script to listen for when List Load finishes rendering items, then it re-initializes Webflow’s lightbox component to ensure it works properly with the newly loaded content.