.yags-mask {
    overflow:hidden;
    max-width:100%;
    margin:0 auto;
    position:relative;
}

.yags {
    position:relative;
}
.yags img {
    /* reset the responsive design's img display:block */
    display:inline;
}

/* disable selection */
.yags * {
   -moz-user-select: none;
   -khtml-user-select: none;
   -webkit-user-select: none;
   -ms-user-select: none;
   user-select: none;
}
.yags p {
    margin:0;
}

.yags-view {
    margin:0 auto;
    width: 100%;
    max-width: 100%;
}

.yags-slider {
    position:relative;
    width:100%;
    height:100%;
}

.yags-slider ul {
    margin:0 !important;
    padding:0 !important;
    list-style:none !important;
}

.yags-item {
    margin:0 !important;
    padding:0 !important;
    position:absolute;
    left:0;
    opacity:0;
    height:100%; /* for responsiveness */
    max-height:100%;
    overflow:hidden;
    text-align:center;
}
.yags-thumbnails .yags-item {
    overflow:visible; /* for tooltips etc */
}
.yags-item_on {
    opacity:1;
}

.yags-item img {
    max-width:100%;
    max-height:100%;
    height: auto;
}
.yags-image {
    display:block;
    margin: 0 auto;
}

/* for ie 8 */
@media \0screen {
  .yags-item img { width: auto; }
}

.img-scale_none .yags-item img,
.img-scale_center .yags-item img {
    max-width:none;
    max-height:none;
}
.yags-item .yags-item-content {
    text-align:left;
    position:absolute;
    left:20px;
    top:20px;
    padding: 15px 40px 15px 35px;
    background-color:#fefefe;
    background-color:rgba(255,255,255,0.5);
}
.yags-item .yags-item-title {
    font-size:24px;
    line-height:30px;
    margin:0 0 6px;
}
.yags-item .yags-item-text {
    font-size:14px;
    line-height:18px;
    margin:0;
}

.yags-item-link {
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    width:100%;
    height:100%;
}



.yags-controls {
    position:absolute;
    top:50%;
    width:100%;
}

.yags-controls button {
    position:absolute;
    top:-13px;
    width:28px;
    height:27px;
    padding:0;
    margin:0;
    font-size:14px;
    line-height:16px;
    border:0 none;
    background: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;}
.yags-controls button:focus {outline: none;}

.yags-controls button span {
    display:block;
    position: relative;
    width: 100%;
    height: 100%;
    background:transparent url('img/gfx.gif') 0 0 no-repeat;
    border:0 none;
}

.yags-controls button:focus,
.yags-controls button:hover,
.yags-controls button:active {
    opacity:1;
    background:none;
    padding:0;
    margin:0;
    border:0 none;
}
.touch .yags-controls button {
    visibility:hidden !important;
    opacity:1 !important;
}
.yags-controls button.yags-btn_previous {
    left:5px;
}
.yags-controls button.yags-btn_next {
    right:5px;
}
.yags-controls button.yags-btn_previous span {
    background-position:0 0;
}
.yags-controls button.yags-btn_next span {
    background-position:100% 0;
}
.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-item {
    cursor:pointer; 
    cursor:hand;
}
.yags-thumb-container {
    opacity:0;
    height:100%;
}
.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) ;
  }
}



/* allways show controls on touch devices */
.touch .yags_onhover .yags-controls,
.touch .yags-controls button {
    visibility:visible !important;
    opacity:1 !important;
}