the cistercian monks originally wore black habits but , following a visionary visit of mary ( mother of jesus ) to st alberic , the habit was changed to white in accordance with the visitor 's virginal status .