Please customize selectos so that the script does not look for the 'closest' Figure element, but a custom class name, as the thumbnails of a group could be in different divs (ie a layout grid) and Figure tags could be not near each other. Also a custom selector for click actions not necessarely A href tag..
Agree with this. I would like the figure elements to be able to be replaced with divs. I want to use bootstrap for my page and i'm having really hard time right now with those figure tags .. : )
P.S. Great job, Dmitry ^^ I love your photoswipe library.