Why would it mean anything different before the Sun than after? Before the sun was created it ALSO says "evening and morning, another day." What aspect of the Hebrew text leads you to believe it must be something else? There is no good reason from the text to adopt any other meaning than a 24 hour day.
There is no good reason from the text to insist that a ‘yom’ without a Sun - evening and morning no less - was exactly 24 hours.
A morning and an evening without a Sun doesn't sound like a literal “day” to anyone thinking logically.