Microcavity-assisted multi-resonant metasurfaces enabling versatile wavefront engineering | Synapse