Modal as blog post preview with navigation

so I have a few case studies/projects as short preview populated with cpts

Now I’d like to have a modal that opens up on click also populated with cpts with more information to the project and a navigation through the other projects from the cpt in the modal

can anyone link me to a manageable way to achieve this? I mean I got the modal template populated by the cpts, the section to be clicked on the website.

What I sstruggle with and AI is the custom code for modal next before post as ajax and how to set the modal to populate with the content from the loop on click on the homepage link.

Thanks for help✨