Keep gallery if display within an active parent

If one of the parent of the gallery has an active class, then, when switching from another image on the thumbnails will "hide" the parent (and thus, the gallery). 
For example, if the gallery is inside of a tab-pane from Bootstrap, the parent has the "active" class also removed, none of the other tab-pane are active and nothing is displayed

Solution: target .least-gallery li a.active only