﻿.rslides {
  position: relative;
  list-style: none;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.rslides li {
  position: absolute;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.rslides li:first-child {
  position: relative;
  display: block;
  opacity: 1;
}

.rslides .slide-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.rslides .slide-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  animation: kenburns 10s ease-in-out infinite alternate;
  display: block;
  max-height:800px;
}

.rslides .slide-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(-2%, -2%);
  }
}

/* Caption styles */
.caption-content {
  position: absolute;
  top: 80%;
  left: 50%;
      transform: translate(-50%, -50%);
      width: 90%;
      padding: 20px;
      background: rgba(0, 0, 0, 0.05);
      text-align: center;
      text-shadow: 2px 3px 0px rgba(0,0,0,0.6);
}

.caption-content h2{
color: white;
font-size:16px;
text-shadow: 2px 2px 5px rgba(0,0,0,0.8);      
}

.rslides li:first-child .caption-content {
  opacity: 1;
}

@media only screen and (min-width: 600px) {
.caption-content h2{
color: white;
font-size:22px;
text-shadow: 2px 2px 5px rgba(0,0,0,0.8);      
}
}

@media only screen and (min-width: 1000px) {
.caption-content h2{
color: white;
font-size:28px;
text-shadow: 2px 2px 5px rgba(0,0,0,0.8);      
}
}

@media only screen and (min-width: 1200px) {
.caption-content h2{
color: white;
font-size:32px;
text-shadow: 2px 2px 5px rgba(0,0,0,0.8);      
}
}
