Exploiting Synthetic Dimensions and Four-Dimensional Topology for Tailoring Higher-Order Topological Modes