fix embed style inclusion and embed overflow handling