If the total wattage of the fixture on the wire is 100 Watts or less, you can run 12-gauge about 100 feet without issues. Direct burial helps prevent weather related problems over time, and you should check that your wire is listed.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.