In which sentence are the italicized words a dangling modifier?
A. Arriving ten minutes late, the store was closed for the night.
B. Gazing at the night sky, the young woman made a wish on a star.
C. Resting on the sea bottom, the old trunk held many coins.
D. Not knowing the danger, the soldiers marched into the trap.