The Prince of Wales has joined Scotland's newly elected MSPs at a special ceremony before the first sitting of the new Scottish Parliament.
The Kirking of the Parliament was held at St Giles' Cathedral in Edinburgh to mark the start of Holyrood's fifth session.
Nicola Sturgeon intends to lead a minority government after her party won 63 of the 129 seats in last week's election.
The evening service was attended by Charles, Duke of Rothesay, the new MSPs, representatives from organisations across Scotland, the diplomatic corps, faith groups and other guests.
The event came ahead of Thursday's opening session of parliament, when the new members will be sworn in. The new presiding officer and two deputies will also be elected.
St Giles' minister the Reverend Calum MacLeod led the service, which also included a reading by the Parliament's outgoing presiding officer Tricia Marwick, as well as interfaith blessings and a sermon by the Right Reverend Dr Angus Morrison, Moderator of the General Assembly of the Church of Scotland.
Music was provided by the National Youth Jazz Orchestra of Scotland, musicians from the Royal Conservatoire of Scotland and the choir of St Giles' Cathedral.
In his sermon, Rev Morrison congratulated those who have just been elected to such high office, but added that "I might want to remind the MSPs that the real boss is the people who elected them".
He highlighted challenges facing society including poverty, homelessness and loneliness, as he called for cross-party cooperation where possible.
"I appeal to all of you whom the citizens of this country have elected to serve as members of the Scottish Parliament to remember there will be times when party loyalty can be set aside in exchange for working together harmoniously and constructively for the good of Scotland and its people," he said.
Later, Scotland's party leaders greeted the Duke of Rothesay.
The Prince of Wales meets Scottish Conservative Party Leader Ruth Davidson (left) and First Minister Nicola Sturgeon
Ms Sturgeon was first in line to meet Charles at the city's Parliament Hall, now part of the Court of Session building.
He also met Ruth Davidson of the Conservatives, Labour's Kezia Dugdale, and Liberal Democrat leader Willie Rennie.
The royal guest and the politicians shook hands and chatted for several minutes before heading into a private reception.
Greens co-convenor Patrick Harvie was invited but did not attend.
Why are you making commenting on The Herald only available to subscribers?
It should have been a safe space for informed debate, somewhere for readers to discuss issues around the biggest stories of the day, but all too often the below the line comments on most websites have become bogged down by off-topic discussions and abuse.
heraldscotland.com is tackling this problem by allowing only subscribers to comment.
We are doing this to improve the experience for our loyal readers and we believe it will reduce the ability of trolls and troublemakers, who occasionally find their way onto our site, to abuse our journalists and readers. We also hope it will help the comments section fulfil its promise as a part of Scotland's conversation with itself.
We are lucky at The Herald. We are read by an informed, educated readership who can add their knowledge and insights to our stories.
That is invaluable.
We are making the subscriber-only change to support our valued readers, who tell us they don't want the site cluttered up with irrelevant comments, untruths and abuse.
In the past, the journalist’s job was to collect and distribute information to the audience. Technology means that readers can shape a discussion. We look forward to hearing from you on heraldscotland.com
Comments & Moderation
Readers’ comments: You are personally liable for the content of any comments you upload to this website, so please act responsibly. We do not pre-moderate or monitor readers’ comments appearing on our websites, but we do post-moderate in response to complaints we receive or otherwise when a potential problem comes to our attention. You can make a complaint by using the ‘report this post’ link . We may then apply our discretion under the user terms to amend or delete comments.
Post moderation is undertaken full-time 9am-6pm on weekdays, and on a part-time basis outwith those hours.
Read the rules here