The SNP are set to take control of Midlothian Council after returning as the biggest party in the elections.
Both the SNP and Labour gained an extra seat as the Conservatives lost two, splitting the local authority with eight SNP, seven Labour and just three Conservative councillors returned.
Derek Milligan, who led the council's minority Labour administration, which had been in charge for the last five years despite not being the biggest party, said it would now be down to the SNP to decide what happens next.