html,body{
    min-height: 100vh;
    width: 100%;
}
#popup {
    background-color: transparent;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    justify-content: center;
    align-items: center;
    min-width: 100vw !important;
    min-height: 100vh;
    opacity: 0 !important;
}

#popup.show-me {
    opacity: 1 !important;
    pointer-events: none;
    display: flex !important;
}

#popup .button.b-close {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 99999;
    background-color: #00000040;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
}
#popup .button.b-close:hover:before,
#popup .button.b-close:hover:after {
    background-color: #ff0000;
}
#popup .button.b-close:before,
#popup .button.b-close:after {
    content: "";
    position: absolute;
    width: 80%;
    height: 2px;
    background-color: #fff;
    transform: rotate(45deg);
}
#popup .button.b-close:after {
    transform: rotate(-45deg);
}

#popupDetay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.popup-items {
    padding-left: 12.5%;
    display: flex;
    width: 100%;
    height: 100%;
}

.popup-items a {
    display: flex;
    pointer-events: all;
}

.popup-items .owl-stage {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-items.single-popup {
    padding: 0;
    width: 95%;
    max-height: 95%;
    position: absolute;
    justify-content: center;
    align-items: center;
}

.popup-items.single-popup img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
}
.popup-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 16px;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    max-height: 89vh;
    overflow: auto;
    pointer-events: all;
    position: relative;
}
#popupDetay .popup-item p {
    margin: 0;
}

.popup-item a {
    display: flex;
    pointer-events: all;
    width: 100%;
    height: 100%;
    max-width: 70vw !important;
    max-height: 90vh !important;
    border-radius: 16px;
    overflow: hidden;
}
.popup-item .gunLists a {
    display: inline-block;
    border-radius: 0;
}
#popupDetay .owl-stage-outer {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    padding-left: 12.5%;
}

#popupDetay .owl-item {
    opacity: 0;
    transform: scale(0.6);
    -ms-transform: scale(0.6);
    transition: all .2s;
    -webkit-transform: all .2s;
    z-index: 1;
}

#popupDetay .active {
    opacity: 0.5;
}

#popupDetay .active.middle_beside {
    transform: scale(0.8);
    -ms-transform: scale(0.8);
    opacity: 0.8;
    z-index: 2;
}

#popupDetay .active.middle_beside.next-slide {
    margin-left: -20%;
}

#popupDetay .active.middle_beside.prev-slide {
    margin-right: -20%;
}

#popupDetay .active.middle {
    transform: scale(1);
    -ms-transform: scale(1);
    opacity: 1;
    z-index: 3;
}

#popupDetay .active.next_to_mid {
    margin-left: -25%;
    z-index: 1;
}

#popupDetay .active.prev_to_mid {
    margin-right: -25%;
    z-index: 1;
}

#popupDetay .owl-nav,
#popupDetay .owl-dots {
    display: none;
}

.popup-nav-C {
    position: absolute;
    bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 50px;
    z-index: 9;
    pointer-events: all;
}

#popupDetay .prev,
#popupDetay .next {
    left: 0;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    text-align: center;
    line-height: 50px;
    color: #fff;
    background: #777;
    cursor: pointer;
    z-index: 5;
    margin: 0 16px;
    flex-shrink: 0;
}

#popupDetay .next {
    left: calc(100% - 100px);
}

.no_select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@media only screen and (max-width: 1366px) {
    #popupDetay .active.middle {
        transform: scale(1.5);
    }

    #popupDetay .active.middle_beside {
        transform: scale(1.2);
    }

    #popupDetay .active.middle_beside.next-slide {
        margin-left: -10%;
    }
}

@media only screen and (max-width: 768px) {
    #popupDetay .active.middle {
        transform: scale(2);
    }

    #popupDetay .active.middle_beside {
        transform: scale(1.5);
    }

    #popupDetay .active.middle_beside.next-slide {
        margin-left: -10%;
    }
}

@media only screen and (max-width: 640px) {
    .popup-nav-C {
        display: none;
    }

    #popupDetay .active.middle {
        transform: scale(2.4);
    }

    #popupDetay .active.middle_beside {
        transform: scale(1.5);
    }

    #popupDetay .active.middle_beside.next-slide {
        margin-left: 0;
    }
}