Late-stage pregnancy reduces upper thermal tolerance in a live-bearing fish.