You're correct about not being able to target parent selectors without some JS intervention - BUT - if you avoid any property declarations on your default img elements you can achieve what you desire.
Live demo: https://codepen.io/bradleytaunt/pen/LYGapao