/*! LexBox (Author: Jan Doušek (mail@jandousek.cz)) */

html.lexBox-html, html.lexBox-html body {
  overflow: hidden;
}

/*
  lexBox
  ***
*/

.lexBox {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 99999999;
  overflow: hidden;
  opacity: 0;
  -webkit-transition: opacity 300ms linear;
  -o-transition: opacity 300ms linear;
  transition: opacity 300ms linear;
}

/*
  is-opened
  ---
*/

.lexBox.is-opened {
  opacity: 1;
}

/*
  overlay
  ---
*/

.lexBox-overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: #191a1b url('../img/loader.gif') center center no-repeat;
  background-color: rgba(17, 19, 54, 0.95);
}
.lexBox-overlay:before {
  content: '';
  width: 100%;
  height: 70px;
  position: absolute;
  left: 0;
  bottom: 0;
  display: none;
  background-color: #131429;
}

/*
  slider, slides
  ---
*/

.lexBox-slider, .lexBox-slides {
  position: absolute;
  z-index: 10;
}
.lexBox-slider {
  left: 95px;
  top: 110px;
  right: 95px;
  bottom: 95px;
  overflow: hidden;
  -webkit-transition: all 300ms ease-in-out;
  -o-transition: all 300ms ease-in-out;
  transition: all 300ms ease-in-out;
}
.lexBox-slides {
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  white-space: nowrap;
  font-size: 0;
}

/*
  style-cover, style-contain
  ***
*/

.lexBox.style-cover .lexBox-slider, .lexBox.style-contain .lexBox-slider {
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

/*
  is-opened
  ...
*/

.lexBox.is-opened .lexBox-slides {
  -webkit-transition: -webkit-transform 600ms ease-in-out;
  transition: -webkit-transform 600ms ease-in-out;
  -o-transition: transform 600ms ease-in-out;
  transition: transform 600ms ease-in-out;
  transition: transform 600ms ease-in-out, -webkit-transform 600ms ease-in-out;
}

/*
  is-shaking
  ...
*/

.lexBox.is-shaking .lexBox-slider {
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
  -webkit-perspective: 1000px;
          perspective: 1000px;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-animation: lexBox_shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
          animation: lexBox_shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}

/*
  item
  ---
*/

.lexBox-item {
  height: 100%;
  width: 100%;
  -webkit-transform: scale(0.3);
      -ms-transform: scale(0.3);
          transform: scale(0.3);
  display: inline-block;
  background: center center no-repeat;
  background-size: contain;
  line-height: 1px;
  text-align: center;
  opacity: 0;
}
.lexBox-item:before {
  content: '';
  display: inline-block;
  height: 50%;
  width: 1px;
  margin-right: -1px;
}

/*
  is-opened
  ...
*/

.lexBox.is-opened .lexBox-item {
  -webkit-transition: opacity 600ms linear, -webkit-transform 600ms ease-in-out;
  transition: opacity 600ms linear, -webkit-transform 600ms ease-in-out;
  -o-transition: transform 600ms ease-in-out, opacity 600ms linear;
  transition: transform 600ms ease-in-out, opacity 600ms linear;
  transition: transform 600ms ease-in-out, opacity 600ms linear, -webkit-transform 600ms ease-in-out;
}

/*
  is-active
  ...
*/

.lexBox-item.is-active {
  -webkit-perspective: 1000px;
          perspective: 1000px;
  -webkit-transform: scale(1) rotate(0deg);
      -ms-transform: scale(1) rotate(0deg);
          transform: scale(1) rotate(0deg);
  opacity: 1;
}

/*
  style-cover
  ***
*/

.lexBox.style-cover .lexBox-item {
  -webkit-transform: scale(1);
      -ms-transform: scale(1);
          transform: scale(1);
  background-size: cover;
  opacity: 1;
}

/*
  style-contain
  ***
*/

.lexBox.style-contain .lexBox-item {
  background-size: contain;
}

/*
  image
  ---
*/

.lexBox-image {
  width: auto;
  height: auto;
  max-height: 100%;
  max-width: 100%;
  position: relative;
  top: -10000px;
  display: inline-block;
  vertical-align: middle;
  visibility: hidden;
  opacity: 0;
}

/*
  infos
  ---
*/

.lexBox-infos {
  position: absolute;
  left: 30px;
  top: 40px;
  z-index: 10;
  line-height: 1.7;
  white-space: nowrap;
  font: italic 14px Arial, Helvetica, sans-serif;
  color: #a7aad2;
}
.lexBox-infos > span {
  display: inline-block;
  vertical-align: middle;
}
.lexBox-infos > span:first-child {
  color: #fff;
}
.lexBox-infos > span:first-child > span {
  position: relative;
  top: -1px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 3px;
  font-size: 50%;
  opacity: 0.5;
}

/*
  gallery
  ...
*/

.lexBox-gallery:after {
  content: '-';
  display: inline-block;
  margin: 0 5px;
}


/*
  title
  ...
*/

.lexBox-title {
  left: 60px;
}

/*
  num
  ...
*/

.lexBox-num {
  margin-right: 10px;
  font-weight: bold;
}

/*
  controls
  ---
*/

.lexBox-controls {
  height: 40px;
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 10;
  font-size: 0;
}
.lexBox-controls > a {
  width: 40px;
  height: 40px;
  position: relative;
  display: inline-block;
  margin-left: 10px;
  background-color: #505386;
  -webkit-box-shadow: 0 3px 6px rgba(21, 24, 67, 0.16);
          box-shadow: 0 3px 6px rgba(21, 24, 67, 0.16);
  border-radius: 5px;
  -webkit-transition: background-color 150ms linear;
  -o-transition: background-color 150ms linear;
  transition: background-color 150ms linear;
}
.lexBox-controls > a:before, .lexBox-controls > a:after {
  content: '';
  height: 2px;
  position: absolute;
  left: 50%;
  top: 50%;
  background-color: #fff;
  -webkit-transition: background-color 150ms linear;
  -o-transition: background-color 150ms linear;
  transition: background-color 150ms linear;
}
.lexBox-controls > a:before {
  -webkit-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
          transform: rotate(45deg);
}
.lexBox-controls > a:after {
  -webkit-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
          transform: rotate(-45deg);
}

/*
  is-disabled
  ---
*/

.lexBox-controls > a.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/*
  prev
  ...
*/

.lexBox-prev:before, .lexBox-prev:after {
  width: 25%;
  -webkit-transform-origin: left center;
      -ms-transform-origin: left center;
          transform-origin: left center;
  margin: -1px 0 0 -5px;
}

/*
  next
  ...
*/

.lexBox-next:before, .lexBox-next:after {
  width: 25%;
  -webkit-transform-origin: right center;
      -ms-transform-origin: right center;
          transform-origin: right center;
  margin: -1px 0 0 -5px;
}

/*
  close
  ...
*/

.lexBox-close:before, .lexBox-close:after {
  width: 40% !important;
  margin: -1px 0 0 -8px;
}

/* actions */

.lexBox-controls > a:hover {
  background-color: #fff;
}
.lexBox-controls > a:hover:before, .lexBox-controls > a:hover:after {
  background-color: #6B7688;
}

/*
  pager
  ---
*/

.lexBox-pager {
  position: absolute;
  left: 100px;
  right: 100px;
  bottom: 40px;
  z-index: 10;
  text-align: center;
  white-space: nowrap;
  font-size: 0;
}
.lexBox-pager > a {
  width: 12px;
  height: 12px;
  overflow: hidden;
  display: inline-block;
  margin: 0 5px;
  vertical-align: middle;
  background-color: #505386;
  -webkit-box-shadow: 0 3px 6px rgba(21, 24, 67, 0.16);
          box-shadow: 0 3px 6px rgba(21, 24, 67, 0.16);
  border-radius: 100%;
  white-space: nowrap;
  text-indent: 200%;
  -webkit-transition: background-color 150ms linear;
  -o-transition: background-color 150ms linear;
  transition: background-color 150ms linear;
}

/* actions */

.lexBox-pager > a:hover, .lexBox-pager > a.is-active {
  background-color: #fff;
}

/*
  animations
  ---
*/

@-webkit-keyframes lexBox_shake {

  10%, 90% {
    -webkit-transform: translate(-4px, 0);
            transform: translate(-4px, 0);
  }
  20%, 80% {
    -webkit-transform: translate(4px, 0);
            transform: translate(4px, 0);
  }
  30%, 50%, 70% {
    -webkit-transform: translate(-4px, 0);
            transform: translate(-4px, 0);
  }
  40%, 60% {
    -webkit-transform: translate(4px, 0);
            transform: translate(4px, 0);
  }

}

@keyframes lexBox_shake {

  10%, 90% {
    -webkit-transform: translate(-4px, 0);
            transform: translate(-4px, 0);
  }
  20%, 80% {
    -webkit-transform: translate(4px, 0);
            transform: translate(4px, 0);
  }
  30%, 50%, 70% {
    -webkit-transform: translate(-4px, 0);
            transform: translate(-4px, 0);
  }
  40%, 60% {
    -webkit-transform: translate(4px, 0);
            transform: translate(4px, 0);
  }

}

/*
  responzivity
  ---
*/


@media only screen and (max-width: 1200px) {

  /*
    lexbox
    ---
  */


  .lexBox {
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
  }

  /*
    overlay
    ...
  */

  .lexBox-overlay:before {
    display: block;
  }

  /*
    slider
    ...
  */

  .lexBox-slider {
    left: 0;
    top: 0;
    right: 0;
    bottom: 70px;
  }

  /*
    info
    ---
  */

  .lexBox-infos {
    top: auto;
    bottom: 25px;
  }

  /*
    info
    ---
  */

  .lexBox-controls {
    top: auto;
    bottom: 15px;
  }

  /*
    pager
    ---
  */

  .lexBox-pager {
    left: auto;
    top: 30px;
    right: 30px;
    bottom: auto;
  }

}
