Implemented search functionality for all galleries.