#gallery {
   width: 978px;
   overflow: hidden;
   margin: 20px auto 40px auto;
   position: relative;
}
#gallery-images {
   -webkit-transition:transform 1.0s ease-in-out;
   -moz-transition:transform 1.0s ease-in-out;
   -o-transition:transform 1.0s ease-in-out;
   transition:transform 1.0s ease-in-out;
   position: relative;
   z-index: 9999;
}

#gallery-images:after {
   display: block;
   content: '';
   clear: both;
}

.gallery-image {
   font-size: 0;
   background: #fff;
   float: left;
   margin-right: 10px;
   position: relative;
   overflow: hidden;
   text-align: center;
}

.gallery-image .description {
   -webkit-transition:transform 1.0s ease-in-out;
   -moz-transition:transform 1.0s ease-in-out;
   -o-transition:transform 1.0s ease-in-out;
   transition:transform 1.0s ease-in-out;
   -webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
   box-sizing: border-box; 
   background-color: rgba(0, 0, 0, 0.5);
   color: #fff;
   font-size: 15px;
   padding: 0px 10px;
   position: absolute;
   bottom: 0px;
   width: 100%;
}

#gallery-images img {
   padding: 0;
   margin: 0;
   height: 652px;
}

#gallery-thumbs-container {
   -webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
   box-sizing: border-box; 
   border-left: 54px #fff solid;
   border-right: 59px #fff solid;
   margin-top: 10px;
   overflow: hidden;
   height: 75px;
   width: 100%;
}

#gallery-thumbs {
   -webkit-transition:all 1.0s ease-in-out;
   -moz-transition:all 1.0s ease-in-out;
   -o-transition:all 1.0s ease-in-out;
   transition:all 1.0s ease-in-out;
}

.gallery-thumb {
   -webkit-transition:all 0.3s ease-in-out;
   -moz-transition:all 0.3s ease-in-out;
   -o-transition:all 0.3s ease-in-out;
   transition:all 0.3s ease-in-out;
}

.gallery-thumb {
   height: 75px;
   width: 115px;
   margin-left: 10px;
   opacity: 0.7;
   position: relative;
   z-index: 9999;
}

.gallery-thumb:hover, .gallery-thumb.selected {
   opacity: 1;
}

.gallery-thumb:first-child {
   margin: 0;
}

#controls {
   font-size: 36px;
   bottom: 16px;
   position: absolute;
   width: 100%;
}

.gallery-arrow {
   font-family: Georgia !important;
}

.gallery-arrow:hover, .gallery-thumb:hover, .hover-arrow:hover {
   cursor: pointer;
}

#left-arrow, #hover-left-arrow, #hover-left-arrow .hover-arrow-container {
   float: left;
   opacity: 0.5;
}

#hover-left-arrow, #hover-left-arrow .hover-arrow-container {
   opacity: 1;
}

#right-arrow, #hover-right-arrow, #hover-right-arrow .hover-arrow-container {
   float: right;
   text-align: right;
}

#hover-controls {
   height: 652px;
   position: absolute;
   z-index: 10000;
   width: 978px;
}

.hover-arrow {
   height: 100%;
   width: 30%;
}

.hover-arrow-container {
   background: none repeat scroll 0 0 #000000;
   color: #FFFFFF;
   display: none;
   padding: 0px 10px;
   position: relative;
   top: 50%;
}

#gallery:hover .hover-arrow:hover .hover-arrow-container {
   cursor: pointer;
   display: block;
}

@media (max-width: 1023px) {
   #gallery-images img {
      height: 500px;
   }
   
   #gallery-thumbs-container {
      border-left: 37px solid #fff;
      border-right: 39px solid #fff;
      height: 66px;
   }
   
   .gallery-thumb {
      height: 66px;
      width: 104px;
   }
   
   #controls {
      bottom: 13px;
      font-size: 32px;
   }
}

@media (max-width: 767px) {
   #gallery-images img {
      height: 200px;
   }
   
   #gallery-thumbs-container {
      border-left: 27px solid #fff;
      border-right: 29px solid #fff;
      height: 50px;
   }
   
   .gallery-thumb {
      height: 50px;
      width: 78px;
      margin-left: 5px;
   }
   
   #controls {
      bottom: 7px;
      font-size: 30px;
   }
}