Modified to swap dark/light class on body when sections change.