Creating Dynamic Modals

Hello,

I’m currently working on a project for my University as a volunteer. Some information on what is supposed to happen is that on preview, the user can click on an image/text (stored as a collection item in CMS database), and then a Modal will appear in which the user can see more details about the artifact.

The problem that arises is that once the user has clicked on an item and seen the modal, and then closes the modal, they cannot click on another item to view a modal without refreshing the page. When I go to debug this, I get a console error which for the life of me I have no idea what it means "unable to preventDefault inside passive event listener due to target being treated as passive. ".

Preview link: https://preview.webflow.com/preview/rwwi-explore-feature-d96d45?utm_medium=preview_link&utm_source=designer&utm_content=rwwi-explore-feature-d96d45&preview=a65edbedbb1d0063eb6f0e073f44fb72&pageId=5d2b78b64a87063f862b9031&mode=preview