Targeting first child from each row?

I have a gallery made up from a unsorted list. I would like to target the target the firt li (first-child) of each row. Is this possible?

Thank you in advance.

I found it:

#gallery li:nth-child(4n+1)