Check this out
```css figure:has(input[type="checkbox"]:checked) figcaption { /\* if a figure has a checkbox checked, apply this to its figcaption... \*/ font-size: 90%; font-style: italic; margin: 0.6rem 0 0.1rem; } ```
Check this out
https://codepen.io/julienreszka/pen/yLKZRRX