Can I add a link in the Popup content to close the popup

I understand the click the X in the corner to close the popup. That's fine.

I want to create a minimal style popup and have in the content to choose between to button links, Yes or No.

How can I make the "no" choice close the popup as if they clicked the X or if they click on the background that faded out?

I want the visitor to have the option to stay on the post they're reading if they don't want to choose the "Yes" option.