In the far distance: Edinburgh
Alternate shot
@andrewducker I thought the angle was right for Aberdour and now you have removed all doubt!
@peterbrown The alternate shot was, indeed, on the train going past Aberdour. The first one was from Burntisland beach. Excellent spot!