A versatile method for fabricating Pancharatnam-Berry micro-optical elements.