Insight into the structural dynamics of light sensitive proteins from time-resolved crystallography and quantum chemical calculations.