.overlayLayer {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    transition: all linear .25s;
    z-index: 99;
    background: var(--gray7);
    background: rgba(249, 249, 249, 0.9);
    backdrop-filter: blur(4px);
    display: none;
}

.overlayLayer.blackLayer {
    background: var(--gray1);
    background: rgb(24, 24, 24, .6);
}

.overlayLayer.active {
    display: block;
}

.overlayLayer .main {
    padding: 0 20px 8px;
    margin: 40px auto;
    box-sizing: border-box;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.overlayLayer .main.mainWide {
    padding: 0;
}

.overlayLayer .main .btnClose {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.overlayLayer .main .btnClose img {
    display: block;
    width: 100%;
}

.overlayLayer.blackLayer .main .btnClose img {
    color: var(--white);
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7418%) hue-rotate(256deg) brightness(114%) contrast(100%);
}


/* .overlayLayer .main .container {
    min-height: calc(100vh - 168px);
} */

.overlayLayer .main h2 {
    margin-bottom: 16px;
    text-align: center;
}

@media screen and (min-width: 1024px) {
    /* .overlayLayer {
        width: 640px;
    }
    .overlayLayer.active {
        right: calc(50% - 320px);
    } */
    .overlayLayer .main {
        max-width: 728px;
        margin: 128px auto 40px;
        padding: 0;
        max-height: calc(100vh - 168px);
    }
    .overlayLayer .main.mainWide {
        max-width: 1140px;
        margin: 0 auto;
    }
    .overlayLayer .main .btnClose {
        width: 72px;
        height: 72px;
        top: 28px;
        right: 32px;
    }
    .overlayLayer .main .container {
        min-height: calc(100vh - 308px);
        margin-bottom: 28px;
    }
}