Former prime minister Gordon Brown has led tributes at the funeral of Labour MSP Helen Eadie.
Mrs Eadie, who had been a member of the Scottish Parliament since it was established in 1999, died earlier this month at the age of 66.
Her death came just days after it emerged she was being treated for cancer.
Loading article content
Mrs Eadie was initially elected as the MSP for Dunfermline East but became the member for Cowdenbeath following boundary changes.
Hundreds of mourners attended her funeral service at Dalgety Bay Parish Church in Fife.
During the service, Mr Brown described Mrs Eadie as a "woman of the people" who had been "admired, respected and loved" by all who knew her and had "enhanced and enriched" thousands of lives.
He paid tribute to her "lifelong passion for social justice" and "her deeply-felt desire that every single person should have a fair chance".
Mr Brown, the MP for Kirkcaldy and Cowdenbeath, said: "It was her warmth in her dealings with everyone that marks her out as so special and we will never forget her friendly, bright, welcoming smile.
"There's a hero who lives among us, who gets on with doing good things, who is active beyond the call of duty and who unceremoniously makes a difference in our lives, asking for nothing in return.
"Helen was that person, that hero. Helen with that great way of making everyone she met feel special, with a great humility which made her too modest to see just how special she herself was.
"Helen, woman of the people, Helen believer in people and in the goodness of people, Helen influence for good, will forever live on in our hearts."
Mr Brown revealed that Mrs Eadie's ashes will be scattered on Inchcolm island in the Firth of Forth, overlooked by her family home in Dalgety Bay.
Parliamentary business at Holyrood was suspended for the afternoon to allow MSPs from all parties to attend the funeral.
First Minister Alex Salmond, Scottish Labour leader Johann Lamont, Scottish Conservative leader Ruth Davidson and Scottish Liberal Democrat leader Willie Rennie were among scores of MSPs present at the service.
Mrs Eadie's daughters Fiona and Jemma read an extract from the poem If by Rudyard Kipling and mourners, spilling into several of the church's rooms, sang the hymns Guide Me O Thy Great Jehovah, Will Your Anchor Hold and How Great Thou Art.
Robert Burns' Ae Fond Kiss was performed by Cathy Peattie, former Labour MSP for Falkirk East.
Baroness Ramsay of Cartvale paid tribute to her "impulsive, kind, warm and generous" friend during the service.
"The Scottish Parliament, Scottish Labour Party, her constituents and all of the causes she fought for are much the poorer for losing her," she said.
Mrs Eadie's coffin, draped in the Union flag, was carried from the church to the strains of Tina Turner's The Best.
After the service, Ms Lamont said: "The warmth of the response to Helen from right across Scottish politics and beyond is a testament to the high regard she was held by everyone who knew her.
"Her remarkable life before and after becoming an MSP in 1999 shows a person of real empathy, tenacity and will to speak up for those who need a voice.
"While her family will have the deepest sense of loss today, we know that the Labour movement has lost a good friend, Holyrood has lost a great parliamentarian and the people of Fife have lost a strong champion."
Ms Davidson paid tribute to a "wonderfully warm" woman who was a passionate campaigner with strong values and "a true champion for the people she represented".
Speaking after Mrs Eadie's death, Mr Salmond said the politician had served the people she represented ''diligently'' while Mr Rennie praised her "intense, burning commitment to socialism".
Mrs Eadie was born in Stenhousemuir, near Falkirk, and was educated at Larbert Village School, Larbert High and Falkirk Technical College.
She went on to graduate from the London School of Economics with a certificate in trade union studies. She worked as a member of Fife Regional Council before being elected to the former Dunfermline East constituency in 1999.
Mrs Eadie was an active member of the Church of Scotland and had served on the Scottish Parliament's Health, Transport, Public Petitions and European and External Relations Committees.
She campaigned for her newly-elected Labour colleague, Cara Hilton, in the Dunfermline by-election in the days before she was diagnosed with cancer and was later said to have been conducting parliamentary business from her hospital bed.

Comments & Moderation
We moderate all comments on Herald Scotland on either a pre-moderated or post-moderated basis. If you're a relatively new user then your comments will be reviewed before publication and if we know you well and trust you then your comments will be subject to moderation only if other users or the moderators believe you've broken the rules
Moderation is undertaken full-time 9am-6pm on weekdays, and on a part-time basis outwith those hours. Please be patient if your posts are not approved instantly.