.edit-script-modal { &__hide-main { visibility: hidden; } } // since this modal shows only while anotheris also showing, suppress background for one of them to // prevent "double-darkening" .modal__background:has(.edit-script-modal.edit-script-modal__hide-main) { visibility: hidden; }