/**
 * Grid styles
 */
.video-grid.front-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1em 2em;
}

ul.video-list {
  display: flexbox;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

li.video {
  flex-grow: 1;
  position: relative;
  ooverflow: hidden;
  width: 33.333333333%;
  width: -webkit-calc(100% / 3);
  width: calc(100% / 3);
  border: solid 0.2em transparent;
}
li.video a {
  outline: none;
}
li.video:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.15s;
}
li.video figure {
  display: block;
  position: relative;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
li.video figure img {
  display: block;
  max-width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s;
}
li.video figure figcaption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 16px;
  font-weight: 200;
  padding: 10px;
  transform: translateY(0);
  opacity: 1;
  transition: all 0.2s;
}
li.video:hover figure img {
  opacity: 1;
  transform: scale(1);
}
li.video:hover figure figcaption {
  opacity: 0;
  transform: translateY(50%);
}
li.video:hover:before {
  background-color: rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 800px) {
  li.video {
    width: 50%;
    width: -webkit-calc(100% / 2);
    width: calc(100% / 2);
  }
}
@media screen and (max-width: 640px) {
  li.video {
    width: 100%;
  }
}

article {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1em 2em;
}
* {
  -webkit-transition: all .7s ease;
  -moz-transition: all .7s ease;
  -o-transition: all .7s ease;
  transition: all .7s ease;
  font-family:sans-serif;
}
article h1 {
  font-size:2.5em;
  padding:10px;
  color: #fff;
}
article p {
  padding:20px;
  font-size:1.2em;
  line-height: 1.2;
  color: #fff;
}
a {
		-moz-transition: color 0.2s ease, border-bottom-color 0.2s ease;
		-webkit-transition: color 0.2s ease, border-bottom-color 0.2s ease;
		-ms-transition: color 0.2s ease, border-bottom-color 0.2s ease;
		transition: color 0.2s ease, border-bottom-color 0.2s ease;
		border-bottom: dotted 1px rgba(255, 255, 255, 0.35);
		color: tomato;
		text-decoration: none;
}
#slide1:checked ~ #slider .html5Slider { margin-left:0; }
#slide2:checked ~ #slider .html5Slider { margin-left:-100%; }
#slide3:checked ~ #slider .html5Slider { margin-left:-200%; }
#slide4:checked ~ #slider .html5Slider { margin-left:-300%;}
#slide5:checked ~ #slider .html5Slider { margin-left:-400%;}
.sliderButton {
  display:none;
}
.html5Slider {
  -moz-transition: all .7s ease;
  transition:all .7s ease;
}
#video {
  margin-left:100%;
  margin-top:-362px;
}
#slider {
  width:90%;
  margin:0 auto;
  padding:20px;
}

#overflow {
  width: 100%;
  overflow: hidden;
}

#slider .html5Slider {
  width: 400%;
}
#slider .css3Slider {
  width:400%;
}

#slider article.html5 {
  width:25%;
  float:left;
  height:350px;
}
#slider article.css3 {
  width:25%;
  float:left;
}
#controls {
  margin: -25% 0 0 0;
  width: 100%;
  height: 50px;
}
#controls label { 
  display:none;
  width: 50px;
  height: 50px;
}
#active {
  margin: 23% 0 0;
  text-align: center;
}

#active label {
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #bbb;
}
#active label:hover {
  background: #ccc;
  border-color: #777 !important;
}

#controls label:hover {
  opacity: 0.8;
}
#slide1:checked ~ #controls label:nth-child(2), 
#slide2:checked ~ #controls label:nth-child(3), 
#slide3:checked ~ #controls label:nth-child(4), 
#slide4:checked ~ #controls label:nth-child(5),
#slide5:checked ~ #controls label:nth-child(1)  {
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAHElEQVQYlWNggIKvX7/+h2EGQmCoKSZK4SBTBAAEaHQF+ACn0wAAAABJRU5ErkJggg==), #232323;
  background-repeat:no-repeat, repeat;
  background-position:center center;
  border-radius: 50px;
  float: right;
  display: block;
}


#slide1:checked ~ #controls label:nth-child(5),
#slide2:checked ~ #controls label:nth-child(1),
#slide3:checked ~ #controls label:nth-child(2),
#slide4:checked ~ #controls label:nth-child(3),
#slide5:checked ~ #controls label:nth-child(4) {
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAG0lEQVQYlWNgQANfv379D8PocoNaEUkKh4BiAKS1dAUutz8GAAAAAElFTkSuQmCC), #232323;
  background-repeat: no-repeat, repeat;
  background-position: center center;
  border-radius: 50px;
  float: left;
  display: block;
}

#slide1:checked ~ #active label:nth-child(1),
#slide2:checked ~ #active label:nth-child(2),
#slide3:checked ~ #active label:nth-child(3),
#slide4:checked ~ #active label:nth-child(4),
#slide5:checked ~ #active label:nth-child(5) {
  background: #333;
  border-color: #333 !important;
}



