Switch from Leaflet popup to Bootstrap modal on smaller devices.