.backdrop { align-items: center; background: rgb(20 20 20 / 70%); display: flex; justify-content: center; height: 100%; left: 0; overflow: auto; pointer-events: all; position: fixed; top: 0; width: 100%; z-index: 10002; } .modal { background: #fff; max-width: 1000px; padding: 5.4rem 2.4rem 2.4rem; position: relative; width: 100%; @include media-breakpoint-up(sm) { padding: 4.2rem; width: 80%; } .close { position: absolute; top: 1.6rem; cursor: pointer; height: 18px; width: 16px; opacity: 1; padding: 0; right: 2.4rem; transition: opacity 0.3s; z-index: 1; @include media-breakpoint-up(sm) { right: 1.6rem; } svg { display: block; pointer-events: none; } &:hover { background: #000; .icon { filter: invert(1); } } .icon { height: 100%; width: 100%; } } &.narrow { width: 100%; @include media-breakpoint-up(sm) { max-width: 460px; } @include media-breakpoint-up(md) { width: 50%; } .close { right: 3.6rem; top: 12px; } } } .noPadding { background: none; padding: 0 2rem; } .maxHeight { display: flex; flex-direction: column; height: 90vh; }