High-contrast gratings (HCGs) comprise periodic subwavelength structures formed by alternating high and low refractive index materials. They have emerged as ultracompact alternatives to conventional ...