Yup, you get it.
In Europe, white was beautiful because it was an indication of good health. In Africa, Black was beautiful for the same reason. The darkest of Africans only get skin cancer on their palms and lower lips where the skin is the lightest...while Australia has the highest rate of skin cancer in the world. Lack of vitamin D causes scurvvy and numerous other disfiguring diseases. When Europeans covered up to keep warm, they severely decreased their intake (mfg) of vitamin D.
Eskimos didn't turn white because their diet is high in seafood which provides adequate vitamin D.