Real-space origin of topological band gaps, localization, and reentrant phase transitions in gyroscopic metamaterials.