/*
	GTX Gallery Flexislider Styles
*/

/* Mobile */
@media only screen and (max-width : 768px) {
	.gtx-gallery-slider .gtx-image-container{ max-height: 400px; }
	
	.gtx-gallery-slider.gtx-gallery-collapse-caption .flex-caption-title{
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		transition: .2s all;
	}
	.gtx-gallery-slider.gtx-gallery-collapse-caption .flex-caption-caption{
		display:inline;
		margin-right:10px;
		transition: .2s all;
	}
	.gtx-gallery-slider.gtx-gallery-collapse-caption .flex-caption-description{
		display:inline;
		transition: .2s all;
	}
	
	.gtx-gallery-slider.gtx-gallery-collapse-caption .caption-short .switch-button-expand{
		display:none!important;
	}
	
}
@media screen and (max-width: 500px) {
	.gtx-gallery-slider .gtx-image-container{ max-height: 300px; }
	body .gtx-gallery-slider .flex-carousel .flex-viewport {
		margin-left: 0;
		margin-right: 0;
	}
}

/* \Mobile */
article.has-gallery { overflow: hidden;}
.gtx-gallery-slider .flexslider{ border:0; margin-bottom:0; background:transparent; box-shadow:none;}
.gtx-gallery-slider .flexslider+.flexslider{margin-bottom:30px; }
.gtx-gallery-slider  { margin: 20px -2px 10px -2px; clear:both; }
.gtx-gallery-slider .slides>li{ background:#FFF; }
.gtx-gallery-slider .flex-caption {
	width: 100%;
	padding: 2%;
	text-shadow: 0 -1px 0 rgba(0,0,0,.3);
	margin:0;
	box-sizing: border-box;
}
.gtx-gallery-slider .flex-caption-position{ float:right; font-size:80%}
.gtx-gallery-slider .flex-caption .flex-caption-title{ font-weight:bold; }

.flex-direction-nav a{ height:50px}
.gtx-gallery-slider .flex-direction-nav a.flex-prev, .gtx-gallery-slider .flex-direction-nav a.flex-next {
	height: 70px;
	top: 50%; 
	margin-top:-35px;
}


.flex-current-is-ad .flex-direction-nav a{ display: table-cell; vertical-align: middle; height:100%; top:0; bottom:0; margin:0;  }
.flex-current-is-ad .flex-gallery .flex-direction-nav a{ min-width:30%; }
.flex-current-is-ad .flex-direction-nav a:before{margin-top:50%}

.flexslider .flex-next, .flexslider .flex-next:hover {right: 10px;}
.flexslider .flex-prev, .flexslider .flex-prev:hover {left: 10px;}
.flexslider.flex-carousel .flex-next, .flexslider.flex-carousel .flex-next:hover {right: 0px;}
.flexslider.flex-carousel .flex-prev, .flexslider.flex-carousel .flex-prev:hover {left: 0px;}
.gtx-gallery-slider .flexslider.flex-carousel:hover .flex-direction-nav .flex-prev {
  opacity: 0.7;
  left: 0px;
}
.gtx-gallery-slider .flexslider.flex-carousel:hover .flex-direction-nav .flex-next {
  opacity: 0.7;
  right: 0px;
}
.flexslider:hover .flex-direction-nav .flex-next,.flexslider:hover .flex-direction-nav .flex-prev{opacity:0.2}
.flexslider:hover .flex-direction-nav .flex-next:hover,.flexslider:hover .flex-direction-nav .flex-prev:hover{opacity:0.6}

.flex-gallery .flex-control-nav{ bottom: -10px}

.gtx-gallery-slider .gtx-ad-slide{ text-align:center;}
.gtx-gallery-slider .gtx-ad-slide .gtx-ad-container { 
	display:inline-block;
  	position: relative;
  	top: 50%;
  	transform: translateY(50%);
}

.gtx-gallery-slider .flex-carousel .slides .gtx-thumb-container:hover {opacity: 1;}

.gtx-gallery-slider .flex-carousel .slides img {
	display: block;
	cursor: pointer;
	height:auto!important;
}
.gtx-gallery-slider .flex-carousel .slides .gtx-thumb-container {
	opacity: .5;
}

.gtx-gallery-slider .flex-carousel .slides .flex-active-slide .gtx-thumb-container {opacity: 1; cursor: default;}

.gtx-gallery-slider .flex-carousel .slides li {margin-right: 5px;}

.gtx-gallery-slider .flex-carousel .slides li.gtx-thumb-backward{
	text-align:center;
	font-size:30px;
	cursor: pointer;
}

.gtx-gallery-slider-flexislider-with-thumbs .flex-carousel .flex-direction-nav .flex-disabled{ display:none; }
/* PAGINATED THUMBS*/

.gtx-gallery-slider .flex-paginated-carousel{}
	.gtx-gallery-slider .flex-paginated-carousel .slides .gtx-thumb-container { opacity: .5; border:2px solid transparent; }
	.gtx-gallery-slider .flex-paginated-carousel .slides .gtx-thumb-container:hover {opacity: 1;}
	.gtx-gallery-slider .flex-paginated-carousel .slides img { display: block; cursor: pointer; height:auto!important; width: 100%; }
	.gtx-gallery-slider .flex-paginated-carousel .slides li ul li.flex-active-slide .gtx-thumb-container {opacity: 1; cursor: default;}
	
	.gtx-gallery-slider .flex-paginated-carousel .slides>li { }
	.gtx-gallery-slider .flex-paginated-carousel .slides>li ul li.gtx-thumb-ad{ display:none; }
	.gtx-gallery-slider .flex-paginated-carousel .slides>li ul li { display:block; float:left; }
	.gtx-gallery-slider .flex-paginated-carousel .slides>li ul li img{ width: 100%; }
	.gtx-gallery-slider .flex-paginated-carousel .flex-control-nav{ bottom:-15px; }

.gtx-gallery-slider .gtx-image-container{ background-repeat: no-repeat;  background-position: center; overflow:hidden; }
.gtx-gallery-slider.gtx-gallery-not-crop .gtx-image-container{  background-size: contain; }
.gtx-gallery-slider.gtx-gallery-crop .gtx-image-container{ background-size: contain; }

.gtx-gallery-slider.gtx-gallery-not-crop .flex-caption{text-align:center;}


.flexslider.gtx-gallery-loading .gtx-ad-container  {background: url('../images/loading_spinner.gif') no-repeat center center;}


.gtx-gallery-slider .flex-direction-nav a.flex-next:before,
.gtx-gallery-slider .flex-direction-nav a.flex-prev:before  {
    content: none;
}

.gtx-gallery-slider .flex-direction-nav a {
	height: 100%;
	width: 70px;
	top: 0px;
	opacity: .5;
}

.gtx-gallery-slider .flex-direction-nav a.flex-next {
	background: url("../images/arrow_right.png");
	background-size: contain;
    background-repeat: no-repeat;
    background-position-y: 50%;
}

.gtx-gallery-slider .flex-direction-nav a.flex-prev {
	background: url("../images/arrow_left.png");
	background-size: contain;
    background-repeat: no-repeat;
    background-position-y: 50%;
}

.gtx-gallery-slider .flex-direction-nav a:before {
    content: none;
}

.gtx-gallery-slider .flex-carousel .flex-direction-nav a.flex-prev {
	background: url("../images/arrow_left.png");
	background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    height: 40px;
    margin-top: -20px;
    top: 50%;
}
.gtx-gallery-slider .flex-carousel .flex-direction-nav a.flex-next {
	background: url("../images/arrow_right.png");
	background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    height: 40px;
    margin-top: -20px;
    top: 50%;
}

.gtx-gallery-slider .flex-carousel .flex-viewport {
    margin-left: 35px;
    margin-right: 35px;
}

.flex-direction-nav .flex-disabled{
	opacity:0.5!important;
}

.flexslider:hover .flex-direction-nav .flex-prev, 
	.flexslider:hover .flex-direction-nav .flex-prev:hover,
	.flexslider .flex-direction-nav .flex-prev:hover,
	.flexslider:hover .flex-direction-nav .flex-next,
	.flexslider:hover .flex-direction-nav .flex-next:hover,
.flexslider .flex-direction-nav .flex-next:hover {
	  opacity: 1!important;
}

.flex-control-thumbs img:hover {
  opacity: inherit;
}

.flex-control-nav {
    position: inherit;
    bottom: 0px;
}

/* User Generated Content */
a.btn-primary {
	color: #fff;
}
a.btn-primary:hover {
	color: #fff;
}

.ugcg_form_container.ugcg-front.ugcg-front-ok {
    border: 1px solid #70A04A;
    padding: 0px 20px;
    margin: 10px 0px;
    background-color: #E9FAE5;
}

.ugcg_form_container #message.updated {
	display: none;
}

/* PAGINATED THUMBS */
.flex-paginated-carousel .slides>li ul li { display:inline-block; }
.flex-paginated-carousel .slides>li ul li img{ width: auto; }

.gtx-gallery-slider.gtx-gallery-limit-caption .flex-caption-inner-content{
	max-height: 150px;
	overflow:auto;
}

.gtx-gallery-slider.gtx-gallery-limit-caption .flex-caption-inner-content::-webkit-scrollbar {
    width: 8px;
}
 
.gtx-gallery-slider.gtx-gallery-limit-caption .flex-caption-inner-content::-webkit-scrollbar-track {
    background-color: #efefef;
    border-radius: 15px;
}
 
.gtx-gallery-slider.gtx-gallery-limit-caption .flex-caption-inner-content::-webkit-scrollbar-thumb {
    border-radius: 15px;
    background-color: #7D7D7D;
}


@media screen and (max-width: 450px) {
	.gtx-gallery-slider .gtx-ad-slide .gtx-ad-container { 
		display:inline-block;
		position: relative;
		top: 00%;
		transform: translateY(0%);
	}
	
}
/* NUMERIC PAGINATION */


.spagination {
    display: block;
    vertical-align: middle;
    text-align: center;
 }
.spagination a, .spagination i {
    display: inline-block;
    vertical-align: middle;
    width: 30px;
    height: 30px;
    text-align: center;
    padding: 3px 0 2px 0;
    -webkit-user-select:none;
       -moz-user-select:none;
        -ms-user-select:none;
         -o-user-select:none;
            user-select:none;
}

.spagination a {
    margin: 0 2px 0 2px;
    cursor: pointer;

}
.spagination i {
    margin: 0 3px 0 3px;
}
.spagination a.current {
    background-color: #DFDFDF;
    border-radius:50%;
}


