.carousel{
    height: 50%;
    height: auto;
}

.item,
.active,
.carousel-inner{
    height: 100%;
}

.item .carousel-conten{
    color: #fff;
    position: absolute;
    top: 1px;
}

.item .carousel-conten img{
    left: 30%;
    position: relative;
    width: 40%;
}

.item .carousel-conten p{
    left: 5%;
    /*font-size: 70%;*/
    position: relative;
    right: 5%;
    width: 90%;
}

.fill{
    background-position: center;
    -o-background-size: cover;
       background-size: cover;
    height: 100%;
    width: 100%;
}

.carousel-inner > .item > a > img,
.carousel-inner > .item > img,
.img-responsive,
.thumbnail a > img,
.thumbnail > img{
    display: block;
    height: auto;
    max-width: 100%;;
}

.img-rounded{
    border-radius: 6px;
}

@media screen and (min-width:768px){
    .carousel-control .glyphicon-chevron-left,
    .carousel-control .glyphicon-chevron-right,
    .carousel-control .icon-next,
    .carousel-control .icon-prev{
        color: #fff;
        font-size: 90px;
        height: 30px;
        margin-top: -15px;
        width: 30px;
    }
    .carousel-control .glyphicon-chevron-left,
    .carousel-control .icon-prev{
        margin-left: -15px;
    }
    .carousel-control .glyphicon-chevron-right,
    .carousel-control .icon-next{
        margin-right: -15px;
    }
    .carousel-caption{
        left: 20%;
        padding-bottom: 30px;
        right: 20%;;
    }
    .carousel-indicators{
        bottom: 20px;
    }
    .carousel{
        position: relative;
    }
    .carousel-inner{
        overflow: hidden;
        position: relative;
        width: 100%;;
    }
    .carousel-inner > .item{
        display: none;
        position: relative;
        -webkit-transition: .6s ease-in-out left;
           -moz-transition: .6s ease-in-out left;
             -o-transition: .6s ease-in-out left;
                transition: .6s ease-in-out left;
    }
    .carousel-inner > .item > a > img,
    .carousel-inner > .item > img{
        line-height: 1;
    }
}

@media screen and (max-width:767px){
    .carousel-control .glyphicon-chevron-left,
    .carousel-control .glyphicon-chevron-right,
    .carousel-control .icon-next,
    .carousel-control .icon-prev{
        font-size: 30px;
        height: 30px;
        margin-top: -15px;
        width: 30px;;
    }
    .carousel-control .glyphicon-chevron-left,
    .carousel-control .icon-prev{
        margin-left: -15px;
    }
    .carousel-control .glyphicon-chevron-right,
    .carousel-control .icon-next{
        margin-right: -15px;
    }
    .carousel-caption{
        left: 20%;
        padding-bottom: 30px;
        right: 20%;;
    }
    .carousel-indicators{
        bottom: 20px;
    }
    .carousel{
        position: relative;
    }
    .carousel-inner{
        overflow: hidden;
        position: relative;
        width: 100%;;
    }
    .carousel-inner > .item{
        display: none;
        position: relative;
        -webkit-transition: .6s ease-in-out left;
           -moz-transition: .6s ease-in-out left;
             -o-transition: .6s ease-in-out left;
                transition: .6s ease-in-out left;
    }
    .carousel-inner > .item > a > img,
    .carousel-inner > .item > img{
        line-height: 1;
    }
}

@media all and (transform-3d),
(-webkit-transform-3d){
    .carousel-inner > .item{
        -webkit-transition: -webkit-transform .6s ease-in-out;
           -moz-transition:         transform .6s ease-in-out;
             -o-transition:         transform .6s ease-in-out;
                transition: -webkit-transform .6s ease-in-out;
                transition:         transform .6s ease-in-out;
                transition:         transform .6s ease-in-out, -webkit-transform .6s ease-in-out;

        -webkit-backface-visibility: hidden;
                backface-visibility: hidden;
        -webkit-perspective: 1000;
                perspective: 1000;
    }
    .carousel-inner > .item.active.right,
    .carousel-inner > .item.next{
        left: 0;
        -webkit-transform: translate3d(100%, 0, 0);
           -moz-transform: translate3d(100%, 0, 0);
            -ms-transform: translate3d(100%, 0, 0);
             -o-transform: translate3d(100%, 0, 0);
                transform: translate3d(100%, 0, 0);
    }
    .carousel-inner > .item.active.left,
    .carousel-inner > .item.prev{
        left: 0;
        -webkit-transform: translate3d(-100%, 0, 0);
           -moz-transform: translate3d(-100%, 0, 0);
            -ms-transform: translate3d(-100%, 0, 0);
             -o-transform: translate3d(-100%, 0, 0);
                transform: translate3d(-100%, 0, 0);
    }
    .carousel-inner > .item.active,
    .carousel-inner > .item.next.left,
    .carousel-inner > .item.prev.right{
        left: 0;
        -webkit-transform: translate3d(0, 0, 0);
           -moz-transform: translate3d(0, 0, 0);
            -ms-transform: translate3d(0, 0, 0);
             -o-transform: translate3d(0, 0, 0);
                transform: translate3d(0, 0, 0);
    }
}

.carousel-inner > .active,
.carousel-inner > .next,
.carousel-inner > .prev{
    display: block;
}

.carousel-inner > .active{
    left: 0;
}

.carousel-inner > .next,
.carousel-inner > .prev{
    position: absolute;
    top: 0;
    width: 100%;
}

.carousel-inner > .next{
    left: 100%;
}

.carousel-inner > .prev{
    left: -100%;
}

.carousel-inner > .next.left,
.carousel-inner > .prev.right{
    left: 0;
}

.carousel-inner > .active.left{
    left: -100%;
}

.carousel-inner > .active.right{
    left: 100%;
}

.carousel-control{
    bottom: 0;
    color: #fff;
    font-size: 20px;
    left: 0;
    position: absolute;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
    top: 0;
    width: 15%;
}

.carousel-control.left{
    background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .5) 0, rgba(0, 0, 0, .0001) 100%);
    background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .5)), to(rgba(0, 0, 0, .0001)));
    background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .5)), to(rgba(0, 0, 0, .0001)));
    background-image:         linear-gradient(to right, rgba(0, 0, 0, .5) 0, rgba(0, 0, 0, .0001) 100%);
    background-repeat: repeat-x;

    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);;
}

.carousel-control.right{
    background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .0001) 0, rgba(0, 0, 0, .5) 100%);
    background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .0001)), to(rgba(0, 0, 0, .5)));
    background-image:         linear-gradient(to right, rgba(0, 0, 0, .0001) 0, rgba(0, 0, 0, .5) 100%);
    background-repeat: repeat-x;
    left: auto;
    right: 0;

    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);;
}

.carousel-control:focus,
.carousel-control:hover{
    color: #fff;
    opacity: .9;
    outline: 0;
    text-decoration: none;

    filter: alpha(opacity=90);;
}

.carousel-control .glyphicon-chevron-left,
.carousel-control .glyphicon-chevron-right,
.carousel-control .icon-next,
.carousel-control .icon-prev{
    display: inline-block;
    position: absolute;
    top: 50%;
    z-index: 5;;
}

.carousel-control .glyphicon-chevron-left,
.carousel-control .icon-prev{
    left: 50%;
    margin-left: -10px;
}

.carousel-control .glyphicon-chevron-right,
.carousel-control .icon-next{
    margin-right: -10px;
    right: 50%;;
}

.carousel-control .icon-next,
.carousel-control .icon-prev{
    font-family: serif;
    height: 20px;
    line-height: 1;
    margin-top: -10px;
    width: 20px;;
}

.carousel-control .icon-prev:before{
    content: '\2039';
}

.carousel-control .icon-next:before{
    content: '\203a';
}

.carousel-indicators{
    bottom: 10px;
    left: 50%;
    list-style: none;
    margin-left: -30%;
    padding-left: 0;
    position: absolute;
    text-align: center;
    width: 60%;
    z-index: 15;;
}

.carousel-indicators li{
    background-color: #000;
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid #fff;
    border-radius: 10px;
    cursor: pointer;
    display: inline-block;
    height: 10px;
    margin: 1px;
    text-indent: -999px;
    width: 10px;;
}

.carousel-indicators .active{
    background-color: #fff;
    height: 12px;
    margin: 0;
    width: 12px;;
}

.carousel-caption{
    bottom: 20px;
    color: #fff;
    left: 15%;
    padding-bottom: 20px;
    padding-top: 20px;
    position: absolute;
    right: 15%;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
    z-index: 10;;
}

.carousel-caption .btn{
    text-shadow: none;
}

/*  Popup  */
#popup {
    /* display: block !important; */
    position:absolute;
    margin:0 auto;    
    top: 0;
    left: 0;
    box-shadow: 0px 0px 50px 2px #000;    
    width: 100% !important;
    height: 100%;
     background: rgba(0, 0, 0, 0.52);  
    z-index: 999999
}

#popup .panel-primary {
    width: 70%;
    margin: 10px auto;
    background: #FFF; 
    position:fixed;
     top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 0px 50px 2px #000;  
    overflow: hidden;
    overflow-y: scroll;
    height: 80vh;
    /* display:none;  */
}


#popup .panel-primary .content{
    
}
#popup video,
#popup img {
    width: 100%;
    height: auto;
}
#popup  .panel-footer .btn{    
    background-color: red !important;
    color: #fff !important;
    
}/*  Popup  */