Open articles in popups

Hi! I want to open an article in popup when the user clicks on respective post card.
Like the khan academy notes.
But Can anyone please help me, how to implement that? Like if there are many posts on a page and when the user clicks on an article card, it opens the respective post. Means it automatically generates the popup with the post content in it when publishing a new post.
I only found the WordPress (php) solution here: https://stackoverflow.com/questions/54113770/how-to-display-the-article-content-in-a-popup-onclick-button/54114512. Any Idea about how can I implement this in Ghost?
I want to create a post card template just like @dan created here: https://cove.chat/blog/how-to-create-two-blogs-from-a-single-ghost-installtion/.
Just that, a popup should appear with the respective post content in it, when the post card is clicked.
Thanks!