Spread to zoom image
Pinch to close gallery
The gallery’s background will gradually fade out as the user zooms out. When the gesture is complete, the gallery will close.
Vertical swipe to close gallery
Gesture is added because close button in top right corner might be hard to reach on tall mobile devices while holding in one hand.
Horizontal swipe to switch items
Images can be changed even when current slide is zoomed. Swiping is not blocked during the transition.