Fix modal gallery on mobile