If there is any consolation to be had, it is that the closeness of the vote might mean that we are just one election cycle away from a popular vote somewhere in the country coming in pro-gay. It is easily within reach.
I suspect that an analysis of the Maine vote will show that older Mainers voted anti-gay and younger ones voted pro-gay. Older voters tend to die off. At most, we are one generation away from being rid of the oppression of god-fearing homophobes.