Device Dependent Pagination Needed.

I need to be able to adjust thumbnail pagination depending on the device the gallery is viewed on.
Desktop: 4 columns, 8 thumbnails. This equals 2 rows of 4.
Vertical Phone: 1 column, 1 thumbnail.
I do not want 8 rows of 1 thumbnail on the phone.

Replies are visible only to logged in members with an active subscription.