/*** Gallery ***/
.b3Gallery.flex {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
            flex-flow: row wrap;
/*    -webkit-box-pack: justify;*/
/*        -ms-flex-pack: justify;*/
/*            justify-content: space-between;*/
}

.b3Gallery.flex .b3Gallery-item {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 160px;
            flex: 1 1 160px;
}

.b3Gallery.flex .b3Gallery-item img {
    width: 100%;
}

/*** Carousel ***/
.b3Gallery .carousel,
.b3Gallery .carousel-inner,
.b3Gallery .carousel-inner .item {
    height: 100%;
}
.b3Gallery .carousel-caption {
    bottom: 0;
    right: 0;
    left: 0;
    padding: 20px 15px;
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.b3Gallery .caption {
    padding-right: 100px;
    text-align: left;
}
@media (min-width: 768px) {
    .b3Gallery .carousel-caption {
        color: #313131;
        background-color: rgba(255,255,255,.7);
    }
}
.b3Gallery .carousel-inner .item {
    margin: 0;
    max-width: 100%;
}
.b3Gallery .carousel-fade .carousel-control {
    z-index: 2;
}
.b3Gallery .carousel-fade .carousel-inner .item {
    -webkit-transition-property: opacity;
            transition-property: opacity;
}
.b3Gallery .carousel-fade .carousel-inner .item,
.b3Gallery .carousel-fade .carousel-inner .active.left,
.b3Gallery .carousel-fade .carousel-inner .active.right {
    opacity: 0;
}
.b3Gallery .carousel-fade .carousel-inner .active,
.b3Gallery .carousel-fade .carousel-inner .next.left,
.b3Gallery .carousel-fade .carousel-inner .prev.right {
    opacity: 1;
}
.b3Gallery .carousel-fade .carousel-inner .next,
.b3Gallery .carousel-fade .carousel-inner .prev,
.b3Gallery .carousel-fade .carousel-inner .active.left,
.b3Gallery .carousel-fade .carousel-inner .active.right {
    left: 0;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
}
