/*! Swipebox v1.4.1 003 | Constantin Saguin csag.co | MIT License | github.com/brutaldesign/swipebox */

/* Основные стили */
html.swipebox-html.swipebox-touch {
    overflow: hidden !important;
}

#swipebox-overlay {
    display: none; /* скрыт по умолчанию */
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    background: rgba(0,0,0,.9);
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.swipebox-html #swipebox-overlay {
    display: block;
}

#swipebox-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#swipebox-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    white-space: nowrap;
    display: none;
    cursor: pointer;
    -webkit-transition: -webkit-transform 0.4s ease;
    transition: transform 0.4s ease;
}

#swipebox-slider .slide {
    display: inline-block;
    width: 100%;
    height: 100%;
    line-height: 1px;
    text-align: center;
}
#swipebox-slider .slide:before {
    content: "";
    display: inline-block;
    height: 50%;
    width: 1px;
    margin-right: -1px;
}

#swipebox-slider .slide img,
#swipebox-slider .slide .swipebox-video-container,
#swipebox-slider .slide .swipebox-inline-container {
    display: inline-block;
    max-height: 85%;
    max-width: 90%;
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
    vertical-align: middle;
}

#swipebox-slider .slide .swipebox-video-container {
    width: 100%;
    max-width: 1140px;
    max-height: 100%;
    padding: 3% 5%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

#swipebox-slider .slide .swipebox-video-container .swipebox-video {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    position: relative;
}

#swipebox-slider .slide .swipebox-video-container .swipebox-video iframe {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
}

#swipebox-slider .slide-loading {
    background: url(../img/misc/loader.gif) no-repeat center center;
}

/* Верхняя и нижняя панели */
#swipebox-top-bar, #swipebox-bottom-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 999;
    -webkit-transition: 0.5s;
    transition: 0.5s;
}

#swipebox-top-bar {
    bottom: 50px;
    color: #fff;
    line-height: 43px;
}

#swipebox-bottom-bar {
    top: 50%;
}

#swipebox-top-bar.visible-bars {
    -webkit-transform: translate3d(0, 50px, 0);
    transform: translate3d(0, 50px, 0);
}

#swipebox-bottom-bar.visible-bars {
    -webkit-transform: translate3d(0, -50px, 0);
    transform: translate3d(0, -50px, 0);
}

#swipebox-title {
    display: block;
    width: 100%;
    text-align: center;
}

/* Стрелки навигации */
#swipebox-prev, #swipebox-next {
    border: none;
    background: rgba(0,0,0,0.1);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 50px;
    font-family: "ionicons";
    cursor: pointer;
    padding: 0 30px;
    margin: 20px;
    text-align: center;
}

#swipebox-prev:before { content: "\f3d2"; }
#swipebox-next:before { content: "\f3d3"; }

#swipebox-arrows {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: 50px;
}

#swipebox-prev { float: left; }
#swipebox-next { float: right; }

#swipebox-prev.disabled, #swipebox-next.disabled { opacity: 0.3; }

/* Кнопка закрытия */
#swipebox-close {
    position: absolute;
    top: 10px;
    right: 30px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 9999;
    overflow: hidden;
}

#swipebox-close::before, #swipebox-close::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    top: 50%;
    margin-top: -1px;
    background: #ddd;
}

#swipebox-close::before { transform: rotate(45deg); }
#swipebox-close::after { transform: rotate(-45deg); }

#swipebox-close.fat::before, #swipebox-close.fat::after {
    border-radius: 100%;
}

.swipebox-no-close-button #swipebox-close { display: none; }

/* Эффекты свайпов */
.swipebox-touch #swipebox-container:before,
.swipebox-touch #swipebox-container:after {
    content: ' ';
    position: absolute;
    top: 0;
    height: 100%;
    width: 20px;
    z-index: 999;
    opacity: 0;
    transition: all .3s ease;
    backface-visibility: hidden;
}

.swipebox-touch #swipebox-container:before {
    left: 0;
    box-shadow: inset 10px 0px 10px -8px #656565;
}

.swipebox-touch #swipebox-container:after {
    right: 0;
    box-shadow: inset -10px 0px 10px -8px #656565;
}

.swipebox-touch #swipebox-overlay.leftSpringTouch #swipebox-container:before { opacity: 1; }
.swipebox-touch #swipebox-overlay.rightSpringTouch #swipebox-container:after { opacity: 1; }

@keyframes rightSpring { 0% { left:0; } 50% { left:-30px; } 100% { left:0; } }
@keyframes leftSpring  { 0% { left:0; } 50% { left:30px; } 100% { left:0; } }
