OK, well I'm not sure which css image viewer you're using. Could you post a link to the Dynamic Drive Demo page for it?
You might be able to get that by tapping anywhere else on the page, or by tapping on a link that goes nowhere, something like:
If the gallery is using focus:, either of those (if placed outside the gallery links) could cause a blur event when tapped. But there's no guarantee.
If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
And tell us which DD css gallery you're using (link to it).