That one comes close. But the image hangs on the end of the second line, not vertically centred as the OP intended.
The media query method seems to work as intended, but the query width is a magic number. Changing the width units from px to em will make it more robust against text zooming, but it is still bound to the text length, so still a magic number.
If there were some property that could alter this default…