
@media only screen and (max-width: 768px) {
    .carousel-content img {
        height: 300px;

    }
  }

  @media (min-width: 100px) and (max-width: 400px){
        #filter li {
            width: 100%;
            text-align: center;
            margin: 5px 1px -3px !important;
        }
        #filter li a {
            width: 100%;
            display: inline-block;
        }
    }
    @media (min-width: 400px) and (max-width: 500px){
        #filter li {
            width: 47%;
            margin: 5px 1px -3px !important;
        }
        #filter li a {
            width: 100%;
            display: inline-block;
        }
    }
    @media (min-width: 500px) and (max-width: 600px){
        #filter li {
            width: 30%;
            margin: 5px 1px -3px !important;
        }
        #filter li a {
            width: 100%;
            display: inline-block;
        }
    }
    @media (min-width: 600px) and (max-width: 768px){
        #filter li {
            width: 32%;
            margin: 5px 1px -3px !important;
        }
        #filter li a {
            width: 100%;
            display: inline-block;
        }
    }
                
/* ================================================= */
/* 30. CAROUSEL                                      */
/* ================================================= */

.carousel-content,
.porDetCarousel {
    position: relative;
}

.carousel_item {
    width: 100%;
    height: 490px;
    display: block;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel_item.active {
    display: block;
    visibility: visible;
    position: static;
}

.carousel_item.current {
    left: 0;
    right: 0;
    visibility: visible;
    z-index: 1;
}

.carousel_item {
    max-width: 100%;
    display: block;
}

.carousel-control {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow: hidden;
    width: 100%;
}

.porDetCarousel:hover .carousel-prev {
    left: 10px;
}

.porDetCarousel:hover .carousel-next {
    right: 10px;
}

.carousel-prev,
.carousel-next {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 45%;
    left: -40px;
    z-index: 2;
    background: #666;
    border-radius: 2px;
    cursor: pointer;
    -webkit-transition: background-color 0.2s ease, left 0.2s ease, right 0.2s ease;
    transition: background-color 0.2s ease, left 0.2s ease, right 0.2s ease;
}

.carousel-next {
    left: auto;
    right: -40px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #0076be;
    /* background: #555; */
}

.carousel-prev:before,
.carousel-next:before {
    content: '\f104';
    display: block;
    text-align: center;
    line-height: 40px;
    font: 20px/40px 'FontAwesome';
    color: #fff;
}

.carousel-next:before {
    content: '\f105';
}

.carousel-next:hover:before,
.carousel-prev:hover:before {
    color: #fff;
}

.carousel-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    -webkit-transition: bottom 0.2s ease;
    transition: bottom 0.2s ease;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 2;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
    line-height: 50px;
}

.carousel-pagination li {
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    float: left;
    height: 6px;
    margin: 0 2px;
    width: 20px;
}

.carousel-pagination li.active {
    background: #0076be;
}

    
/* ========================================================== */
/*  6. PORTFOLIO/PROJECTS                                     */
/* ========================================================== */


.isotope-item {
    z-index: 2;
}

.isotope-hidden.isotope-item {
    pointer-events: none;
    z-index: 1;
}

/* Isotope CSS3 transitions */
.isotope,
.isotope .isotope-item {
    -webkit-transition-duration: 0.8s;
    -moz-transition-duration: 0.8s;
    -ms-transition-duration: 0.8s;
    -o-transition-duration: 0.8s;
    transition-duration: 0.8s;
}

.isotope {
    -webkit-transition-property: height, width;
    -moz-transition-property: height, width;
    -ms-transition-property: height, width;
    -o-transition-property: height, width;
    transition-property: height, width;
}

.isotope .isotope-item {
    -webkit-transition-property: -webkit-transform, opacity;
    -moz-transition-property: -moz-transform, opacity;
    -ms-transition-property: -ms-transform, opacity;
    -o-transition-property: top, left, opacity;
    transition-property: transform, opacity;
}

/* Disabling Isotope CSS3 transitions */
.isotope.no-transition,
.isotope.no-transition .isotope-item,
.isotope .isotope-item.no-transition {
    -webkit-transition-duration: 0s;
    -moz-transition-duration: 0s;
    -ms-transition-duration: 0s;
    -o-transition-duration: 0s;
    transition-duration: 0s;
}

/* Disable CSS transitions for containers with infinite scrolling */
.isotope.infinite-scrolling {
    -webkit-transition: none;
    -moz-transition: none;
    -ms-transition: none;
    -o-transition: none;
    transition: none;
}

#portfolio {
    width: 100%;
    padding-bottom: 120px;
    position: relative;
    z-index: 9;
}

#filter {
    margin: 0 auto 25px 15px;
    overflow: hidden;
    padding: 5px 0 0;
    position: relative;
    text-align: left;
    width: auto;
    z-index: 10;
}

#filter li {
    float: left;
    list-style: none outside none;
    margin: 5px 1px 10px;
}

#filter li a {
    color: #fff;
    padding: 10px 20px;
    font-size: 12px;
    position: relative;
    overflow: hidden;
    line-height: 12px;
    font-family: Arial, Helvetica, sans-serif;
    background: #475189;
    -moz-transition: all .50s ease-in-out;
    -webkit-transition: all .50s ease-in-out;
    transition: all .50s ease-in-out;
    outline: none;
    text-decoration: none;
}

#filter li.selected a,
#filter li a:hover {
    background: #2271B1;
    -webkit-transition: all .20s ease-in-out;
    -moz-transition: all .20s ease-in-out;
    -ms-transition: all .20s ease-in-out;
    -o-transition: all .20s ease-in-out;
    transition: all .20s ease-in-out;
}

#list {
    margin-bottom: 30px;
    padding: 0;
}

.list_item {
    margin-bottom: 3%;
    overflow: hidden;
}

/* Portfolio Image
====================================*/

figure {
    position: relative;
    overflow: hidden;
    margin: 0;
    text-align: center;
    cursor: pointer;
}

figure img {
    position: relative;
    display: block;
    max-width: 100%;
    height: 200px;
    opacity: 0.8;
}

figure figcaption {
    padding: 2em;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.10em;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

figure figcaption h5 {
    color: #fff;
}

figure figcaption::before,
figure figcaption::after {
    pointer-events: none;
}

figure figcaption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

figure h5,
figure p {
    margin: 0;
}

figure h5 {
    font-weight: 600;
    font-size: 115%;
}

.large-images figure h5 {
    font-size: 155%;
}

.small-images figure h5,
.jcarousel-list .item-description h5 {
    font-size: 80%;
}

.list_item figure p {
    letter-spacing: 1px;
    font-size: 85%;
}

.small-images figure p,
.jcarousel-list .item-description p {
    font-size: 75%;
}

.large-images figure p {
    font-size: 95%;
}

/* Bubba Hover Effect on Portfolio Image
===========================================*/
figure.effect-bubba {
    background: #727CB6;
}

figure.effect-bubba img {
    width: 100%;
    height: 190px;
    opacity: 1;
    -webkit-transition: opacity 0.35s;
    transition: opacity 0.35s;
}

figure.effect-bubba:hover img {
    opacity: 0.4;
}

/* Medium Image Border */
figure.effect-bubba figcaption::before,
figure.effect-bubba figcaption::after {
    position: absolute;
    top: 25px;
    right: 25px;
    bottom: 25px;
    left: 25px;
    content: '';
    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
}

/* Small Image Border */
.small-images figure.effect-bubba figcaption::before,
.small-images figure.effect-bubba figcaption::after,
.jcarousel-list figure.effect-bubba figcaption::before,
.jcarousel-list figure.effect-bubba figcaption::after {
    top: 15px;
    right: 15px;
    bottom: 15px;
    left: 15px;
}

/* Large Image Border */
.large-images figure.effect-bubba figcaption::before,
.large-images figure.effect-bubba figcaption::after {
    top: 30px;
    right: 30px;
    bottom: 30px;
    left: 30px;
}

figure.effect-bubba figcaption::before {
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    -webkit-transform: scale(0, 1);
    transform: scale(0, 1);
}

figure.effect-bubba figcaption::after {
    border-right: 1px solid #fff;
    border-left: 1px solid #fff;
    -webkit-transform: scale(1, 0);
    transform: scale(1, 0);
}

figure.effect-bubba h5 {
    padding-top: 30%;
    opacity: 0;
    -webkit-transition: -webkit-transform 0.35s;
    transition: transform 0.35s;
    -webkit-transform: translate3d(0, -20px, 0);
    transform: translate3d(0, -20px, 0);
}

figure.effect-bubba p {
    padding: 6px 2.5em 20px;
    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: translate3d(0, 20px, 0);
    transform: translate3d(0, 20px, 0);
}

.large-images figure.effect-bubba p {
    padding: 13px 2.5em 15px;
}

.small-images figure.effect-bubba p {
    padding: 2px 2.5em 15px;
}

figure.effect-bubba:hover figcaption::before,
figure.effect-bubba:hover figcaption::after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

figure.effect-bubba:hover h5,
figure.effect-bubba:hover p {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

figure .option {
    text-align: center;
    position: absolute;
    top: 28%;
    z-index: 1;
    width: 100%;
    transform: translate3d(0px, -20px, 0px);
    transition: transform 0.35s ease 0s;
}

figure .option .fa {
    background: rgba(256, 256, 256, 0.9);
    -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    line-height: 40px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    width: 40px;
    height: 40px;
    position: relative;
    opacity: 0;
    -webkit-transition: all 0.3s, color 0.1s 0.3s;
    -moz-transition: all 0.3s, color 0.1s 0.3s;
    -o-transition: all 0.3s, color 0.1s 0.3s;
    transition: all 0.3s, color 0.1s 0.3s;
    color: rgba(50, 50, 50, 0.9);
}

.small-images figure .option .fa,
.jcarousel figure .option .fa {
    font-size: 14px;
    width: 32px;
    height: 32px;
    line-height: 32px;
}

figure .option .fa:hover {
    color: #727CB6;
}

figure .option .fa:hover {
    background: rgba(256, 256, 256, 1);
}

figure .option .fa-search {
    left: -45px;
}

figure .option .fa-link {
    left: 45px;
}

figure:hover .option .fa-link,
figure:hover .option .fa-search {
    left: 0px;
    opacity: 1;
}

/* MASONRY PORTFOLIO STYLES
==========================================-*/
.masonry_wrapper {
    overflow: hidden;
    margin: 0;
}

.small-images .masonry_wrapper figure.effect-bubba h5 {
    padding-top: 24%;
}

.medium-images .masonry_wrapper figure.effect-bubba h5 {
    padding-top: 26%;
}

.large-images .masonry_wrapper figure.effect-bubba h5 {
    padding-top: 30%;
}

.large-images .masonry_wrapper figure.effect-bubba p {
    padding: 8px 2.5em 15px;
}

.medium-images .masonry_wrapper figure.effect-bubba p {
    padding: 3px 2.5em 20px;
}

.small-images .masonry_wrapper figure.effect-bubba p {
    padding: 0 2.5em 15px;
}

.mixed-container .item {
    padding: 10px 5px;
    margin: 0;
    height: auto !important;
}

/* Portfolio Single Page
====================================*/
.portfolio_single {
    padding: 30px 0;
}

.portfolio_single .widget_title h4 span {
    background: #fff;
}

.project_details {
    background-color: #fff;
    overflow: hidden;
}

.project_detail_slider {
    margin-bottom: 30px;
}

.project_desc p {
    margin-bottom: 20px;
}

.project_desc h6,
.project_details h6 {
    font-size: 20px;
    margin-top: 5px;
}

.project_details .details li {
    border-bottom: 1px solid #F2F2F2;
    color: #A3A3A3;
    font-size: 12px;
    line-height: 18px;
    padding: 8px 0;
}

.project_details .details {
    margin: 0;
    padding: 0;
}

.project_details .details li span {
    color: #686868;
    display: block;
    float: left;
    font-weight: bold;
    height: 20px;
    position: relative;
    width: 30%;
}

.project_details .details li a {
    color: #A3A3A3;
    font-size: 12px;
}

.project_details .details li a:hover {
    color: #e74c3c;
}

.project_detail_box {
    margin-bottom: 30px;
}

.project_description,
.project_details {
    margin-bottom: 30px;
}

.arrow-left,
.arrow-right {
    width: 23px;
    height: 23px;
    float: left;
    background-color: #f2f2f2;
    color: #666;
    -webkit-transition: all 150ms ease-in-out;
    -moz-transition: all 150ms ease-in-out;
    -o-transition: all 150ms ease-in-out;
    -ms-transition: all 150ms ease-in-out;
    transition: all 150ms ease-in-out;
}

.arrow-left i,
.arrow-right i {
    font-size: 14px;
    display: block;
    line-height: 16px;
    padding-top: 4px;
    text-align: center;
}

.arrow-left.active,
.arrow-right.active {
    background-color: #bdc3c7;
    color: #f2f2f2;
    cursor: pointer;

}

.arrow-left.active:hover,
.arrow-right.active:hover {
    background-color: #777;
}
