Gallery: Giants mount comeback, put Cards on the brink