/* ====== gallery block START ====== */
.gallery, .gallery-movies {
    max-width: 880px;
    width: 100%;
    position: relative;
}

.gallery-movies {
    margin-bottom: 18px;
}

.gallery .img-wrapper,
.gallery-movies .img-wrapper {
    height: 506px;
    max-height: 506px;
    background: black;
    overflow: hidden;

    display: -webkit-box;       /* OLD - iOS 6-, Safari 3.1-6  */
    display: -moz-box;          /* OLD - Firefox 19 */
    display: -ms-flexbox;       /* TWEENER - IE 10 */
    display: -webkit-flex;      /* NEW - Chrome */
    display: flex;
    
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

    @media screen and (min-width: 1235px) and (max-width: 1299px) {
        .gallery .img-wrapper,
        .gallery-movies .img-wrapper {
            height: 390px;
        }
    }
    @media screen and (min-width: 1110px) and (max-width: 1234px) {
        .gallery .img-wrapper,
        .gallery-movies .img-wrapper {
            height: 400px;
        }
    }
    @media screen and (min-width: 991px) and (max-width: 1109px) {
        .gallery .img-wrapper,
        .gallery-movies .img-wrapper {
            height: 36vw;
        }
    }
    @media screen and (max-width: 990px) {
        .gallery .img-wrapper,
        .gallery-movies .img-wrapper {
            height: 56vw;
        }
    }

.gallery .cover,
.gallery-expanded .cover,
.gallery-movies .cover {
    width: 100%; 
    text-align: center;
    vertical-align: middle;
}

.gallery .cover img,
.gallery-expanded .cover img,
.gallery-movies .cover img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    margin: 0 auto;
}

.gallery .arrow,
.gallery-expanded .arrow,
.gallery-movies .arrow {
    content: "";
    width: 52px;
    height: inherit;
    margin-top: -60%;
    display: inline;
    position: absolute;
    bottom: 19%;
    z-index: 50; 
}
.gallery .arrow-left,
.gallery-expanded .arrow-left,
.gallery-movies .arrow-left {
    background-image: url("../images/left-arrow.png");
    background-repeat: no-repeat;
    background-position: 0 45%;
    width: 50%;
    left: 0;
}
.gallery .arrow-right,
.gallery-expanded .arrow-right,
.gallery-movies .arrow-right {
    background-image: url("../images/right-arrow.png");
    background-repeat: no-repeat;
    background-position: 100% 45%;
    width: 50%;
    right: 0;
    z-index: 40;
}

    @media screen and (max-width: 700px) {
        .gallery .arrow-left, 
        .gallery .arrow-right,
        .gallery-expanded .arrow-left, 
        .gallery-expanded .arrow-right,
        .gallery-movies .arrow-left, 
        .gallery-movies .arrow-right {
            background-image: none;
        }
    }
    
.gallery .fullscreen {
    background: url("../images/expand.png");
    position: absolute;
    width: 36px;
    height: 36px;
    z-index: 50;
    display: inline;
    top: 5px;
    right: 5px;
}   
    @media screen and (max-width: 460px) {
        .gallery .fullscreen {
            transform: scale(0.8, 0.8);
        }
    }

.gallery .navbar-left,
.gallery-expanded .navbar-left,
.gallery-movies .navbar-left {
    position: absolute;
    left: 0;
    width: 30px;
    height: 82px;
    margin-top: 6px;
    background: url("../images/navbar-left.jpg");
}

.gallery .navbar-right,
.gallery-expanded .navbar-right,
.gallery-movies .navbar-right {
    position: absolute;
    right: 24px;
    width: 30px;
    height: 82px;
    margin-top: 6px;
    background: url("../images/navbar-right.jpg");
}
    @media screen and (max-width: 767px) {
        .gallery .navbar-right,
        .gallery-expanded .navbar-right,
        .gallery-movies .navbar-right {
            right: 0;
        }
    }
    
    @media screen and (max-width: 700px) {
        .gallery .navbar-right, 
        .gallery .navbar-left,
        .gallery-expanded .navbar-right, 
        .gallery-expanded .navbar-left,
        .gallery-movies .navbar-right, 
        .gallery-movies .navbar-left {
            background-image: none;
        }
    }
    
    @media screen and (max-width: 450px) {
        .gallery .navbar-right, 
        .gallery .navbar-left,
        .gallery-expanded .navbar-right, 
        .gallery-expanded .navbar-left,
        .gallery-movies .navbar-right, 
        .gallery-movies .navbar-left {
            width: 20px;
            height: 47px;
            background-size: 20px 47px; 
        }
    }

.gallery .nav-container,
.gallery-expanded .nav-container,
.gallery-movies .nav-container {
    overflow: hidden;
}
    .gallery .nav-container ul,
    .gallery-expanded .nav-container ul,
    .gallery-movies .nav-container ul {
        width: inherit;
        display: block;
        white-space: nowrap;
        float: left;
        padding: 0;
        
    }
        .gallery .nav-container ul li,
        .gallery-expanded .nav-container ul li,
        .gallery-movies .nav-container ul li {
            width: 140px;
            height: 82px;
            margin: 6px 5px; 
            display: inline-block;
            white-space: nowrap;
        }
      
        .gallery .nav-container ul li span,
        .gallery-expanded .nav-container ul li span,
        .gallery-movies .nav-container ul li span {
            display: none;
        }
        
        .gallery .nav-container ul li img,
        .gallery-expanded .nav-container ul li img,
        .gallery-movies .nav-container ul li img {
            width: 140px;
            height: 82px;
        }
        
        @media screen and (max-width: 450px) {
            .gallery .nav-container ul li,
            .gallery .nav-container ul li img,
            .gallery-expanded .nav-container ul li,
            .gallery-expanded .nav-container ul li img,
            .gallery-movies .nav-container ul li,
            .gallery-movies .nav-container ul li img {
                width: 84px;
                height: 47px;
            }
        }
        
.gallery .behind,
.gallery-expanded .behind,
.gallery-movies .behind {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 0;
    visibility: hidden;
}

.gallery .current img,
.gallery-expanded .current img {
    border: 2px #0d329a solid;
}

.gallery-movies .current img,
.production-gallery .gallery .current img {
    border: 2px #00b3df solid;
}

/* ==== Gallery Movies Specific styles: ==== */

.page-home-movies .gallery-movies {
    padding-top: 15px;
    margin-bottom: 50px;
}
    @media screen and (max-width: 991px) {
        .page-home-movies .gallery-movies {
            margin-bottom: 0;
        }
    }
    @media screen and (max-width: 480px) {
        .page-home-movies .gallery-movies {
            padding-top: 10px;
        }
    }

.gallery-movies .arrow-left,
.gallery-movies .arrow-right {
    width: 15%;
}

.gallery-movies .play-icon {
    background: url("../images/play-icon.png");
    width: 89px;
    height: 89px;
    display: none;
    position: absolute;
    top: 35%;
    left: 45%;
}
    @media screen and (max-width: 660px) {
        .gallery-movies .play-icon {
            left: 42%;
            transform: scale(0.8, 0.8);
        }
    }
    @media screen and (max-width: 650px) {
        .gallery-movies .play-icon {
            top: 25%;
        }
    }
    @media screen and (max-width: 460px) {
        .gallery-movies .play-icon {
            left: 39%;
            transform: scale(0.6, 0.6);
        }
    }
    @media screen and (max-width: 380px) {
        .gallery-movies .play-icon {
            left: 36%;
            top: 18%;    
        }
    }
    
.gallery-movies .film-details {
    display: inline;
    width: 100%;
    height: 10%;
    position: absolute;
    left: 0;
    bottom: 100px;
    font-size: 24px;
    font-family: "roboto_condensedregular";
    color: #ffffff;
    padding-top: 1.5%;
}
    @media screen and (min-width: 991px) and (max-width: 1300px) {
        .gallery-movies .film-details {
            height: 12%;
        }
    }
    
    @media screen and (max-width: 730px) {
        .gallery-movies .film-details {
            height: 11%;
        }
    }
    
    @media screen and (max-width: 650px) {
        .gallery-movies .film-details {
            height: 20%;
        }
    }
    
    @media screen and (max-width: 450px) {
        .gallery-movies .film-details {
            bottom: 64px;
            height: 24%;
        }
    }
    
    @media screen and (max-width: 380px) {
        .gallery-movies .film-details {
            height: 26%;
        }
    }
    @media screen and (max-width: 350px) {
        .gallery-movies .film-details {
            height: 70px;
        }
    }
    
    @media screen and (min-width: 651px) {
        .gallery-movies .film-title {
            float: right;
            margin-right: 20px;
        }
    }

    @media screen and (max-width: 650px) {
       .gallery-movies .film-title {
            margin-left: 0;
            margin-right: 0;
        }
    }

    @media screen and (max-width: 450px) {
       .gallery-movies .film-title {
            white-space: nowrap;
            font-size: 20px;
        }
    }
    @media screen and (max-width: 385px) {
       .gallery-movies .film-title {
            font-size: 18px;
        }
    }
    @media screen and (max-width: 350px) {
       .gallery-movies .film-title {
            position: absolute;
            bottom: 5px;
        }
    }
        
    .gallery-movies .film-details .tv-logo {
        float: left;
        margin-left: 20px;
    } 
        @media screen and (max-width: 350px) {
            .gallery-movies .film-details .tv-logo {
                margin-left: 0;
            }
        }
    
    .tv-logo:after {
        content:"";
        position:absolute;
        border-top:1px solid #fff;
        width:26px;
        transform: rotate(-60deg);
        transform-origin: 100% 0%;
        margin-left: 15px;
        margin-top: 5px;
    }
    .kino-nova-white-logo.tv-logo:after {
        margin-left: 26px;
    }
    .diema-family-white-logo.tv-logo:after {
        margin-left: 28px;
    }
    
    .gallery-movies .film-details .film-time {
        text-transform: uppercase;
        float: left;
        padding-top: 10px;
        padding-left: 40px;
        font-size: 13px;
        font-family: "pt_sansregular";
        font-weight: bold;
    }
    
    @media screen and (max-width: 450px) {
       .gallery-movies .film-details .film-time {
            font-size: 11px;
        }
    }
    
    @media screen and (max-width: 350px) {
       .gallery-movies .film-details .film-time {
            padding-left: 25px;
        }
    }
    
/* ==== Gallery Expanded ==== */

.gallery-expanded {
    width: 1200px;
    position: relative;
    color: #b7b7b7;
}
    @media screen and (max-width: 1220px) {
        .gallery-expanded {
            width: 100%;
            height: auto;
        }
    }
    
.gallery-expanded .img-wrapper {
    clear: both;
    width: 1200px;
    height: 675px;
    max-height: 675px;
    overflow: hidden;
    
    display: -webkit-box;       /* OLD - iOS 6-, Safari 3.1-6  */
    display: -moz-box;          /* OLD - Firefox 19 */
    display: -ms-flexbox;       /* TWEENER - IE 10 */
    display: -webkit-flex;      /* NEW - Chrome */
    display: flex;
    
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}
    @media screen and (min-width: 1235px) and (max-width: 1299px) {
        .gallery-expanded .img-wrapper {
            height: 390px;
            width: auto;
        }
    }
    @media screen and (min-width: 1110px) and (max-width: 1234px) {
        .gallery-expanded .img-wrapper {
            height: 400px;
            width: auto;
        }
    }
    @media screen and (min-width: 991px) and (max-width: 1109px) {
        .gallery-expanded .img-wrapper {
            height: 36vw;
            width: auto;
        }
    }
    @media screen and (max-width: 990px) {
        .gallery-expanded .img-wrapper {
            height: 56vw;
            width: auto;
        }
    }

.gallery-expanded .arrow {
    top: 0;
    margin-top: 0;
}

@media screen and (min-width: 1201px) and (max-width: 1220px) {
    .gallery-expanded .arrow-right {
        margin-right: -24px;
    }
}
    @media screen and (min-width: 1235px) and (max-width: 1299px) {
        .gallery-expanded .arrow {
            height: 390px;
        }
    }
    @media screen and (min-width: 1110px) and (max-width: 1234px) {
        .gallery-expanded .arrow {
            height: 400px;
        }
    }
    @media screen and (min-width: 991px) and (max-width: 1109px) {
        .gallery-expanded .arrow {
            height: 36vw;
        }
    }
    @media screen and (max-width: 990px) {
        .gallery-expanded .arrow {
            height: 56vw;
        }
    }

.gallery-expanded .img-big {
    width: auto;
    margin: 0 auto;
}

.gallery-expanded .arrow-left,
.gallery-expanded .arrow-right {
    background-position-y: 50%;
}

.gallery-expanded .nav-container ul {
    margin-bottom: 6px;
}
    
#gallery-overlay-inAbox {
    margin: 0 auto;
    width: 100%;
}

.gallery-expanded-wrapper {
    width: 1200px;
    margin: 0 auto;
}
    @media screen and (max-width: 1248px) {
        .gallery-expanded-wrapper {
            width: 100%;
            padding: 0 24px;
        }
    }
    
    @media screen and (max-width: 680px) {
        .gallery-expanded-wrapper {
            padding: 0 16px;
        }
    }

.gallery-overlay,
#gallery-overlay-shade {
    display: none;
}

#gallery-overlay-shade {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #222222; 
}

.gallery-overlay {
    position: absolute;
    top: -300px;
    left: 0;
    height: 100%;
    z-index: 10000;
    background-color: #222222;
    color: #fff;
} 

.gallery-expanded-top-bar {
    margin: 15px auto;
    color: #b7b7b7;
}

.gallery-expanded-top-bar .counter {
    text-align: center;
    margin-left: 50%;
}
    @media screen and (max-width: 880px) {
        .gallery-expanded-top-bar .counter {
            text-align: center;
            margin-left: 48%;
        }
    }
    @media screen and (max-width: 450px) {
        .gallery-expanded-top-bar .counter {
            text-align: center;
            margin-left: 46%;
        }
    }

.gallery-expanded-top-bar .close {
    background: url("../images/x-button.jpg");
    position: absolute;
    width: 53px;
    height: 53px;
    z-index: 50;
    display: inline;
    top: 5px;
    right: 5px;
}

    @media screen and (max-width: 1100px) {
        .gallery-expanded-top-bar .close {
            transform: scale(0.8, 0.8);
            top: 2px;
            right: 2px;
        }
    }
    
    @media screen and (max-width: 460px) {
        .gallery-expanded-top-bar .close {
            transform: scale(0.6, 0.6);
        }
    }

.gallery-expanded .img-text {
    display: block;
    margin: 8px 0;
    height: 80px;
    overflow: hidden;
}

.production-gallery-expanded .gallery-expanded .img-text {
    height: 102px;
}
  
.gallery-expanded .social-buttons {
    padding: 10px 0;
} 
        
.gallery-expanded .facebook-btn { /* used just for visual presentation*/
    -moz-user-select: none;
    background: #2A49A5;
    border: 1px solid #082783;
    box-shadow: 0 1px #4C6BC7 inset;
    color: white;
    padding: 3px 5px;
    text-decoration: none;
    text-shadow: 0 -1px 0 #082783;
    font: 12px Verdana, sans-serif;
}

/* ====== gallery block END ====== */