A simple flexbox based thumbnail gallery Working example Images are loaded using async await and the fetch api from a JSON file. Simply change the image url's in the JSON file or fetch from your chosen api. Escape key closes modal Arrow keys change modal image