Scotland's first appearance at a major international tournament for 23 years ended in more heartbreak as they were eliminated from Euro 2020 on Tuesday.
Nikola Vlasic opened the scoring after just 17 minutes with a low shot into the corner past David Marshall following Ivan Perisic's knockdown.
But Scotland got back on level terms just minutes before half time as Callum McGregor hit a piledriver from just outside the area into the bottom corner.
Modric unleashed a delightful shot with the outside of his boot into the top corner of the net from 20 yards. It was the latest moment of genius in the 35-year-old's legendary career.
And Modric was involved again 12 minutes from time as Croatia put the game to bed with a third goal. The Real Madrid star's corner was glanced home from Perisic to complete a 3-1 scoreline.
Raheem Sterling got the home side off to a bang, heading home early on from a delightful chipped cross from Jack Grealish.
Czech Republic are guaranteed a spot in the last 16 as one of the best third-placed teams.