The Great Barrier Reef shrank by more than half between 1995 and 2017, primarily due to climate change.