#container {margin: 0 auto;width: 940px; position:relative;}
.flexslider .slides > li {display: none;} /* Hide the slides before the JS is loaded. Avoids image jumping */
.flex-pauseplay span {text-transform: capitalize;}
/* Clearfix for the .slides element */

ul.slides {padding: 0; margin: 0; list-style: none;}
.slides:after {content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;}
html[xmlns] .slides {display: block;}
* html .slides {height: 1%;}

.flexslider {
    height: auto;
    min-height: 250px;
    position: relative;
}

.flexslider .slides img {
    width: 100%;
    height: auto;
    display: block;
}

#content .flexslider {
margin: 20px 0; padding: 10px; background: #FFF; border: 1px solid #AAA;
}


/* Control Nav */
.flex-direction-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

.flexslider .flex-direction-nav .prev,.flexslider .flex-direction-nav .next{
    display:inline-block;
    overflow:hidden;
    position:absolute;
    bottom:22px;
    z-index:5;
}

.flexslider .flex-direction-nav .prev {
    top: 45%;
    height: 77px;
    text-decoration: none;
    background: url(../images/prev.png) no-repeat;
    left: 0px;
    color:#f9f9f9;
    padding-left: 60px;
    text-indent: -9999px;
    width: 55px;

}

.flexslider .flex-direction-nav .next {
    top: 45%;
    height: 77px;
    text-decoration: none;
    background: url(../images/next.png) no-repeat 100% 0;
    right:0px;
    color:#f9f9f9;
    text-indent: -9999px;
    width: 55px;
}

@media only screen and (min-width: 768px) and (max-width: 959px) {
    .flex-caption{
        width:100%;
    }
    #content .flex-caption p {
        font: 15px/24px 'Papyrus', sans-serif;
        width: 50%;
        margin: auto;
    }
}
@media only screen and (max-width: 767px) {
    .flexslider .slides img {height: auto;}
    .flexslider {min-height: 20px;}
    .flex-caption {display:none;}
    .flex-control-nav {bottom: 5px;}
    .flexslider .flex-direction-nav .next, .flexslider .flex-direction-nav .prev {
        background-size: contain;
        height: 40px;
        width: 30px;
    }
}

@media only screen and (min-width: 480px) and (max-width: 767px) {
        .flexslider { height: auto; min-height: 20px;}
}