The :has() pseudo-selector

The :has() relational selector allows you to select parents of elements, but also preceding elements, siblings, and much more!