You can use a little JavaScript to grab the hidden ID from the clicked card and update the popup content dynamically.