According to a Pew Research Center survey released Wednesday, Americans are split on same-sex wedding services and transgender bathroom use.

Pollsters surveyed more than 4,500 U.S. adults on issues that pit claims of religious liberty against nondiscrimination policies.

Nearly half of respondents (49%) said that “businesses that provide wedding services should be required to provide those services to same-sex couples just as they would to all other customers,” while 48 percent said that businesses should be “able to refuse to provide those services to same-sex couples if the business owner has religious objections to homosexuality.”

A narrow majority (51%) of respondents said that “transgender people should be allowed to use the public restrooms of the gender with which they currently identify,” while 46 percent said that transgender people “should be required to use the public restroom of the gender they were born into.”

Younger adults are generally more supportive of transgender bathroom choice. Pollsters found two-thirds support among adults under 30.