Dewetting transitions in protein cavities