Environmental variation shapes sexual dimorphism in red deer.