Read the sentence.
My sister Darla has a diary with a gold lock.
What is the function of the phrase with a gold lock?
It is an adjective phrase modifying Darla.
It is an adjective phrase modifying sister.
It is an adjective phrase modifying diary.
It is an adjective phrase modifying My.