Capillary buckling of a thin film adhering to a sphere