﻿.carousel-inner > .item > img,
.carousel-inner > .item > a > img,
.carousel-inner > .item > .card > .card-body > a > img.gallery-thumbnail {
    display: block;
    width: 100% \9;
    max-width: 105%;
    width: 102%;
    height: auto;
    margin-bottom: 0.5em;
    margin-left: -0.1em;
}

.carousel-inner > .item > .card > .card-body > .article-type {
    font-size: 0.9em;
    line-height: 1.75em;
}

.carousel-inner > .item > .card > .card-body > h1 {
    margin-right: 0 !important;
    font-family: "Roboto Slab",helvetica,arial,serif;
    font-size: 1.3em;
}

.carousel {
    position: relative;
    margin-left: -2.5em;
    margin-right: -1.5em;
    margin-top: 1em;
    min-height: 255px;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

    .carousel-inner > .item {
        position: relative;
        display: none;
    }

        .carousel-inner > .item > img,
        .carousel-inner > .item > a > img {
            line-height: 1;
        }

    .carousel-inner > .active,
    .carousel-inner > .next,
    .carousel-inner > .prev {
        display: block;
    }

    .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 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 10%;
    font-size: 30px;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
    filter: alpha(opacity=50);
    opacity: .5;
}

    .carousel-control.left {
        background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%);
        background-image: -o-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: linear-gradient(to right, rgba(0, 0, 0, .01) 0%, rgba(0, 0, 0, .0001) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);
        background-repeat: repeat-x;
    }

    .carousel-control.right {
        right: 0;
        left: auto;
        margin-right: -0.5em;
        background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%);
        background-image: -o-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, .01) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);
        background-repeat: repeat-x;
    }

    .carousel-control:hover,
    .carousel-control:focus {
        color: #fff;
        text-decoration: none;
        filter: alpha(opacity=90);
        outline: 0;
        opacity: .9;
    }

    .carousel-control .icon-prev,
    .carousel-control .icon-next,
    .carousel-control .fa-chevron-left,
    .carousel-control .fa-chevron-right {
        position: absolute;
        top: 50%;
        z-index: 5;
        display: inline-block;
    }


    .carousel-control .fa-chevron-left {
        right: 40%;
        text-shadow: -2px -2px 8px #000, 2px 2px 8px #000;
    }


    .carousel-control .fa-chevron-right {
        text-shadow: -2px -2px 8px #000, 2px 2px 8px #000;
    }

    .carousel-control .icon-prev,
    .carousel-control .icon-next {
        width: 20px;
        height: 20px;
        margin-top: -10px;
        font-family: serif;
    }

        .carousel-control .icon-prev:before {
            content: '\2039';
        }

        .carousel-control .icon-next:before {
            content: '\203a';
        }

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    z-index: 15;
    width: 60%;
    padding-left: 0;
    margin-left: -30%;
    text-align: center;
    list-style: none;
}

    .carousel-indicators li {
        display: inline-block;
        width: 10px;
        height: 10px;
        margin: 1px;
        text-indent: -999px;
        cursor: pointer;
        background-color: #000 \9;
        background-color: rgba(0, 0, 0, 0);
        border: 1px solid #fff;
        border-radius: 10px;
    }

    .carousel-indicators .active {
        width: 12px;
        height: 12px;
        margin: 0;
        background-color: #fff;
    }

.carousel-caption {
    position: absolute;
    right: 15%;
    bottom: 20px;
    left: 15%;
    z-index: 10;
    padding-top: 20px;
    padding-bottom: 20px;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

    .carousel-caption .btn {
        text-shadow: none;
    }

/*********************************/
@media (min-width: 768px) {
    .item.active-next {
        display: block;
    }
    .container {
        width: auto;
    }
    .carousel-control .fa-chevron-left {
        left: 50%;
        margin-left: -0.5em;
    }

    .carousel-control .fa-chevron-right {
        left: 50%;
        margin-left: 0em;
    }
    .carousel-inner > .item > img,
    .carousel-inner > .item > a > img,
    .carousel-inner > .item > .card > .card-body > a > img.gallery-thumbnail {
        width: 105%;
    }
    .item.active-next-sm {
        display: none;
    }
}

@media (min-width: 992px) {
    .item.active-next {
        display: block;
    }
    .carousel-control .fa-chevron-left {
        left: 50%;
        margin-left: -0.5em;
    }
    .carousel-control .fa-chevron-right {
        left: 50%;
        margin-left: 0em;
    }
    .carousel-inner > .item > img,
    .carousel-inner > .item > a > img,
    .carousel-inner > .item > .card > .card-body > a > img.gallery-thumbnail {
        width: 105%;
    }
}

@media (min-width: 1200px) {
    .container {
        width: auto;
    }
    .carousel-control .fa-chevron-left {
        left: 50%;
        margin-left: -0.5em;
    }
    .carousel-control .fa-chevron-right {
        left: 50%;
        margin-left: -0.2em;
    }
    .carousel-inner > .item > img,
    .carousel-inner > .item > a > img,
    .carousel-inner > .item > .card > .card-body > a > img.gallery-thumbnail {
        width: 105%;
    }
}


.carousel-inner > .item.active,
.carousel-inner > .item.active-next {
    opacity: 1;
    
}

.carousel-inner > .item:not(.active):not(.active-next) {
    opacity: 0.5;
}

.carousel-inner > .item.transitioning {
    opacity: 0.2;
    transition: all 0.4s ease;
}

.carousel-control.left,
.carousel-control.right {
   background-image:initial;
    width: 2em;
    margin-right: 0.52em;
    margin-left: 0.9em;
}

.carousel-inner > .item.active {
    transform: translate3d(0,0,0);
}

    .carousel-inner > .item.active.col-md-pull-4,
    .carousel-inner > .item.active.col-md-pull-8 {
        left: initial;
    }
