Custom dynamic modal class