https://codepen.io/Hyperplexed/pen/poQmrEq

This is neat a practical use of the :has css keyword (ignoring the rest of the codepen. https://codepen.io/Hyperplexed/pen/poQmrEq