FR 2972 then FR 812 at Dublin
Kaunas → Dublin → Edinburgh
Timetable, Dublin time
23:10FR 2972 from Kaunas at the gate
15:35FR 812 to Edinburgh leaves the gate
16 h 25 apart on the timetable, overnight
FR 812 leaves 16 h 25 after FR 2972 arrives on the timetable: more than half a day, so not a connection we count.