Emergent spacetime from a Berry-inspired dynamical gauge field coupled to electromagnetism