Base class for modals.