/* ======================================================================================================================================================
Gallery
====================================================================================================================================================== */
.avia-gallery{overflow: hidden; padding-bottom:2px; clear:both;}
.avia-gallery img{float:left; border-style: solid; border-width:1px; padding:7px; width:100%; border-radius: 0;}
.avia-gallery .avia-gallery-big{display: block;overflow: hidden; padding:7px;  margin-bottom:-1px; border-top-left-radius: 2px; border-top-right-radius: 2px; border-style: solid ; border-width:1px; border-color: #e1e1e1;}
.avia-gallery .avia-gallery-big-inner{display: block;overflow: hidden; height: 100%;}
.avia-gallery .avia-gallery-big a{color: #e1e1e1;}
.avia-gallery .avia-gallery-big img{padding:0; border:none;}
.avia-gallery .avia-gallery-thumb a{ width:25%; opacity: 1; }
.avia-gallery .avia-gallery-thumb a {
    display: block;
    float: left;
    color: #e1e1e1;
    aspect-ratio: 16 / 9;
}
.avia-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avia-gallery .avia-gallery-thumb a:hover img{opacity: 0.5;}
.avia-gallery .avia-gallery-caption{display:none;}
.avia-gallery .avia-gallery-big-no-crop-thumb {text-align: center;}
.avia-gallery .avia-gallery-big-no-crop-thumb img{clear:both; float: none; text-align: center;}


/*gallery animation*/
.avia_transform .avia-gallery-animate .avia-gallery-thumb img{
opacity: 0.1;
-webkit-transform:	scale(0.5);
transform:			scale(0.5);
}
.avia_transform .avia-gallery-animate .avia-gallery-thumb  img.avia_start_animation{
-webkit-animation: avia_appear 0.9s 1 cubic-bezier(0.175, 0.885, 0.320, 1.275); /* Safari 4+ */
animation:         avia_appear 0.9s 1 cubic-bezier(0.175, 0.885, 0.320, 1.275); /* IE 10+ */
opacity: 1;
-webkit-transform:	scale(1);
transform:			scale(1);
}

.avia-gallery-animate .av-hover-grow{overflow: hidden; }
.avia-gallery-animate .av-hover-grow img {
-webkit-transition: all 1.7s cubic-bezier(0.230, 1.000, 0.320, 1.000);
transition:			all 1.7s cubic-bezier(0.230, 1.000, 0.320, 1.000);
}
.avia-gallery-animate .av-hover-grow:hover img { -webkit-transform: scale(1.1); transform: scale(1.1); }

.av-hide-gallery-thumbs .avia-gallery-thumb{display:none;}


#av-admin-preview .avia-gallery .avia-gallery-big-inner{height:auto;}
.avia-gallery-big-inner img {
    transition: opacity 0.4s ease;
}
.avia-gallery-thumb a {
    position: relative;
    display: inline-block;
}
.avia-gallery-thumb .avia-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-bottom: 0px;
    z-index: 10;
    width: 100px;
    text-align: center;
    line-height: normal;
}
.avia-gallery-thumb a:hover .avia-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}
.avia-gallery-thumb .avia-tooltip:before {
    content: "";
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid rgba(0,0,0,0.85);
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
}
@media only screen and (max-width: 767px)
{
	.responsive .avia-gallery-thumb img{padding:3px;}
}



/* ======================================================================================================================================================
Horizontal Gallery
====================================================================================================================================================== */

.av-horizontal-gallery{
	clear:both;
	position: relative;
	z-index: 1;
	overflow: hidden;
}


.av-horizontal-gallery-inner{
	position: relative;
	white-space:nowrap;
	opacity: 0;
}

.av-horizontal-gallery-slider{
	left:0;
	position: absolute;
	height:100%;
	width:100%;
}

.av-horizontal-gallery-wrap{
	height:100%;
	top:0;
	display: inline-block;
	position: relative;
	z-index: 1;
	-webkit-user-select: none;       
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	cursor: pointer;
	vertical-align: top;
}

.av-horizontal-gallery-animated .av-horizontal-gallery-inner{
	-webkit-transition: opacity 0.4s ease-in-out;
	transition: 		opacity 0.4s ease-in-out;	
	opacity: 1;
}

.av-horizontal-gallery-animated .av-horizontal-gallery-slider{
	-webkit-transition: left 0.4s ease-in-out;
	transition: 		left 0.4s ease-in-out;	
}

.av-horizontal-gallery-animated .av-horizontal-gallery-wrap{
	-webkit-transition: all 0.4s ease-in-out;
	transition: 		all 0.4s ease-in-out;  
}

.av-horizontal-gallery-wrap:after{
	height:100%;
	width:100%;
	position: absolute;
	content:"";
	top: 0;
	left:0;
	z-index: 5;
}

.av-horizontal-gallery-enlarge-effect.av-horizontal-gallery{
	padding: 3.75% 0px;
}


.av-horizontal-gallery-enlarge-effect .av-horizontal-gallery-wrap.av-active-gal-item{
	z-index: 2;
	-webkit-transform: 	scale(1.3);
	-ms-transform: 		scale(1.3);
	transform: 			scale(1.3);
}

.av-horizontal-gallery-wrap:first-child{
	transform-origin: 0% 50%;
}

.av-horizontal-gallery-wrap:last-child{
	transform-origin: 100% 50%;
}


.av-horizontal-gallery-wrap.av-active-gal-item:after{
	display: none;
}

.av-horizontal-gallery-link{ 
	position: absolute;
	opacity: 0;
	bottom:10px;
	right:10px;
	-webkit-transition: opacity 0.4s ease-in-out;
	transition: 		opacity 0.4s ease-in-out;
	z-index: 100;
}

.av-horizontal-gallery-wrap:hover .av-horizontal-gallery-link{ 
	opacity: 1;
}

.av-horizontal-gallery-img{
	height: 100%;
    width: auto;
    display: block
}

.av-horizontal-gallery-large-gap .av-horizontal-gallery-wrap{
	margin-right: 15px;
}

.av-horizontal-gallery-1px-gap .av-horizontal-gallery-wrap{
	margin-right: 1px;
}

#top .av-horizontal-gallery-link {
    color: #fff;
    background: rgba(0,0,0,0.3);
    display: block;
    line-height: 24px;
    width: 24px;
    text-align: center;
    border-radius: 3px;
    text-decoration: none;
    -webkit-transition: all 0.2s ease-in-out;
	transition: 		all 0.2s ease-in-out;
}

#top .av-horizontal-gallery-link:hover{
    -webkit-transform: 	scale(1.3);
	-ms-transform: 		scale(1.3);
	transform: 			scale(1.3);
}

.av-horizontal-gallery .avia-slideshow-controls a{opacity: 0;}
.av-horizontal-gallery:hover .avia-slideshow-controls a{opacity: 1;}
.avia-slideshow-arrows a {
    display: block;
    text-decoration: none;
    color: #FFf !important;
    visibility: visible;
    position: absolute;
    width: 60px;
    text-align: center;
    height: 60px;
    line-height: 72px;
    font-size: 25px;
    top: 50%;
    margin: -30px 15px 0;
    z-index: 99;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    font-size: 32px;
}
.av-horizontal-gallery .avia-slideshow-controls a {
    opacity: 0;
}
.av-horizontal-gallery:hover .avia-slideshow-controls a {
    opacity: 1;
}
.avia-slideshow-arrows a.next-slide {
    right: 0;
}
/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
@media only screen and (max-width: 767px) {
	.avia-slideshow-controls a{display:none;}
    .av-horizontal-gallery .avia-slideshow-controls a {
        display: block;
        opacity: 1;
        width: 38px;
        height: 38px;
        line-height: 24px;
        margin-top: 0;
    }
	.av-horizontal-gallery-inner{position: static; min-height:180px;}
	.av-horizontal-gallery-enlarge-effect .av-horizontal-gallery-wrap.av-active-gal-item{
	-webkit-transform: 	scale(1);
	-ms-transform: 		scale(1);
	transform: 			scale(1);
	}	
	
	.av-horizontal-gallery-wrap{ max-width: 85vw; margin:0; overflow: hidden;}
	.av-horizontal-gallery-img{ height: auto; width: 100%; 
		-webkit-transform: 	translate(0, -50%); 
		-ms-transform: 		translate(0, -50%);
		transform: 			translate(0, -50%);
		top:50%;
		position: relative;
	}
	
	.av-horizontal-gallery-fullwidth .av-horizontal-gallery-wrap{ max-width: 100vw;}
}