How is the underlined gerund phrase used in the sentence?

Sitting on the porch is enjoyable on a cool summer evening.

A.object of a preposition


B.direct object


C.predicate nominative


D.subject