Manual radio button "cards" - Deselect other cards when one is selected

Is there a way I can create e.g 4 different selection cards, just plain Divs, with text and images inside. Then, on click the element pops up and gets a different styling showing its selected. This works fine, the trouble is how to remove this styling from the “selected” card when I click on another card. Can this be done without custom code?

Thanks for any pointers and help!