/* FlexSlider v2 required CSS - jquery.flexslider.js was wired up on the admin topic-view page
   and the front-end "post" template (contact.blade.php's photo slider) without this stylesheet,
   so the plugin's JS ran but had nothing to hide inactive slides or size the viewport - every
   photo rendered at full natural size, stacked on top of surrounding content. */
.flexslider {
    margin: 0;
    padding: 0;
}

.flexslider .slides,
.flexslider .slides > li {
    margin: 0;
    padding: 0;
}

.flexslider .slides {
    display: block;
    zoom: 1;
}

.flexslider .slides > li {
    display: none;
    -webkit-backface-visibility: hidden;
}

.flexslider .slides > li:first-child {
    display: block;
}

.flexslider .slides img {
    width: 100%;
    height: auto;
    display: block;
}

.flexslider .slides:after {
    content: "\0020";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

.flex-viewport {
    max-height: 2000px;
    overflow: hidden;
    position: relative;
    transition: all 1s ease;
}

.flex-direction-nav a {
    text-decoration: none;
    display: block;
    width: 40px;
    height: 40px;
    margin: -20px 0 0;
    position: absolute;
    top: 50%;
    z-index: 10;
    overflow: hidden;
    opacity: 0;
    cursor: pointer;
    color: rgba(0, 0, 0, .8);
}

.flex-direction-nav .flex-prev {
    left: 10px;
}

.flex-direction-nav .flex-next {
    right: 10px;
    text-align: right;
}

.flexslider:hover .flex-direction-nav a {
    opacity: 0.7;
}

.flex-direction-nav .flex-disabled {
    opacity: 0 !important;
    cursor: default;
    z-index: -1;
}

.flex-control-nav {
    width: 100%;
    position: absolute;
    bottom: -30px;
    text-align: center;
}

.flex-control-nav li {
    margin: 0 4px;
    display: inline-block;
}

.flex-control-paging li a {
    width: 10px;
    height: 10px;
    display: block;
    background: rgba(0, 0, 0, .5);
    cursor: pointer;
    text-indent: -9999px;
    border-radius: 20px;
}

.flex-control-paging li a.flex-active {
    background: rgba(0, 0, 0, .9);
    cursor: default;
}
