﻿

.gallery {
    width: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    background-color: #f0f0f0;
}

.gallery__fake {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.gallery__fullscreen__wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    text-align: center;
    transition: All 0.5s ease;
    -webkit-transition: All 0.5s ease;
    -moz-transition: All 0.5s ease;
    -o-transition: All 0.5s ease;
}

    .gallery__fullscreen__wrap.open {
        display: block;
        opacity: 1;
    }

.gallery__fullscreen__bt {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 30px;
    height: 30px;
    background-image: url('../../app/styles/blocks/gallery/images/fullscreen_black.png');
    background-repeat: no-repeat;
    background-size: 100%;
    z-index: 99;
    cursor: pointer;
}

.gallery__fullscreen__exit {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-image: url('../../app/styles/blocks/gallery/images/close_black_2x.png');
    background-repeat: no-repeat;
    background-size: 100%;
    cursor: pointer;
}

.gallery__fullscreen__img {
    max-width: 70%;
    display: inline-block;
    vertical-align: middle;
}

.gallery__fullscreen__controls {
    position: absolute;
    width: 100%;
    top: 50%;
    margin-top: -30px;
}

    .gallery__fullscreen__controls .prev, .gallery__fullscreen__controls .next {
        position: absolute;
        display: inline-block;
        width: 60px;
        height: 60px;
        cursor: pointer;
        vertical-align: middle;
        transition: All 0.3s ease;
        -webkit-transition: All 0.3s ease;
        -moz-transition: All 0.3s ease;
        -o-transition: All 0.3s ease;
        background-color: rgba(255, 255, 255, 0.8);
        background-repeat: no-repeat;
        border-radius: 0 20px 20px 0;
    }

    .gallery__fullscreen__controls .prev {
        left: 0;
        background-image: url('../../app/styles/blocks/gallery/images/left_black_2x.png');
        background-size: 100%;
        border-radius: 0 20px 20px 0;
        background-position: right;
    }

    .gallery__fullscreen__controls .next {
        right: 0;
        background-image: url('../../app/styles/blocks/gallery/images/right_black_2x.png');
        background-size: 100%;
        border-radius: 20px 0 0 20px;
        background-position: left;
    }

.gallery__inner {
    font-size: 0;
    position: relative;
    left: 0;
    height: 100%;
}

.gallery__block {
    position: relative;
    overflow: hidden;
}

    .gallery__block:hover .gallery__controls-buttons .prev {
        left: 0;
        background-position: center;
    }

    .gallery__block:hover .gallery__controls-buttons .next {
        right: 0;
        background-position: center;
    }

.gallery__img-block {
    display: none;
    position: relative;
    text-align: center;
    height: 100%;
    vertical-align: middle;
}

    .gallery__img-block.slide {
        display: none;
        position: relative;
        text-align: center;
        height: 100%;
        vertical-align: middle;
    }

    .gallery__img-block.crossfade {
        opacity: 0;
        position: absolute;
        top: 0;
        left: 0;
    }

.gallery__img-block__img {
    max-width: 100%;
}

.gallery__img-block.load {
    background: url('../../app/styles/blocks/gallery/images/sunny.gif') center no-repeat;
    background-size: 40px;
}

.gallery__description-block {
    padding: 15px 0;
    width: 100%;
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
}

.gallery__description-block__description {
    font-size: 20px;
    color: #222;
    display: none;
    margin-left: 15px;
    font-family: 'OpenSans-CondLightItalic', Arial, sans-serif;
}

    .gallery__description-block__description.current {
        display: inline-block;
    }

.gallery__img-block:first-child {
    display: inline-block;
}

.gallery__controls {
    z-index: 2;
    bottom: 0;
    width: 100%;
    background-color: #333;
    padding: 0 10px;
    text-align: center;
}

    .gallery__controls.fullscreen {
        position: absolute;
        bottom: 0;
    }

.gallery__controls__ul {
    display: inline-block;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.gallery__controls__thumbnails-ul {
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    text-align: left;
    overflow: hidden;
    padding: 10px 0;
}

.gallery__controls__inner {
    position: relative;
    left: 0 !important;





    /*& span {
                display:
            }*/
}

    .gallery__controls__inner.go-back {
        transition: All 0.3s ease;
        -webkit-transition: All 0.3s ease;
        -moz-transition: All 0.3s ease;
        -o-transition: All 0.3s ease;
    }

.gallery__controls__item {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: grey;
    border: 2px solid white;
    margin: 0 10px;
    border-radius: 50%;
    cursor: pointer;
}

    .gallery__controls__item.current {
        background: red;
    }

    .gallery__controls__item:hover {
        color: #fff;

    }

.gallery__controls-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
}

    .gallery__controls-buttons .prev, .gallery__controls-buttons .next {
        position: absolute;
        display: inline-block;
        width: 60px;
        height: 40px;
        cursor: pointer;
        vertical-align: middle;
        transition: All 0.3s ease;
        -webkit-transition: All 0.3s ease;
        -moz-transition: All 0.3s ease;
        -o-transition: All 0.3s ease;
        background-color: rgba(255, 255, 255, 0.8);
        background-repeat: no-repeat;
        background-color: #00a446
    }

    .gallery__controls-buttons .prev {
        left: 0px;
        background-image: url(left_black_2x.png);
        background-size: 30px;
        background-position: right;
    }

    .gallery__controls-buttons .next {
        right: -0px;
        background-image: url(right_black_2x.png);
        background-size: 30px;
        background-position: left;
    }

.gallery__thumbnail {
    display: inline-block;
    vertical-align: top;
    border: 1px solid #fff;
    margin-right:5px !important;
    position: relative;
    overflow:hidden
}

    .gallery__thumbnail img {
        opacity: 0.5;
    }

    .gallery__thumbnail i {
        content: "";
        display: block;
        position: absolute;
        bottom: -7px;
        left: 0;
        right: 0;
        width: 0;
        height: 3px;
        background-color: #757575;
    }

    .gallery__thumbnail.current img {
        opacity: 1;
    }

    .gallery__thumbnail.current i {
        background-color: #757575;
        width: 100%;
    }













  





