In recent decades, same-sex marriage has become legal in many countries, including the United States, Canada and parts of Europe.