Temperature-dependent synchrotron X-ray diffraction, pair distribution function and susceptibility study on the layered compound CrTe3