#pop-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 640px;
    z-index: 100;
}

#pop-banner .pop-background {
    z-index: 1;
    background-color: rgba(0,0,0,0.65);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#pop-banner .pop-wrapper {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 100%;
    max-width: 1765px;
    max-height: 430px;
    box-sizing: border-box;
    transform: translate(-50%,-50%);
    padding: 15px;
}

#pop-banner .pop-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 45px
}

#pop-banner .pop-close {
    position: absolute;
    z-index: 3;
    top: -29px;
    right: -13px;
}

#pop-banner .pop-close img { width: 20px; }

.banner {
    max-width: 400px;
    max-height: 400px;
    position: relative;
}
.banner .banner-link {
    display: block;
    width: 100%;
    height: 100%;
    box-shadow: 0px 0px 7px 0px rgba(255, 255, 255, 0.3);
}

.banner .banner-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#pop-banner .separator {
    display: none;
}

@media screen and (max-width: 1700px)
{
    #pop-banner .pop-content {
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        height: auto;
        gap: 22px 44px;
    }

    #pop-banner .separator {
        display: flex;
        width: 100%;
        height: 0px;
    }

    #pop-banner .pop-wrapper {
        max-height: calc(100vh - 40px);
        width: calc(100% - 70px);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #pop-banner .pop-close { top: -6px; }

    .banner {
        width: 50vw;
        height: 50%;
    }

    .banner .banner-link {
        display: flex;
        width: 100%;
        height: 100%;
        box-shadow: none;
        align-items: flex-start;
    }
}

@media screen and (max-height: 820px)
{
    #pop-banner .pop-content {
        /*height: 100%;*/
    }
}

@media screen and (max-width: 950px)
{
    #pop-banner .pop-wrapper {
        width: 100vw;
        height: 100vh;
        padding: 0;
        max-height: 1680px;
        min-height: 640px;
    }

    #pop-banner .pop-content {
        width: 100%;
        height: 100%;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        gap: 15px;
        padding: 15px;
        box-sizing: border-box;
    }

    #pop-banner .separator {
        display: none;
    }

    #pop-banner .pop-close {
        top: 10px;
        right: 10px;
    }

    .banner {
        max-width: none;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .banner .banner-link {
        justify-content: center;
    }
}
