Hello! Here is what faced. It is necessary to shove a lightbox in ad-gallery. The fact is that I know jquery very poorly (I can only put the script on the site and configure it). The gallery is displayed via jquery, I added a link, but it feels like ad-gallery and lightbox are in conflict. When you open the gallery and try to open the picture, it opens as just a picture without js.
Try, when the page loads, launch the "Error console" ( Shift + Ctrl + J ) in FireFox or look at Resources (right mouse button -> "View item code" -> Resources button) in Chrome - they quite clearly show these conflicts.
When you find a problem variable, try changing its name throughout the ad-gallery script source, if the lightbox is written in jquery (phantom, prototype or any other framework), or in the lightbox, if it is in pure js.