#facebox {
    position: fixed;
    /*    top: 0;*/
    top: 100px;
    left: 0;
    z-index: 100;
    text-align: left;
}


#facebox .popup {
    position: relative;
    padding: 30px;
    /*border: 3px solid rgba(0, 0, 0, 0);
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 0 18px rgba(0, 0, 0, 0.4);
-moz-box-shadow: 0 0 18px rgba(0, 0, 0, 0.4);
box-shadow: 0 0 18px rgba(0, 0, 0, 0.4);*/
}

#facebox .content {
    /*display: table;*/
    /*    width: 370px;*/
    /*width: 100%;
    padding: 10px;
    background: #fff;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;*/
    box-shadow: 0 0px 20px 3px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 0px 20px 3px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 0px 20px 3px rgba(0, 0, 0, 0.1);
    /*display: table;*/
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    margin: 0 auto;
    /*position: relative;
    overflow: hidden;
    min-width: 350px;
    min-height: 150px;*/
    width: 25vw;
    /*margin: 15vh auto;*/

}

#facebox .content.table-content {
    width: 50vw;
}


@media(max-width:1024px) {
    #facebox .popup {
        padding: 0;
        width: 50vw;
    }

    #facebox .content,
    #facebox .content.table-content {
        width: 100%;
    }
}

@media(max-width:992px) {
    #facebox .popup {
        padding: 0;
        width: 85vw;
    }

    #facebox .content,
    #facebox .content.table-content {
        width: 100%;
    }
}

#facebox .sectionhead {
    padding: 15px 0;
}

#facebox.profile-popup .content {
    width: 100%;
}

#facebox.profile-popup a.close {
    /*background: rgba(0, 0, 0, 0) url("images/whtclose-icn.png") no-repeat scroll center center;*/
    display: block;
    float: right;
   /* height: 7px;
    width: 7px;*/
	/*Commented because of edit profile image popup*/
}

#facebox .content > p:first-child {
    margin-top: 0;
}

#facebox .content > p:last-child {
    margin-bottom: 0;
}

#facebox .close,
.dialog_box .close {
    position: absolute;
    top: -5px;
    right: -40px;
    padding: 12px;
    background: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;

}

@media(max-width:992px) {

    #facebox .close,
    .dialog_box .close {
        top: 0;
        right: 0;
    }
}


#facebox .close img {
    opacity: 0.8;
}

#facebox .close:hover img {
    opacity: 1.0;
}

#facebox .loading {
    text-align: center;
}

#facebox .image {
    text-align: center;
}

#facebox img {
    border: 0;
    margin: 0;
}

#facebox_overlay {
    position: fixed;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
}

.facebox_hide {
    z-index: -100;
}

.facebox_overlayBG {
    background-color: #000;
    z-index: 99;
}

#facebox .popup {
    position: relative;
    /* width: 350px;*/
}

#facebox .popup .post-image-slider img {
    max-height: 800px;
    margin: auto;
}

.post-image-slider .slick-initialized .slick-track {
    display: flex;
    align-items: center;
    justify-content: center;
}


/*===========FACEBOX IMAGE POPUP===============*/
.img-container {
    position: relative;
}

.img-container .inst-btn {
    display: flex;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 1;
    color: #333;
    justify-content: center;
}

.instruction-panel {
    position: relative;
}

.instruction-panel .link-close {
    z-index: 10;
    width: 30px;
    height: 30px;
    position: absolute;
    right: 0px;
    top: 0px;
    text-align: center;
    line-height: 18px;
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.instruction-panel .link-close:before {
    width: 3px;
    height: 15px;
    left: 50%;
    margin: 0 0 0 -1px;
    position: absolute;
    top: 8px;
    content: "";
    background: #333;
}

.instruction-panel .link-close:after {
    width: 15px;
    height: 3px;
    left: 8px;
    top: 50%;
    margin: -1px 0 0 0;
    position: absolute;
    content: "";
    background: #333;
}

.instruction-panel .two-panel-wrap {
    position: absolute;
    top: 100%;
    z-index: 1;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.15);
    display: none;
}

.instruction-panel .two-panel-wrap:before {
    content: " ";
    height: 0;
    left: 50%;
    pointer-events: none;
    position: absolute;
    z-index: 1;
    top: -8px;
    width: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff;
    transform: translate(-50%, 0);
    -moz-transform: translate(-50%, 0);
    -webkit-transform: translate(-50%, 0);
}

@media(max-width:767px) {
    .instruction-panel .two-panel-wrap .cropText {
        font-size: 13px;
    }


    .instruction-panel .two-panel-wrap ul li {
        font-size: 13px;
    }

    .dialog_box_wrap .themeBtn {
        margin: 10px 0;
    }
}

#facebox.profile-popup .body {
    min-height: 250px;
    background: transparent;
}

@media(max-width:768px) {
    #facebox.profile-popup .content {
        max-height: 90vh;
        overflow-x: auto;
    }
}
