I stumbled upon a clever workaround since JavaScript is disabled in our application. This hack works perfectly on Android, but unfortunately not on iOS.
Simply click on "Open" to reveal your image and change the link to "Close"; clicking on "Close" will hide the image and switch back to "Open".
You can also test it out on JSFiddle: https://jsfiddle.net/Ljuscaz8/
<div id="show">
<a href="#show" id="open" class="info-block-link"> Open</a>
<div id="content">
<a href="#hide" id="close" class="info-block-link-close"> Close </a>
</div>
</div>
Here's the corresponding CSS:
#content {
display: none !important;
}
#show:target #content {
display: inline-block !important;
}
#show:target #open {
display: none !important;
}