.gallery{
    background-color: #D2CDC3;
    height: 100%;
}
.gallery__container{
    margin-left: 288px;
    padding-left: 48px;
    padding-right: 3.62%;
    padding-top: 24px;
}
html[dir='rtl'] .gallery__container{
    margin-left: 0;
    margin-right: 288px;
    padding-right: 48px;
    padding-left: 3.62%;
}
.gallery__search{
    position: relative;
    width: calc(100% /25 * 8.5);
}
.gallery__search .search-icon{
    position: absolute;
    left: 19px;
    top: 10px;
}
html[dir='rtl'] .gallery__search .search-icon{
    left: unset;
    right: 19px;
}
.gallery__search input{
    width: 100%;
    height: 40px;
    background: #EAE6DE;
    border: 1px solid #C1BEBE;
    border-radius: 4px;
    padding-left: 48px;
    line-height: 150%;
    color: #73726F;
}
html[dir='rtl'] .gallery__search input{
    padding-left: 0;
    padding-right: 48px;
}
.gallery__search input::placeholder{
    color: #A39D9D;
}
.gallery__search .search-cancel{
    display: none;
    position: absolute;
    top: 11px;
    right: 19px;
    cursor: pointer;
    z-index: 9999999;
}
html[dir='rtl'] .gallery__search .search-cancel{
    right: unset;
    left: 19px;
}
.gallery__search input.active ~ .search-cancel{
    display: block;
}
.gallery__wrapper{
    margin-top: 38px;
    padding-bottom: 68px;
    overflow-y: auto;
    height: calc(100vh - 176px);
}
.gallery__block{
    margin-top: 2px;
    background-color: #EAE6DE;
}
.gallery__block__title{
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    font-family: 'Oswald';
    font-size: 1.5em;
    line-height: 133%;
    color: #404040;
    padding: 0 30px 0 24px;
}
html[dir='rtl'] .gallery__block__title{
    padding: 0 24px 0 30px;
}
.gallery__block__title:active{
    background-color: #D2CDC3;
}
.gallery__block__main{
    display: none;
    padding-bottom: 24px;
}
.gallery__block.active .gallery__block__main{
    display: block;
}
.gallery__block.active .gallery__block__title svg{
    transform: rotate(90deg);
}
.grid{
    position: relative;
}
.grid-item{
    position: absolute;
    display: none;

    padding: 32px 1.81% 0;
    cursor: pointer;
}

.grid-item-2 {
    width: calc(100% / 2);
}

.grid-item-3 {
    width: calc(100% / 3);
}

.grid-item-4 {
    width: calc(100% / 4);
}

.grid-item-5 {
    width: calc(100% / 5);
}

.grid-item-6 {
    width: calc(100% / 6);
}

.grid-item-2:nth-child(1),
.grid-item-2:nth-child(2),
.grid-item-3:nth-child(1),
.grid-item-3:nth-child(2),
.grid-item-3:nth-child(3),
.grid-item-4:nth-child(1),
.grid-item-4:nth-child(2),
.grid-item-4:nth-child(3),
.grid-item-4:nth-child(4),
.grid-item-5:nth-child(1),
.grid-item-5:nth-child(2),
.grid-item-5:nth-child(3),
.grid-item-5:nth-child(4),
.grid-item-5:nth-child(5),
.grid-item-6:nth-child(1),
.grid-item-6:nth-child(2),
.grid-item-6:nth-child(3),
.grid-item-6:nth-child(4),
.grid-item-6:nth-child(5),
.grid-item-6:nth-child(6) {
    padding-top: 24px;
}
.gallery__block.active .grid-item{
    display: block;
}
.grid-item img {
    display: block;
    width: 100%;
    height: auto;
}
.gallery__block__item video{
    width: 100%;
    height: 300px;
}
.video-item{
    position: relative;
}
.video-item svg{
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 75px;
    height: 75px;
    transform: translate(-50%, -50%);
}
.gallery__block__item__descr{
    margin-top: 8px;
    line-height: 150%;
    width: 100%;
}
.gallery-view{
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: #404040;
    z-index: 3;
}
.gallery-view.active{
    display: flex;
}
.gallery-view__left{
    width: 66.6666%;
    padding: 132px 13.2245% 70px;
}
.gallery-view__left__back{
    cursor: pointer;
    width: 84px;
}
.carousel__track{
    height: 100%;
}
.gallery-view__left__back span{
    line-height: 150%;
    color: #FEFEFE;
}
.gallery-view__left__back svg{
    margin-right: 24px;
}
html[dir='rtl'] .gallery-view__left__back svg{
    margin-right: 0;
    margin-left: 24px;
    transform: rotate(180deg);
}
.gallery-view__left__back:active span{
    color: #C1BEBE;
}
.gallery-view__left__back:active svg path{
    fill: #C1BEBE;
}
.gallery-view__left img.horizontal{
    width: 100%;
    height: auto;
}
.gallery-view__left img.vertical{
    height: 100%;
    width: auto;
}
.gallery-view__left .carousel{
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 24px);
}
.gallery-view__left .carousel__slide {
    width: 100%;
    padding: 0 1px;
    color: #FEFEFE;
    line-height: 150%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}
.gallery-view__left .carousel__button svg {
    width: 10px;
    height: 18px;
    stroke: none;
}
.carousel__item{
    text-align: center;
}
.carousel .carousel__nav{
    position: absolute;
    width: 100%;
}
.carousel .carousel__button{
    width: unset;
    height: unset;
}
.carousel__button:active svg path{
    fill: #C1BEBE;
}
.carousel .carousel__button.is-next {
    right: -32px;
}
.carousel .carousel__button.is-prev {
    left: -32px;
}
.carousel__viewport{
    z-index: 1;
}
.carousel__counter{
    text-align: center;
    line-height: 150%;
    color: #FEFEFE;
    margin-top: 48px;
}
.carousel__counter span{
    margin: 0 16px;
}
.caption__body{
    line-height: 150%;
    color: #FEFEFE;
    margin-top: 16px;
}
.carousel video{
    width: 100%;
    height: auto;
}
.gallery-view__right__wrapper video {
    margin-bottom: 20px;
}


.gallery-view__right__wrapper .video-item{
    margin-top: 16px;
}
.gallery-view__right__wrapper .video-item.is-selected{
    border: 4px solid #5E3535;
}
.gallery-view__right{
    width: 33.3334%;
    background-color: #EAE6DE;
    padding: 48px 3.6232% 16px;
}
.gallery-view__right__search{
    position: relative;
}
.gallery-view__right__search input{
    width: 100%;
    height: 40px;
    background-color: #EAE6DE;
    border: 1px solid #C1BEBE;
    border-radius: 4px;
    padding-left: 48px;
}
.gallery-view__right__search svg{
    position: absolute;
    top: 11px;
    left: 19px;
}
.gallery-view__right__search .search-cancel{
    display: none;
    position: absolute;
    left: unset;
    top: 11px;
    right: 19px;
    cursor: pointer;
    z-index: 9999999;
}

[dir="rtl"] .gallery-view__right__search .search-cancel {
    right: unset;
    left: 19px;
}


[dir="rtl"] .gallery-view__right__search .search-icon {
    left: unset;
    right: 19px;
}

[dir="rtl"]  .gallery-view__right__search input {
    padding-left: unset;
    padding-right: 48px;
}

.gallery-view__right__search input.active ~ .search-cancel{
    display: block;
}
.gallery-view__right__wrapper{
    height: calc(100vh - 136px);
    padding-right: 20px;
    overflow-y: auto;
    margin-top: 32px;
}
.gallery-view__right__wrapper img{
    width: 100%;
    height: auto;
    margin-top: 16px;
}
.gallery-view__right__wrapper img.is-selected{
    border: 4px solid #5E3535;
}
.gallery-view__right__wrapper h2{
    font-family: 'Oswald';
    line-height: 133%;
    color: #404040;
}
.controls-video{
    position: absolute;
    bottom: 22px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 99999999999999999;
}
.full-screen, .close-full-screen {
    right: 50px;
    position: absolute;
    top: 50%;
    cursor: pointer;
}
.full-screen .close-full-screen{
    display: block;
}
.close-full-screen{
    display: none;
}
.full-screen .full-screen{
    display: none;
}
.play{
    padding: 0 40px;
}
.play svg:nth-child(1){
    display: inline;
}
.play svg:nth-child(2){
    display: none;
}
.play.active svg:nth-child(1){
    display: none;
}
.play.active svg:nth-child(2){
    display: inline;
}
.prev, .next{
    opacity: 0.9;
}
.prev, .next, .play, .player-seekline-track, .volume{
    cursor: pointer;
}
.progress-nav{
    width: 100%;
    height: 6px;
    margin: 0 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.player-seekline-track {
    display:block;
    width:calc(100% - 160px);
    border:none;
    background-color: #fff;
    color:#ffffff;
    -moz-border-radius:2px;
    -webkit-border-radius:2px;
    border-radius:2px;
    margin: 0 17px;
    height: 6px;
    position: relative;
    z-index: 10;
}
.player-seekline-buffered{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    border-radius: 2px;
    background-color: #c1c1c1;
}
.player-seekline-played{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 2px;
    background: #ffffff;
}
.player-seekline-played::after {
    content: "";
    position: absolute;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #ffffff;
    right: 0;
    top: 50%;
    transform: translate(0.325rem, -50%);
}
.video-volume{
    position: absolute;
    right: 50px;
    top: 32%;
    transform: translateY(-50%);
    height: 120px;
    width: 25px;
    border: 1px solid #ffffff;
    border-radius: 8px;
    background-color: #1a1a1a;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 99999999999999999999;
}
.video-volume input[type=range] {
    -webkit-appearance: none;
    background-color: #989898;
    transform: rotate(-90deg) translateX(-33px);
    width: 80px;
    border: 1px solid #a6a6a6 !important;
    border-radius: 6px;
    height: 6px;
}
.video-volume input:focus {
    outline: none !important;
}
.video-volume input::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 6px;
    cursor: pointer;
}
.video-volume input::-webkit-slider-thumb {
    width: 15px;
    height: 15px;
    transform: translateY(-3px);
    opacity: 0;
}

input[type=range]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    transform: translateY(-3px);
    opacity: 0;
}
input[type=range]::-ms-thumb {
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: goldenrod;
    opacity: 0;
}

.video-volume svg{
    height: 16px;
    width: 16px;
    cursor: pointer;
}
.video-volume svg.mute{
    display: none;
}

.liberation{
    background-color: #e5e1d9;
}
.liberation-video{
    background-color: #c3c2c6;
}
.liberation video{
    height: calc(100vh - 88px);
    width: 100%;
    object-fit: cover !important;
}
html[dir='rtl'] .liberation video{
    margin-right: 288px;
    margin-left: 0;
}
.liberation-plug{
    display: none;
    margin-left: 288px;
    height: calc(100vh - 88px);
    justify-content: center;
    align-items: center;
}
html[dir='rtl'] .liberation-plug{
    margin-left: auto;
    margin-right: 288px;
}
.liberation-plug__wrapper{
    text-align: center;
}
.liberation-plug__title{
    font-family: 'Oswald';
    font-size: 2em;
    line-height: 125%;
    color: #5E3535;
    margin-top: 32px;
}
.liberation-plug__subtitle{
    line-height: 150%;
    color: #000000;
    margin-top: 16px;
}
/* clear fix */
/*.grid:after {
    content: '';
    display: block;
    clear: both;
}*/

/* ---- .grid-item ---- */

/*.grid-sizer,
.grid-item {
    width: 33.333%;
}

.grid-item {
    float: left;
}

.grid-item img {
    display: block;
    max-width: 100%;
}*/

