Place each picture on the grid
Every entry sets four custom properties inline: --dmt-row (its row), --dmt-start and --dmt-span (its columns of 16) and --dmt-ratio (its shape, e.g. 4 / 3). Its year row takes the same --dmt-row. Alternate sides and widths so the line has room to breathe between them.
Put the title on the open side
Titles float on the right by default. For a picture that ends near the right edge, set data-dmt-side="left" on its entry. The script narrows any title that would run off the screen.
Keep titles short
Three to six words read well beside a picture. They only show on hover on wide screens, so the picture and year must carry the story on their own.
Give it full width
The line runs down the centre of the section and title widths are measured against the screen. Put it at full width in normal page flow.
Leave room after it
The line finishes when the bottom of the section reaches the middle of the screen. Give the page something below it, or the last year never lights up.