@media all and (min-width: 800px) {

    /* Give space around main area */
    .fancybox-custom-layout .fancybox-outer {
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        margin: auto;
        max-width: 100%;
        max-height: 100%;
        overflow: visible;
        background: #fff;
        box-shadow: 10px 10px 15px rgba(0,0,0,0.3);
        transition: opacity .3s;
    }

    /* Make it to fade-out while closing */
    .fancybox-custom-layout.fancybox-is-closing .fancybox-outer {
        opacity: 0;
    }

    /* Set color for background element */
    .fancybox-custom-layout .fancybox-bg {
        background: #000;
    }

    .fancybox-custom-layout.fancybox-is-open .fancybox-bg {
        opacity: 1;
    }

    /* Move caption area to the right side */
    .fancybox-custom-layout .fancybox-caption-wrap {
        top: 0;
        right: 44px;
        bottom: 0;
        left: auto;
        width: 330px;
        padding: 0;
        background: #fff;
        pointer-events: all; /* Make text selectable */
        border-right: 1px solid rgba(255,255,255,.08);
    }

    /* Adjust content area position */
    .fancybox-custom-layout .fancybox-stage {
        right: 380px;
    }

    /* Remove top border from the caption */
    .fancybox-custom-layout .fancybox-caption {
        padding: 16px;
        border: 0;
    }

    /* Align buttons at the right side  */
    .fancybox-custom-layout .fancybox-toolbar {
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 44px;
        background: #333;
        border-left: 1px solid #222;
    }

    /* Remove background from all buttons */
    .fancybox-custom-layout .fancybox-button,
    .fancybox-custom-layout .fancybox-navigation button:before {
        background: transparent;
    }

    /* Change arrow color */
    .fancybox-custom-layout .fancybox-navigation button {
        color: #fff !important;
        padding: 10px;
    }

    /* Reposition arrows */
    .fancybox-custom-layout .fancybox-button--arrow_left {
        left: 0px;
    }

    .fancybox-custom-layout .fancybox-button--arrow_right {
        right: 380px;
    }

    .fancybox-custom-layout.fancybox-show-thumbs .fancybox-button--arrow_right {
        right: -272px;
    }

}

.fancybox-caption h3{
    font-size: 14px;
    margin: 0px;
    color: #000;
float:left;
margin-left:10px;
width:75%;
}

.fancybox-caption .company-info img{
        /* display: none; */
    width: 40px;
    height: 40px;
    float: left;
    border-radius: 100%;
    overflow: hidden;
    border: 1px solid #ddd;

}
.fancybox-caption .company-info{
    border-bottom: 1px solid silver;
    margin-bottom: 0px;
padding-bottom:16px;
width:100%;
float: left;

}
.fancybox-caption b{
    text-transform: uppercase;
    text-align: center;
    display: block;
    border-bottom: 1px solid silver;
    margin-bottom: 10px;
   padding: 5px 0px;
float:left;
width:100%;
}

/* khixar jawaid*/
.fancybox-stage {
    background: #000;
}
.fancybox-caption
{
color:#000;
}
@media (max-width: 768px) {
.fancybox-slide .fancybox-image-wrap
{
float: left;
    position: relative;
    top: 0;
    left: auto;
       margin: -130px auto;
}
.fancybox-caption-wrap {
  margin: 370px auto 0px auto;
    position: relative;
    padding-top: 0px;
    background: #ffffff;
    width: 95%;
}
.fancybox-navigation button
{
top:30%;
}
.fancybox-toolbar {
    width: 100%;
    background: #00000075;
padding-left: 15px;
}
.fancybox-toolbar .fancybox-button {
    background: transparent;
}
.fancybox-outer {
    top: 20px;
}
}
/* khixar jawaid*/
.gallery-item {
    padding: 2px;
}