Stereochemical Constraints and Lattice Relaxation in Crystal Photochemistry