Stability and singularities of relative hypersurfaces