Two-thirds of people support the legalisation of same-sex marriage, a report has revealed.
About half of people (49%) who have a religious faith also back the move, according to the Living Together report by Stonewall Scotland.
The Scottish Government is likely to make a decision on the issue when members of the cabinet meet in Edinburgh on July 10. Almost 80,000 people responded to the Government's consultation on same-sex marriage. It closed in December and responses are still being analysed.
At the start of the consultation, the Government said it "tends towards the view" that same-sex marriage should be introduced, although faith groups and their celebrants should not be obliged to solemnise the ceremonies.
Stonewall's report shows that 66% blame religious attitudes for prejudice against gay people in Scotland, followed closely by not enough acceptance in the workplace or at school, and parental attitudes.
A YouGov survey of almost 2,000 people, commissioned by Stonewall, said three in five respondents believe lesbian, gay, bisexual and transgender people in Scotland endure prejudice, with 83% saying that this should be addressed. Around three-fifths (58%) of people aged 18-29 said homophobic bullying exists at their school.
Colin Macfarlane, director of Stonewall Scotland, said: "There is a long way to go before we can say 21st-century Scotland is truly tolerant but it is clear that people expect brave and bold leadership to transform Scotland into the kind of country we can be proud of and want to live in."
Jackie Baillie MSP, Scottish Labour spokeswoman for health and well-being, said: "This report shows both how far Scotland has come in changing attitudes towards the LGBT (lesbian, gay, bisexual and transgender) community, but also the challenges that still remain before full equality is achieved."
Scottish Liberal Democrat leader Willie Rennie said: "The poll reaffirms that whilst many Scots are strong supporters of equality across all sections of society, much more must be done to eradicate homophobic discrimination from schools, workplaces and social groups.
"It is our collective responsibility as a society to stand up against homophobic behaviour and attitudes. With 65% in favour, equal marriage is the right and natural step towards the modern, tolerant and progressive Scotland we all want to see."