/* Swipebox-Enhance (author: mail@jandousek.cz) */

/*
  blur
  ***
*/

html.swipebox-html #swipebox-body.effect-scale {
  -webkit-transform: scale(1.5);
  -moz-transform: scale(1.5);
  transform: scale(1.5);
  -webkit-transition: 300ms -webkit-transform;
  -moz-transition: 300ms -moz-transform;
  transition: 300ms transform;
}
html.swipebox-html #swipebox-body.effect-blur {
  -webkit-filter: blur(2px);
  filter: blur(2px);
}

/*
  overlay, container
  ***
*/

#swipebox-overlay {
  width: auto !important;
  height: auto !important;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 99999 !important;
  overflow: hidden;
  background-color: rgba(255,255,255,0.75);
}
#swipebox-container {
  position: absolute;
  left: 110px;
  top: 110px;
  right: 110px;
  bottom: 110px;
  overflow: hidden;
}

/*
  loader
  ---
*/

#swipebox-container:after {
  content: '';
  width: 50px;
  height: 50px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -25px 0 0 -25px;
  background: #2d2f30 url('../../img/swipebox_enhanced/loader.gif') center center no-repeat;
  border-radius: 100%;
}

/*
  slider
  ***
*/

#swipebox-slider {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  display: none;
  white-space: nowrap;
  -webkit-transition: all 0.8s;
  -moz-transition: all 0.8s;
  transition: all 0.8s;
}
#swipebox-slider .slide {
  height: 100%;
  width: 100%;
  display: inline-block;
  line-height: 1px;
  text-align: center;
}
#swipebox-slider .slide:before {
  content: "";
  display: inline-block;
  height: 50%;
  width: 1px;
  margin-right: -1px;
}

/*
  img, iframe, video
  ---
*/

#swipebox-slider .slide img,
#swipebox-slider .slide .swipebox-video-container,
#swipebox-slider .slide .swipebox-inline-container {
  width: auto;
  height: auto;
  max-height: 100%;
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}
#swipebox-slider .slide .swipebox-video-container {
  width: 100%;
  max-width: 1140px;
  max-height: 100%;
  box-sizing: border-box;
}
#swipebox-slider .slide .swipebox-video-container .swipebox-video {
  width: 100%;
  height: 0;
  position: relative;
  overflow: hidden;
  padding-bottom: 56.25%;
}
#swipebox-slider .slide .swipebox-video-container .swipebox-video iframe {
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
}

/*
  title
  ***
*/

#swipebox-title {
  position: absolute;
  right: 55px;
  top: 30px;
  z-index: 20;
  padding: 14px 40px 16px 25px;
  background-color: #eee;
  border-radius: 100px 0 0 100px;
  line-height: 1.7;
  font: 15px 'Open Sans', sans-serif;
  white-space: nowrap;
  color: #2d2f30;
}
#swipebox-title:empty {
  display: none;
}
#swipebox-title a {
  font-size: 90%;
}

/*
  bars
  ***
*/

#swipebox-top-bar, #swipebox-bottom-bar {
  opacity: 0;
  -webkit-transition: opacity 0.2s;
  -moz-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

/* stavy */

#swipebox-top-bar.visible-bars, #swipebox-bottom-bar.visible-bars {
  opacity: 1;
}

/*
  constrols
  ***
*/

#swipebox-prev, #swipebox-next, #swipebox-close {
  width: 50px;
  height: 50px;
  position: absolute;
  z-index: 20;
  display: block;
  background: #2d2f30 url('../../img/swipebox_enhanced/icons.png') no-repeat;
  background-size: 300% 200%;
  border-radius: 100%;
  cursor: pointer;
  -webkit-transition: background-color 200ms;
  -moz-transition: background-color 200ms;
  transition: background-color 200ms;
}
#swipebox-prev {
  background-position: left top;
}
#swipebox-next {
  background-position: center top;
}
#swipebox-close {
  background-position: right top;
}
#swipebox-prev, #swipebox-next {
  top: 50%;
  margin-top: -25px;
}
#swipebox-prev {
  left: 30px;
}
#swipebox-next {
  right: 30px;
}
#swipebox-close {
  right: 30px;
  top: 30px;
  background-color: #eee;
  background-position: right bottom;
}

/* stavy */

#swipebox-prev:hover, #swipebox-next:hover {
  background-color: #a1bb3a;
}
#swipebox-close:hover {
  background-color: #d64932;
  background-position: right top;
}
#swipebox-prev.disabled, #swipebox-next.disabled, #swipebox-close.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/*
  animations
  ***
*/

@-webkit-keyframes leftSpring {
  0% { left: 0; }
  50% { left: 30px; }
  100% { left: 0; }
}
@-moz-keyframes leftSpring {
  0% { left: 0; }
  50% { left: 30px; }
  100% { left: 0; }
}
@keyframes leftSpring {
  0% { left: 0; }
  50% { left: 30px; }
  100% { left: 0; }
}
@-webkit-keyframes rightSpring {
  0% { left: 0; }
  50% { left: -30px; }
  100% { left: 0; }
}
@-moz-keyframes rightSpring {
  0% { left: 0; }
  50% { left: -30px; }
  100% { left: 0; }
}
@keyframes rightSpring {
  0% { left: 0; }
  50% { left: -30px; }
  100% { left: 0; }
}
@-webkit-keyframes openSwipebox {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@-moz-keyframes openSwipebox {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes openSwipebox {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@-webkit-keyframes openSwipeboxContainer {
  0% { transform: scale(0.5); }
  100% { transform: scale(1); }
}
@-moz-keyframes openSwipeboxContainer {
  0% { transform: scale(0.5); }
  100% { transform: scale(1); }
}
@keyframes openSwipeboxContainer {
  0% { transform: scale(0.5); }
  100% { transform: scale(1); }
}
@keyframes moveSwipebox {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}
@-webkit-keyframes moveSwipebox {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}
@-moz-keyframes moveSwipebox {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/*
  init
  ---
*/

#swipebox-overlay {
  -webkit-animation: openSwipebox 0.4s;
  -moz-animation: openSwipebox 0.4s;
  animation: openSwipebox 0.4s;
}
#swipebox-container {
  -webkit-animation: openSwipeboxContainer 0.3s;
  -moz-animation: openSwipeboxContainer 0.4s;
  animation: openSwipeboxContainer 0.4s;
}
#swipebox-overlay.leftSpring #swipebox-slider {
  -webkit-animation: leftSpring 0.3s;
  -moz-animation: leftSpring 0.3s;
  animation: leftSpring 0.3s;
}
#swipebox-overlay.rightSpring #swipebox-slider {
  -webkit-animation: rightSpring 0.3s;
  -moz-animation: rightSpring 0.3s;
  animation: rightSpring 0.3s;
}
#swipebox-overlay.moveSlider #swipebox-slider .slide {
  -webkit-animation: moveSwipebox 0.8s;
  -moz-animation: moveSwipebox 0.8s;
  animation: moveSwipebox 0.8s;
}

/*
  responzive
  ***
*/

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

  #swipebox-container {
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
  }

}

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

  #swipebox-prev, #swipebox-next {
    top: auto;
    bottom: 30px;
    margin-top: 0;
  }

}
