Metaphotonics and magic angles of polaritons in nanomaterials