.osg-gallery {
	margin: 10px -20px;
}
.gallery-header{
	font-size: 16px;
	color: white;
	padding: 10px 15px 10px; 
	vertical-align: middle;
	font-family: 'Open Snas', sans-serif; 
	position: relative;
}
.gallery-title {
	display: inline-block; 
	font-weight: 600;
	padding-right: 45px;
}
.gallery-count{
	display: inline-block; 
	font-weight: 400;
	font-size: 14px;
	color: #ddd;
	position: absolute;
	bottom: 25px;
	right: 10px;
}
.ad-continue{cursor: pointer;text-decoration: underline;}
.ad-continue:before{
    border-color: transparent #bf1f27;
    content: '\f002';
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 12px;
    font-size: 1px;
    font-family: "flexslider-icon";
    right: 40px;
    position: absolute;
    bottom: -61px;
 }
    
.image-loading{position: absolute;width: 100%;text-align: center;}
/* .gallery-first-image{opacity: 0.5;} */
.gallery-desc{font-size: .8em;text-align: left;padding: 24px 20px 0;}
.gallery-images .slides{margin: 0 !important;}
.slides li{text-align: center;}
.gallery-images .slides, .gallery-images .slides li{padding: 0 !important;}
.gallery-images {position: relative;}
#content .slides li img {
    position: relative;
    display: inline-block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 250px;
    vertical-align: middle;
    margin: 0;
}
.slides li img:after {
	width: 100%;
	height: 100%;
	background-color: orange;
}
/*.gallery-carousel .slides{
	margin: auto;
    position: relative;
    text-align: center;
    padding: 10px 0 !important;
}
.gallery-carousel .slides li{
	width: 100px !important;
    margin: 0 10px 0 0;
    height: 75px;
    overflow: hidden;
    padding: 0 !important;
}*/
.flex-direction-nav{
    margin: 0 !important;
    padding: 0 !important;
}
.flex-direction-nav li{list-style: none !important;padding: 0 !important;}

/*.gallery-carousel {position: relative;}
.gallery-carousel .flex-direction-nav {
    position: absolute;
    top: 10px;
}
.gallery-carousel .flex-direction-nav .flex-prev {
    left: 0;
    top: 40px;
}
.gallery-carousel .flex-direction-nav .flex-next {
    right: 0;
    top: 40px;
}*/
/* Clearfix for the .slides element */
.slides:after {content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;}


@-webkit-keyframes ball-pulse-sync {
  33% {
    -webkit-transform: translateY(10px);
            transform: translateY(10px); }
  66% {
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px); }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0); } }

@keyframes ball-pulse-sync {
  33% {
    -webkit-transform: translateY(10px);
            transform: translateY(10px); }
  66% {
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px); }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0); } }

.ball-pulse-sync > div:nth-child(1) {
  -webkit-animation: ball-pulse-sync 0.6s -0.14s infinite ease-in-out;
          animation: ball-pulse-sync 0.6s -0.14s infinite ease-in-out; }

.ball-pulse-sync > div:nth-child(2) {
  -webkit-animation: ball-pulse-sync 0.6s -0.07s infinite ease-in-out;
          animation: ball-pulse-sync 0.6s -0.07s infinite ease-in-out; }

.ball-pulse-sync > div:nth-child(3) {
  -webkit-animation: ball-pulse-sync 0.6s 0s infinite ease-in-out;
          animation: ball-pulse-sync 0.6s 0s infinite ease-in-out; }

.ball-pulse-sync > div {
  background-color: #eee;
  width: 15px;
  height: 15px;
  border-radius: 100%;
  margin: 2px;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
  display: inline-block; }


.gallery-images .flex-direction-nav a {
	text-indent: 0;
	position: absolute;
	display: inline-block;
	margin: 0;
	top: 60px;
	right: 0;
	height: 80px;
	width: 40px;
	border-radius: 4px 0 0 4px;
	background-color: rgba(100,100,100,.3);
	background-image: none;
	cursor: pointer;
	text-align: center;
	opacity: 1;
	color: #ccc;
	z-index: 10001;
}
.gallery-images .flex-direction-nav a:hover {
	background-color: rgba(150,150,150,.4);
}
.gallery-images .flex-direction-nav a.flex-prev {
	border-radius: 0 4px 4px 0;
}
.flex-direction-nav a:before {
    display: inline-block;
	margin-top: 32px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 8px 0 8px 12px;
	content: '.';
	font-size: 1px;
}
.flex-direction-nav a.flex-prev:before {
    border-width: 8px 12px 8px 0;
	content: '.';
}

.flex-img-wrap {
	background-color: #eee;
/* 	opacity: 0; */
	-webkit-transition: opacity 2s; /* Safari */
    transition: opacity 2s;
}
.gallery-first-image {position: relative;}
.gallery-first-image .flex-img-wrap {
	opacity: 1;
}
.span-load-gallery {
	position: absolute;
	display: none;
	top: 60px;
	right: 0;
	height: 80px;
	width: 40px;
	border-radius: 4px 0 0 4px;
	background-color: rgba(100,100,100,.5);
	cursor: pointer;
	text-align: center;
	z-index: 10001;
}
.span-load-gallery:hover {
	background-color: rgba(150,150,150,.4);
}
.span-load-gallery i {
	display: inline-block;
	margin-top: 32px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 8px 0 8px 12px;
}

.first-img-overlay {
	position: absolute;
	background-color: #fff;
	top: 0; left: 0;bottom: 0; right: 0;
	opacity: .7;
	z-index: 10000;
}
.first-img-overlay span {
	display: block;
	position: absolute;
	width: 58px;
	height: 50px;
	top: 30%; left: 0; right: 0;
	margin:0 auto;
}
.img-overlay {
	top: 190px;
}
.img-overlay span {
	display: block;
	position: absolute;
	width: 58px;
	height: 50px;
	top: 10%; left: 0; right: 0;
	margin:0 auto;
}
.flex-slide .img-overlay {top: 0;}
.flex-slide .img-overlay span{
    width: 108px;
    height: 50px;
    top: 16px;
    background: white;
}
.first-img-overlay .ball-pulse-sync>div {
	background-color: #ccc;
}
.flex-direction-nav a {
    position: absolute;
    top: 20%;
    width: 33px;
    height: 52px;
    overflow: hidden;
    z-index: 9999;
    opacity: 0.6;
    filter: alpha(opacity=60);
}
.flex-ad-container {
	width: 100%;
	height: 300px;
	background-color: #eee;
	position: relative;
}
.flex-ad-box {
	position: absolute;
	width: 300px;
	height: 250px;
	top: 0; bottom: 0; right: 0; left: 0;
	margin: auto;
}

@media only screen and (min-width: 375px) {

.gallery-header{font-size: 17px;}
#content .slides li img {max-height: 300px;}	
.gallery-images .flex-direction-nav a,
.span-load-gallery {top: 80px;}

}
@media only screen and (min-width: 400px) {

#content .slides li img {max-height: 350px;}
.gallery-images .flex-direction-nav a,
.span-load-gallery {top: 90px;}
.flex-ad-container {height:0; padding-top: 66%;}
	
}

@media only screen and (min-width: 600px) {
	
.osg-gallery {margin:20px 0 10px;}
	
}
@media screen and (max-width: 860px){
	.flex-direction-nav .flex-prev{left: 0;}
}
@media only screen and (min-width: 1020px) {
	
.gallery-header{font-size: 19px;padding: 20px 30px 20px; }
#content .slides li img {max-height: 453px;}
.gallery-count {font-size: 19px;bottom: auto; top: 20px; right: 29px;}
.gallery-images {overflow: hidden;}
.gallery-images .flex-direction-nav a {top:128px;height: 150px;width: 55px; -webkit-transition: all .5s ease-in-out;-moz-transition: all .5s ease-in-out;-o-transition: all .5s ease-in-out;transition: all .5s ease-in-out;}
.gallery-images .flex-direction-nav a.flex-next {right: -56px;}
.gallery-images .flex-direction-nav a.flex-prev { left: -56px;}	
.gallery-images:hover .flex-direction-nav a.flex-next {right: 0;-webkit-transition: all .5s ease-in-out;-moz-transition: all .5s ease-in-out;-o-transition: all .5s ease-in-out;transition: all .5s ease-in-out;}
.gallery-images:hover .flex-direction-nav a.flex-prev { left: 0;-webkit-transition: all .5s ease-in-out;-moz-transition: all .5s ease-in-out;-o-transition: all .5s ease-in-out;transition: all .5s ease-in-out;}
.span-load-gallery {top:128px;height: 150px;width: 55px;}
.flex-direction-nav a:before,
.span-load-gallery i {margin-top: 65px;border-width: 10px 0 10px 14px;}
.flex-direction-nav a.flex-prev:before {border-width: 10px 14px 10px 0; margin-right: 1px;}

}
