In fact, nearly all of the countries where homosexuality is technically still a capital crime are majority Muslim.
Nigeria is split between Christians in the south and Muslims in the north. Homosexuality only carries the death penalty for some states in the north.
Source: ILGA
In some countries where homosexuality is legal, there are still several laws in place that make living openly difficult.
In Russia for example, a federal law passed in 2013 makes it illegal to distribute "propaganda of nontraditional sexual relations." The country also makes it difficult for sexual orientation-related non-governmental organizations to operate in the country.
Under the 2012 foreign agent law, all organizations that receive any sort of funding from abroad must register as a foreign agent or else be fined.
Maximum, an organization that operates in the country to help the LGBT community, was fined about 300,000 rubles (about $4,500 USD) in 2015 for refusing to heed the law because they thought it undermined the work that their employees do.
Sources: Wall Street Journal, IGLA
Only about 13% of UN member countries have legalized gay marriage.
A few others — including Peru, Italy and Greece — have only legalized civil unions for same-sex partners so far.
Source: ILGA
Same-sex couples largely aren't allowed to adopt outside of the Americas and Europe.
South Africa, Australia, and New Zealand are exceptions to the rule.
Joint adoption means a same-sex couple can adopt a child together. Second-parent adoption means that one member of a same-sex couple can adopt their partner's child (such as when one member of a lesbian couple gives birth).
Source: ILGA