Refactored caption style scaling