As used in the passage, what does the word complex mean?

Some paintings may be quite complex, with layers of meanings to them.

A. consisting of different and connected parts

B. a molecule in which one or more groups are linked to an atom

C. involving numbers or quantities containing different parts

D. difficult to analyze or comprehend