Osmotic adjustment during water stress protects the photosynthetic apparatus against photoinhibition