It looks like you (or someone) has made some changes to the theme code so you’re getting some JavaScript errors. These errors will be preventing the intended image viewer to work, and is defaulting to the direct image link.
If you hired someone to make the changes it’s certainly worth getting them to take another look to resolve those errors.
If you did the edits yourself did you happen to make a copy of the theme before the changes got made?