Static and dynamic vortex transitions in clean YBa2Cu3O7