In today's mastodon.social update we have significantly improved the media overlay in Mastodon's web app. You can double-tap to zoom in and out instead of clicking the 1:1 button, and panning and pinch-to-zoom work a lot smoother on touch devices. You can also finally swipe up or down to close the overlay.