Ankles

What looks like knees are really the flamingo’s ankles. Their knees are tucked up under their bodies.