﻿.jcarousel-wrapper {
    margin: 30px auto;
    position: relative;
    border: none;
    width: 100%;
    height: 340px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    padding: 15px 30px;
}


    .jcarousel-wrapper .photo-credits {
        position: absolute;
        right: 15px;
        bottom: 0;
        font-size: 13px;
        color: #fff;
        text-shadow: 0 0 1px rgba(0, 0, 0, 0.85);
        opacity: .66;
    }

        .jcarousel-wrapper .photo-credits a {
            color: #fff;
        }

/** Carousel **/

.jcarousel {
    position: relative;
    overflow: hidden;
    display: flex;
    max-height: 100%;
    width: 100%;
}

    .jcarousel ul {
        width: 20000em;
        position: relative;
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
    }

    .jcarousel li {
        float: left;
        display: flex;
        width: 100%;
        height: 230px;
    }

        .jcarousel li a {
            text-align: center;
        }

        .jcarousel li img {
            height: auto;
            object-fit: cover;
        }

/** Carousel Controls **/

.jcarousel-control-prev,
.jcarousel-control-next {
    position: absolute;
    top: 53px;
    width: 20%;
    height: 230px;
    text-align: center;
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 1px #000;
    font: 24px/27px Arial, sans-serif;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}

.jcarousel-control-prev {
    left: 8px;
}

.jcarousel-control-next {
    right: 8px;
}


    .jcarousel-control-prev:visited,
    .jcarousel-control-prev:focus,
    .jcarousel-control-prev:active,
    .jcarousel-control-next:visited,
    .jcarousel-control-next:focus,
    .jcarousel-control-next:active {
        color: #fff;
        text-decoration: none;
    }

    .jcarousel-control-prev:hover span,
    .jcarousel-control-next:hover span {
        display: block;
    }

    .jcarousel-control-prev.inactive,
    .jcarousel-control-next.inactive {
        opacity: .5;
        cursor: default;
    }

/** Carousel Pagination **/

.jcarousel-pagination {
    position: absolute;
    bottom: 15px;
    left: 50%;
    margin: 0 auto;
    transform: translate(-50%, 0);
}

    .jcarousel-pagination a {
        text-decoration: none;
        display: inline-block;
        font-size: 11px;
        line-height: 14px;
        min-width: 14px;
        background: #999;
        color: #4E443C;
        border-radius: 14px;
        padding: 0;
        text-align: center;
        margin: 0 4px;
        opacity: .75;
        text-indent: -9999px;
        width: 14px;
        height: 14px;
    }

        .jcarousel-pagination a.active {
            background: #EC5C24;
            color: #fff;
            opacity: 1;
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75);
        }

@media (min-width: 640px) {
    .jcarousel-wrapper {
        height: 250px;
    }

    .jcarousel li {
        margin: 0 1%;
    }

    .jcarousel-pagination {
        display: none;
    }

    .jcarousel-control-prev,
    .jcarousel-control-next {
        display: none;
    }
}
