What is the meaning of Elegiac?

Of or relating to an elegy.

Expressing sorrow or mourning.

A poem composed in the couplet style of classical elegies: a line of dactylic hexameter followed by a line of dactylic pentameter.

elegiac

Source: wiktionary.org