Using CMS: How to click-to-show an element but hide all other elements of that class on page

Hey, Idk if this will work, but maybe you can try dropdown menus as your toggles, it’s a built-in feature that if you click on a dropdown menu, it closes any other open dropdown menus on the pages. You can customize them they way you want so that they function is merely buttons and they actually disappear on dropdown menu close.