.yags-mask {
    overflow:hidden;
}
.yags {
	position:relative;
}

.yags-view {
	margin:0 auto;
	height:360px;
	width: 100%;
}

.yags-slider {
	position:relative;
	width:100%;
}

.yags-slider ul {
	margin:0 !important;
	padding:0 !important;
	list-style:none !important;
}

.yags-item {
	margin:0 !important;
	padding:0 !important;
	position:absolute;
	text-align:center;
	left:0;
	opacity:0;
}
.yags-item_on {
	opacity:1;
}

.yags-item a {
    display:block;
}

.yags-item img {
	max-width:100%;
	height: auto;
}
.yags-item .yags-item-content-custom {
	position:absolute;
	top:20px;
	right:20px;
	bottom:020px;
	left:20px;
	text-align:left;
}
.yags-item .yags-item-title {
	position:absolute;
	top:20px;
	left:20px;
	text-align:left;
	padding:6px 20px;
	font-size:20px;
	background-color:rgb(0,0,0);
	background-color:rgba(0,0,0,0.4);
	color:#fcfcfc;
}

.yags-controls {
	position:absolute;
	top:50%;
	width:100%;
}

.yags-controls button {
	position:absolute;
	top:-13px;
	width:28px;
	height:27px;
	background:transparent url('img/gfx.gif') 0 0 no-repeat;
	border:0 none;
	cursor:pointer;
	cursor:hand;
	-moz-appearance:none;
	-webkit-appearance:none;
	opacity:0.80;
              
  -webkit-transition: all 0.3s ease-out; 
     -moz-transition: all 0.3s ease-out; 
       -o-transition: all 0.3s ease-out; 
          transition: all 0.3s ease-out; 
}

.yags-controls button::-moz-focus-inner {
  border: 0;
}
button:focus { 
  outline: none; 
}

.touch .yags-controls button,
.yags-controls button:hover,
.yags-controls button:active {
	opacity:1;
}
.yags-controls button.yags-btn_previous {
	background-position:0 0;
	left:5px;
}
.yags-controls button.yags-btn_next {
	background-position:100% 0;
	right:5px;
}
.yags-controls button span i {
	visibility:hidden;
	text-indent:-9999px;	
}

.yags-controls button.yags-btn_disabled {
	cursor:default !important;
	opacity:0.1 !important;
}


.yags_onhover .yags-controls {
	visibility:hidden;
	opacity:0;
              
  -webkit-transition: all 0.3s ease-out; 
     -moz-transition: all 0.3s ease-out; 
       -o-transition: all 0.3s ease-out; 
          transition: all 0.3s ease-out; 
}
.no-touch .yags_onhover:hover .yags-controls {
    visibility:visible;
    opacity:1;
}



/* thumbnails */

.yags-thumbnails {
	width: 100%;
}

.yags-thumbnails .yags-view {
    height:100px;
}

.yags-thumb-container {
    opacity:0;/*
    transform:  rotate(0deg) scaleX(0.3) scaleY(0.3) ;
    -moz-transform:  rotate(0deg) scaleX(0.3) scaleY(0.3) ;
    -webkit-transform:  rotate(0deg) scaleX(0.3) scaleY(0.3) ;
    -ms-transform:  rotate(0deg) scaleX(0.3) scaleY(0.3) ;
    -o-transform:  rotate(0deg) scaleX(0.3) scaleY(0.3) ;*/
	
}
.yags-thumb-container-on {
  opacity:1;
  animation: animationFrames linear 0.5s;
  animation-iteration-count: 1;
  transform-origin: 50% 50%;
  animation-fill-mode:backwards;
  -webkit-animation: thumbin linear 0.5s;
  -webkit-animation-iteration-count: 1;
  -webkit-transform-origin: 50% 50%;
  -webkit-animation-fill-mode:forwards;
  -moz-animation: thumbin linear 0.5s;
  -moz-animation-iteration-count: 1;
  -moz-transform-origin: 50% 50%;
  -moz-animation-fill-mode:forwards;
  -o-animation: thumbin linear 0.5s;
  -o-animation-iteration-count: 1;
  -o-transform-origin: 50% 50%;
  -o-animation-fill-mode:forwards;
  -ms-animation: thumbin linear 0.5s;
  -ms-animation-iteration-count: 1;
  -ms-transform-origin: 50% 50%;
  -ms-animation-fill-mode:forwards;
}

@keyframes thumbin{
  0% {
    opacity:0;
    transform:  rotate(0deg) scaleX(0.01) scaleY(0.01) ;
  }
  50% {
    opacity:1;
    transform:  scaleX(1.1) scaleY(1.1) ;
  }
  75% {
    transform:  scaleX(0.95) scaleY(0.95) ;
  }
  100% {
    opacity:1;
    transform:  rotate(0deg) scaleX(1) scaleY(1) ;
  }
}

@-moz-keyframes thumbin{
  0% {
    opacity:0;
    -moz-transform:  rotate(0deg) scaleX(0.01) scaleY(0.01) ;
  }
  50% {
    opacity:1;
    -moz-transform:  scaleX(1.1) scaleY(1.1) ;
  }
  75% {
    -moz-transform:  scaleX(0.95) scaleY(0.95) ;
  }
  100% {
    opacity:1;
    -moz-transform:  rotate(0deg) scaleX(1) scaleY(1) ;
  }
}

@-webkit-keyframes thumbin {
  0% {
    opacity:0;
    -webkit-transform:  rotate(0deg) scaleX(0.01) scaleY(0.01) ;
  }
  50% {
    opacity:1;
    -webkit-transform:  scaleX(1.1) scaleY(1.1) ;
  }
  75% {
    -webkit-transform:  scaleX(0.95) scaleY(0.95) ;
  }
  100% {
    opacity:1;
    -webkit-transform:  rotate(0deg) scaleX(1) scaleY(1) ;
  }
}

@-o-keyframes thumbin {
  0% {
    opacity:0;
    -o-transform:  rotate(0deg) scaleX(0.01) scaleY(0.01) ;
  }
  50% {
    opacity:1;
    -o-transform:  scaleX(1.1) scaleY(1.1) ;
  }
  75% {
    -o-transform:  scaleX(0.95) scaleY(0.95) ;
  }
  100% {
    opacity:1;
    -o-transform:  rotate(0deg) scaleX(1) scaleY(1) ;
  }
}

@-ms-keyframes thumbin {
  0% {
    opacity:0;
    -ms-transform:  rotate(0deg) scaleX(0.01) scaleY(0.01) ;
  }
  50% {
    opacity:1;
    -ms-transform:  scaleX(1.1) scaleY(1.1) ;
  }
  75% {
    -ms-transform:  scaleX(0.95) scaleY(0.95) ;
  }
  100% {
    opacity:1;
    -ms-transform:  rotate(0deg) scaleX(1) scaleY(1) ;
  }
}
