Issue with Modal set up in CMS item

Hey there! I am encountering issues trying to get a modal working in my CMS collection. The desired interaction is for the modal to open up when an item from the grid is clicked on, and then closed when the “x” is clicked or when a user clicks outside the modal.

For some reason the modal is being very glitchy in designer and on the staging site. It appears to be opening modals for the wrong collection item and opening multiple modals at the same time. Any ideas on what could be causing this in my setup?

I thought that by placing the modal in the collection item that it should trigger the modal for that item, but that doesn’t appear to be working.

Read Only Link:
https://preview.webflow.com/preview/we-love-bread-and-butter?utm_medium=preview_link&utm_source=designer&utm_content=we-love-bread-and-butter&preview=4a755ae75d6f60960f3ccf430fa546d1&pageId=65501a2076d7d5c7ab982c06&workflow=preview

Staging Link:
https://we-love-bread-and-butter.webflow.io/our-clients

Screenshot of modal issue:

Thanks!

Hey @uxdesigner7! You are targeting all elements with the class modal1_component, have you tried setting the dropdown option to “Only siblings with this class”?