Refactored px fallback for rems