Not long ago, it was up to each state to decide whether gay marriage was legally recognized. Then, on June 26,…