.gallop {
    overflow: visible;
    position: relative;
    min-height: 100px;
    background-color: lightgrey;
}
.gallop ul { padding: 0; margin: 0; white-space: nowrap; font-size: 0; line-height: 0; overflow: hidden;}
.gallop li:nth-child(even) { background-color: lightblue;}
.gallop li:nth-child(odd) { background-color: lightskyblue;}
.gallop li {
    width: 100%;
    min-height: 100px;
    transition-property: margin-left;
    transition-duration:.3s;
    transition-timing-function: ease;
    list-style: none;
    display: inline-block;
    overflow: hidden;
    position: relative;
    font-size: 18px;
    line-height: 22px;
    white-space: normal;
}
.gallop li.left {
    margin-left: -100%;
    transition-property: margin-left;
    transition-duration: .35s;
    transition-timing-function: ease;
}
.gallop .controls {
    position: absolute;
    bottom: -40px;
    right: 0;
    left:0;
    background: #fff;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-align: center;
}
.gallop .controls .advance,
.gallop .controls .retreat,
.gallop .controls .autoplay,
.gallop .controls .picker {
    vertical-align: middle;
    display: inline-block;
    cursor: pointer;
}
.gallop .controls .picker {
    border-radius: 15px;
    height: 10px;
    width: 10px;
    background-color: lightseagreen;
    border: solid 5px #fff;
    font-size: 9px;
    text-align: center;
    font-family: sans-serif;
    font-weight: bold;
    line-height: 10px;
    overflow: hidden;
}
.gallop .controls .picker:hover,
.gallop .picker.active {
    background-color: lightgreen;
    border-width: 0;
    height: 20px;
    width: 20px;
    line-height: 20px;
    font-size: 15px;
}
.gallop .controls .advance,
.gallop .controls .retreat {
    width: 20px;
    height: 20px;
    color: lightseagreen;
    line-height: 18px;
    vertical-align: top;
    font-size: 20px;
}
.gallop .controls .advance:hover,
.gallop .controls .retreat:hover,
.gallop .controls .advance.active,
.gallop .controls .retreat.active {
    color: lightgreen;
    font-size: 40px;
    line-height: 14px;
}
.gallop .controls .autoplay {
    width: 3px;
    height: 10px;
    border-left: solid 3px lightseagreen;
    border-right: solid 3px lightseagreen;
    margin: 5px 8px 5px 5px;
}
.gallop .controls .autoplay:hover {
    width: 5px;
    height: 20px;
    border-left: solid 5px lightgreen;
    border-right: solid 5px lightgreen;
    margin: 0 4px 0 3px;

}
.gallop .controls .autoplay.off {
    width: 0;
    height: 0;
    border-top: 7px solid #fff;
    border-bottom: 7px solid #fff;
    border-left: 14px solid lightseagreen;
    border-right: none;
    margin: 3px 3px 3px 5px;
}
.gallop .controls .autoplay.off:hover {
    border-top: 10px solid #fff;
    border-bottom: 10px solid #fff;
    border-left: 20px solid lightgreen;
    border-right: none;
    margin: 0 0 0 2px;
}
/* Aviris theme */
.aviris.gallop {
    margin-bottom: 30px; 
}
.aviris.gallop .controls {
    bottom: -20px;
}
/* zero out default background colors */
.aviris.gallop,
.aviris.gallop .controls,
.aviris.gallop li:nth-child(odd),
.aviris.gallop li:nth-child(even) {
    background-color: transparent;
}
/* make picker backgrounds look transparent */
.aviris.gallop .controls .picker {
    border-color: rgb(140, 173, 197);
}
/* make autoplay button background tranparent */
.aviris.gallop .controls .autoplay.off,
.aviris.gallop .controls .autoplay.off:hover {
    border-top-color: transparent;
    border-bottom-color: transparent;
}
/* make picker number vertically center better */
.aviris.gallop .controls .picker {
    line-height: 11px;
}

/* fix arrow vertical alignment */
.aviris.gallop .controls .advance,
.aviris.gallop .controls .retreat,
.aviris.gallop .controls .advance:hover,
.aviris.gallop .controls .retreat:hover,
.aviris.gallop .controls .advance.active,
.aviris.gallop .controls .retreat.active {
    vertical-align: middle;
    line-height: 21px;
}
/* make hovered numbers center better */
.aviris.gallop .controls .picker:hover,
.aviris.gallop .picker.active {
    margin-left: -1px;
    margin-right: 1px;
    line-height: 21px;
}
.aviris.gallop > ul > li { vertical-align: top; }
.aviris.gallop .picture {
    display: block;
    text-align: center;
}
.aviris.gallop .picture img {
    max-width: 100%;
}
.aviris.gallop .description {
    display: block;
    background-color: #527698;
    padding: .5em 1em;
    margin: .5em 0;
}
.aviris.gallop .desc-header {
    color: #1A2E62;
    font-size: 18px;
    margin: 0;
}
.aviris.gallop .desc-text,
.aviris.gallop .description p {
    margin: .5em 0;
    font-size: .7rem;
    line-height: 1.3em;
}
.aviris.gallop .desc-button {
  color: #fff;
  padding: 0.2em 0.7em;
  background-color: #1A2E62;
  margin: 0;
  display: inline-block;
  font-size: 14px;
  font-weight: 200;
}


