They're certainly not Russia-aligned. They've never liked each other, and Turkey has been crucial in strengthening Ukraine's defense with their Bayraktars.
They are not aligned, but they deal with the Ukraine conflict in a very pragmatic way. On the one side they are delivering drones to Ukraine, which have proven to be one of the more effective weapons agains the Russian army, on the other hand they will accept Russian tourists into the country this summer.
IMHO Erdogan still owes Putin a favor for being tipped off on the 2016 Turkish coup d'état attempt.
There's a subtle difference. The straits weren't "closed", one of the Russian ships was allowed passage because its home port was registered as Sevastopol prior to the present conflict.
"pursuant to the terms of the agreement, Turkey cannot block Russian warships based in the Black Sea from returning to their registered base."
I don't understand what point you are trying to make. Are you saying Turkey should have gone against the rules based international order and blocked Black Sea based ships?
Turkey was under no obligation to do anything. Yet they closed the straits to Russian ships to the extent that they possibly could.