jQuery: Changed var search & var txt from global to local scope
Added @media calls for mobile view of gallery