/* Overlaying text above an image, including a title and subtitle */
.content {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: auto;
  overflow: hidden;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  -webkit-transition: 0.4s ease-in-out;
  transition: 0.4s ease-in-out;
}

.content .content-overlay {
  background: rgba(0,0,0,0);
  position: absolute;
  height: 99%;
  width: 100%;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  -webkit-transition: all 0.4s ease-in-out 0s;
  -moz-transition: all 0.4s ease-in-out 0s;
  transition: all 0.4s ease-in-out 0s;
}

.content:hover {
    -webkit-filter: grayscale(0);
    filter: grayscale(0);
    cursor: pointer;
}

.content:hover .content-overlay{
  opacity: 1;
}

.content-image{
  width: 100%;
}

.content-details {
  position: absolute;
  text-align: center;
  padding-left: 1em;
  padding-right: 1em;
  width: 100%;
  top: 50%;
  left: 50%;
  opacity: 0;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-transition: all 0.3s ease-in-out 0s;
  -moz-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.content:hover .content-details{
  top: 50%;
  left: 50%;
  opacity: 1;
}

.content-details h3{
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}
.content-details h4{
    color: #fff;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.1em;
    margin-bottom: 0.25em;
    text-transform: uppercase;
  }

.content-details p{
  color: #fff;
  font-size: 0.8em;
}

.fadeIn-bottom{
  top: 80%;
}

.fadeIn-top{
    top: 20%;
  }
  
  .fadeIn-left{
    left: 20%;
  }
  
  .fadeIn-right{
    left: 80%;
  }

.hover-right span {
    display: none;
    margin-left: 0px;
    margin-right: 0px;
    font-size: 32px;
}

.hover-right:hover {
    transform: translateX(10px);
    transition: all 0.2s ease-in-out;
}

.hover-right:hover span {
    display: inline-block;
    animation-duration: 0.2s;
    transform: translateX(-150px);
    animation-name: slide-right;
}

@keyframes slide-right {
    from {
        opacity: 0;
        font-size: 12px;
    }
    to {
        opacity: 100;
        font-size: 32px;

    }
}