Replaced CSS manipulation with data attributes