Wherever you looked, they were wearing the same dress.

Literal

They [topic-は] wherever looked [even-ても] same dress [object-を] wearing.

どこを見ても means 'wherever you looked.' 同じドレスを着ていた means 'were wearing the same dress.' An observation about uniformity.