/* .carousel
This is the "more accessible version" from aria authoring practices carousel example

*/

.carousel .carousel-inner {
  display: static;
}

.carousel .carousel-item {
  display: none;
  max-width: 900px;
  width: 100%;
}

/* UP CUSTOMIZED BELOW 
.carousel .carousel-item.active {
  display: block;
}
*/

/* More like bootstrap, less accessible */

/* Shared CSS for Pause, Next and Previous Slide Controls */

/* UP CUSTOMIZED BELOW
.carousel .controls {
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
  height: 36px;
  background-color: #eee;
  border: 4px solid #eee;
  border-radius: 5px 5px 0 0;
}
*/

.carousel .controls button {
  position: absolute;
  top: 6px;
  display: block;
  background-color: transparent;
  border: none;
  outline: none;
}

.carousel .controls button.previous {
  right: 58px;
}

.carousel .controls button.next {
  right: 4px;
}

.carousel .controls button.rotation {
  left: 4px;
}

.carousel .controls button svg rect.background {
  stroke: black;
  fill: black;
  stroke-width: 1px;
  opacity: 0.8;
}

.carousel .controls button svg rect.border {
  fill: transparent;
  stroke: transparent;
  stroke-width: 2px;
}

/* Next and Previous Slide Controls */

.carousel .controls button svg polygon {
  stroke: white;
  fill: white;
  stroke-width: 2;
  opacity: 1;
}

.carousel .controls button.rotation svg polygon.pause {
  stroke-width: 4;
  fill: transparent;
  stroke: transparent;
}

.carousel .controls button.rotation svg polygon.play {
  stroke-width: 1;
  fill: transparent;
  stroke: transparent;
}

.carousel .controls button.rotation.pause svg polygon.pause,
.carousel .controls button.rotation.play svg polygon.play {
  fill: white;
  stroke: white;
}

/* Common focus styling for svg buttons */

/* UP CUSTOMIZED BELOW
.carousel .controls button:focus rect.background,
.carousel .controls button:hover rect.background,
.carousel .controls button:focus rect.border,
.carousel .controls button:hover rect.border {
  fill: #005a9c;
  stroke: #005a9c;
  opacity: 1;
}
*/

.carousel .controls button:focus rect.border {
  stroke: white;
}

/* Caption Positioning */

/* UP CUSTOMIZED BELOW
.carousel .carousel-items {
  width: 100%;
  background-color: #eee;
  border: solid 4px #eee;
  border-radius: 0 0 5px 5px;
}


.carousel .carousel-items.focus {
  border-color: #005a9c;
}

*/

.carousel .carousel-item .carousel-image {
  margin: 0;
  padding: 0;
  width: 100%;
}

.carousel .carousel-item .carousel-image a {
  margin: 0;
  padding: 0;
}

.carousel .carousel-item .carousel-image a img {
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  max-height: 100%;
  max-width: 100%;
}

/* UP CUSTOMIZED BELOW
.carousel .carousel-item .carousel-caption {
  margin: 0;
  padding: 0.5em;
  width: 100%;
  height: 3em;
  text-align: center;
}


.carousel .carousel-item .carousel-caption a {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0);
  padding-left: 0.25em;
  padding-right: 0.25em;
  padding-top: 0.125em;
  padding-bottom: 0.125em;
  border-radius: 5px;
  border: 2px solid transparent;
  margin: 0;
  text-decoration: underline;
}
*/

.carousel .carousel-item .carousel-caption h3 {
  margin: 0;
  padding: 0;
  font-weight: bold;
}

/* UP CUSTOMIZED BELOW
.carousel .carousel-item .carousel-caption h3 a {
  color: black;
}
*/

.carousel .carousel-item .carousel-caption a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* UP CUSTOMIZED BELOW
.carousel .carousel-item .carousel-caption a:focus {
  border-color: #005a9c;
  background-color: rgba(0, 0, 0, 0.1);
  outline: none;
}
*/

.carousel .carousel-item .carousel-caption p {
  margin: 0;
  padding: 0;
}

/* UP CUSTOMIZATIONS GO BELOW. CLEAN UPPER PORTION LATER */

.carousel .carousel-items {
    width: 100%;
    background-color: #eee;
    border: solid 4px #eee;
    border-radius: 0 0 5px 5px;
}

.carousel .carousel-item .carousel-caption h3 a {
  color: #017784;
}

.carousel .carousel-item.active {
  display: block;
}

.carousel .controls {
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
  height: 36px;
  /* background-color: #eee; */
  /* border: 4px solid #eee; */
  /* border-radius: 5px 5px 0 0; */
}

.carousel .carousel-item .carousel-caption {
    margin: 0;
    /* padding: 0.5em; */
    width: 100%;
    /* height: 3em; */
    /* text-align: center; */
}

.carousel .carousel-item .carousel-caption a {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0);
  padding-left: 0.25em;
  padding-right: 0.25em;
  padding-top: 0.125em;
  padding-bottom: 0.125em;
  border-radius: 5px;
  border: 2px solid transparent;
  margin: 0;
  text-decoration: underline;
}


.carousel .controls button:focus rect.background,
.carousel .controls button:hover rect.background,
.carousel .controls button:focus rect.border,
.carousel .controls button:hover rect.border {
  fill: #017784;
  stroke: #017784;
  opacity: 1;
}

/* Borrowing from bxslider */
#myCarousel {
  -moz-box-shadow: 0 0 5px #ccc;
  -webkit-box-shadow: 0 0 5px #ccc;
  box-shadow: 0 0 5px #ccc;
  border: 5px solid #fff;
  background: #fff;
}

.carousel .carousel-items.focus {
  border-color: #017784;
}

.carousel .carousel-item .carousel-caption a:focus {
  border-color: #017784;
  background-color: rgba(0, 0, 0, 0.1);
  outline: none;
}

.carousel-image img {
     width: 100%;
}