Made styles more compatible with different post types