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: Any Idea about how can I implement this in Ghost?
I want to create a post card template just like @dan created here:
Just that, a popup should appear with the respective post content in it, when the post card is clicked.