It’s not working in version 0.13.14
Updated the snippet in the OP for Live Preview. You can also use Minimal Theme which includes the snippet bundled in, and is kept up to date for new versions of Obsidian.
It’s working. Thanks for your update @kepano. Is there a way that I could put the image outside the pane and create it as a lightbox image?
Is there a way to modify CSS so it doesn’t require the mouse be held down? (Click to zoom in, next click closes the image). Similar to the way it works with mobile.