/* * * Gallery * * */
.b-gallery {
    position: relative;
    max-width: 964px;
    background: #fff;
    border: 5px solid #f8f8f8;
    border-bottom: none;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.b-gallery__wide {
    max-width: 100%;
}

.b-gallery:first-child {
    margin-top: 0;
}

.b-gallery:last-child {
    margin-bottom: 0;
}

.b-gallery_carousel {
    position: relative;
}

.b-gallery_carousel > .b-carousel_item ~ .b-carousel_item {
    display: none;
}

.b-gallery_controls {
    position: relative;
    min-height: 50px;
    background: #f8f8f8;
}

.b-gallery_controls .b-carousel_arrow {
    top: 0;
    margin-top: 0;
    padding: 0 20px;
    height: 50px;
    font-size: 12px;
    line-height: 50px;
    color: #bebebe;
    background: none;
    border: none;
    -webkit-transition: all 250ms;
    -o-transition: all 250ms;
    transition: all 250ms;
    cursor: pointer;
}

.b-gallery_controls .b-carousel_arrow:hover {
    color: #1fa6a3;
}

.b-gallery_controls .b-carousel_arrow__prev {
    left: 0;
}

.b-gallery_controls .b-carousel_arrow__next {
    right: 0;
}

.b-gallery_controls .b-carousel_paging {
    padding: 22px 0;
    margin: 0;
}

.b-gallery_controls .b-carousel_paging_bullet span {
    background: #dee0e3;
}

.b-gallery_controls .b-carousel_paging_bullet:hover span {
    background: #1fa6a3 !important;
}

.b-gallery_pic {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.b-gallery_pic img {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@media (max-width: 1263px) {

    .b-gallery_pic__cover {
        position: relative;
        height: 325px;
        overflow: hidden;
    }

    .b-gallery_pic__cover img {
        position: absolute;
        left: 50%;
        top: 50%;
        min-width: 100%;
        min-height: 100%;
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        -o-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }

    @supports ((-o-object-fit: cover) or (object-fit: cover)) {

        .b-gallery_pic__cover img {
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            -webkit-transform: none;
            -ms-transform: none;
            -o-transform: none;
            transform: none;
            -o-object-fit: cover;
            object-fit: cover;
        }

    }

}

@media (max-width: 767px) {

    .b-gallery_pic__cover {
        height: 295px;
    }

}

@media (min-width: 1264px) {

    .b-gallery__wide .b-gallery_pic__cover {
        position: relative;
        height: 325px;
        overflow: hidden;
    }

    .b-gallery__wide .b-gallery_pic__cover img {
        position: absolute;
        left: 50%;
        top: 50%;
        min-width: 100%;
        min-height: 100%;
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        -o-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }

    @supports ((-o-object-fit: cover) or (object-fit: cover)) {

        .b-gallery__wide .b-gallery_pic__cover img {
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            -webkit-transform: none;
            -ms-transform: none;
            -o-transform: none;
            transform: none;
            -o-object-fit: cover;
            object-fit: cover;
        }

    }

}

/* * * Video * * */
.b-video_gallery {
    position: relative;
    margin: 26px 0;
    background: #f8f8f8;
}

.b-video_gallery:first-child {
    margin-top: 0;
}

.b-video_gallery:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {

    .b-video_gallery {
        padding: 16px 12px;
    }

    .b-video_gallery_carousel > .b-carousel_item:nth-child(1) ~ .b-carousel_item {
        display: none;
    }

}

@media (max-width: 1263px) {

    .b-video_gallery {
        padding: 36px 32px;
    }

    .b-video_gallery_carousel > .b-carousel_item:nth-child(2) ~ .b-carousel_item {
        display: none;
    }

}

@media (min-width: 1264px) {

    .b-video_gallery {
        padding: 34px 52px;
    }

    .b-video_gallery_carousel > .b-carousel_item:nth-child(3) ~ .b-carousel_item {
        display: none;
    }

}