Verified Answer :

it modifies an adjective.

if it is small it modifies dog if it is really it modifies small and that is an adverb