We use a solar cable with 4mm cable cross section area.
Distance between solar panels and inverter.
I would guess the cable distance between panels and inverter would be 15 meters.
As a result the total cable length in where the direct current flows is 30 meters outgoing and incoming cable.
Generally it is easier to keep the solar inverter close to the solar panels and have a longer length of ac cable to the grid connection.
But 500 feet is around 160 meters so with 3 phase power and a 20 kilowatt inverter the cable from the inverter to the grid connection would need a cross section of about 50 square millimeters to keep voltage rise to under 1.
But if the panels are wired in series which increases the voltage much longer wire runs can be done.
The ohmic resistance is.
Like microinverters power optimizers are located on the roof next to or integrated with individual solar panels.
I believe the closer the inverter is to your panels the less loss there is but at the same time the inverter needs to be kept in cool shaded for it to function optimally.
The shorter the better.
A panel located option to pair with a string inverter.