.gallery__figure {
    font-size: 0;
    position: relative;
    cursor: pointer;  
}
.gallery__figure:hover img {
    -webkit-transition: -webkit-transform .7s;
    transition: -webkit-transform .7s;
    -o-transition: transform .7s;
    transition: transform .7s;
    transition: transform .7s, -webkit-transform .7s;
    -webkit-transition-timing-function: ease-in-out;
         -o-transition-timing-function: ease-in-out;
            transition-timing-function: ease-in-out;
}
.gallery__figure.active .gallery__figcaption {
    display: none !important;
}
.gallery__figcaption i {
    pointer-events: all;
}
.gallery__figure.video-box i {
    color: #fff;
    border: .2rem solid #fff;
    border-radius: 50%;
    overflow: hidden;
    text-align: center;
}
.gallery__figure:not(.video-box) i {
    color: var(--main-color);
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
}
.gallery__not-result {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    -webkit-transition: opacity .7s, visibility .7s;
    -o-transition: opacity .7s, visibility .7s;
    transition: opacity .7s, visibility .7s;
    max-width: 144rem;
    margin: 0 auto;
    padding: 0!important;
}
.show.gallery__not-result {
    opacity: 1;
    visibility: visible;
    max-height: none;
}
.not-result__text {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    color: #000;
}

.gallery__col {
    visibility: visible;
    -webkit-transition: all .7s;
    -o-transition: all .7s;
    transition: all .7s;
}
@media only screen 
and (min-width : 961px) {
    .gallery {
        margin-top: 11.4rem;
        margin-bottom: 8.2rem;
        min-height: 50vh;
    }
    .gallery__col {
        padding: 0;
    }
    .gallery__figure:hover img {
        -webkit-transform: scale(1.1);
            -ms-transform: scale(1.1);
                transform: scale(1.1);
    }
    .gallery__figcaption {
        opacity: 0;
        visibility: hidden;
    }
    .gallery__figure.active .gallery__figcaption {
        opacity: 0;
        visibility: hidden;
    }
    .gallery__figure:hover .gallery__figcaption {
        opacity: 1;
        visibility: visible;
        position: absolute;
        top: 0;
        left: 0;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, .5);
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        pointer-events: none;
        z-index: 2;
        -webkit-transition: background-color .7s;
        -o-transition: background-color .7s;
        transition: background-color .7s;
    }   
    .gallery__figcaption i {
        -webkit-transition: -webkit-transform .7s;
        transition: -webkit-transform .7s;
        -o-transition: transform .7s;
        transition: transform .7s;
        transition: transform .7s, -webkit-transform .7s;
    }
    .gallery__figcaption i:hover {
        -webkit-transform: scale(1.1);
            -ms-transform: scale(1.1);
                transform: scale(1.1);
    }
    .gallery__figure.video-box i {
        width: 9.6rem;
        height: 9.6rem;
        font-size: 1.8rem;
        line-height: 9.6rem;
        padding-left: .6rem;
    }
    .gallery__figure.active.video-box i {
        border-radius: 50%;
        overflow: hidden;
        width: 5rem;
        height: 5rem;
        background-color: #fff;
        color: #000;
        font-size: 1.8rem;
        padding-left: 0;
        line-height: 5rem;
        -webkit-box-sizing: content-box;
                box-sizing: content-box;
    }
    .gallery__figure.active.video-box i::before {
        content: "\e900";
    }
    .gallery__figure:not(.video-box) i {
        font-size: 4rem;
    }
    .gallery__figure.first {
        width: 49.38%;
        height: 62.2rem;
        -webkit-clip-path: polygon(0 0, 100% 0, 85.7% 100%, 0 100%);
                clip-path: polygon(0 0, 100% 0, 85.7% 100%, 0 100%);
    }
    .gallery__figure.second {   
        margin-top: -62.2rem;
        left: 45.18%;
        height: 74.5rem;
        width: 54.82%;
        -webkit-clip-path: polygon(15.4% 0, 100% 0, 100% 100%, 0% 100%);
                clip-path: polygon(15.4% 0, 100% 0, 100% 100%, 0% 100%);
    }
    .gallery__figure.third {
        width: 45.257%;
        height: 62.2rem;
        -webkit-clip-path: polygon(0 0, 88% 0%, 100% 100%, 0% 100%);
                clip-path: polygon(0 0, 88% 0%, 100% 100%, 0% 100%);
    }
    .gallery__figure.fourth {
        margin-top: -50.6rem;
        left: 45.18%;
        width: 54.82%;
        height: 50.6rem;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 8.6% 100%);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 8.6% 100%);
    }
    .gallery__figure.fifth {
        margin-top: 6rem;
        width: 95.13%;
        height: 67.2rem;
        -webkit-clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
        clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    }
    .gallery__figure.sixth,
    .gallery__figure.seventh {
        margin-bottom: 6rem;
    }
    .gallery__figure.sixth {
        margin-top: 8.2rem;
        width: 53.863%;
        height: 54.5rem;
        -webkit-clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
                clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
    }
    .gallery__figure.seventh {
        margin-top: -60.5rem;
        left: 52.28%;
        width: 47.717%;
        height: 54.5rem;
        -webkit-clip-path: polygon(13.6% 0, 100% 0, 100% 100%, 0% 100%);
                clip-path: polygon(13.6% 0, 100% 0, 100% 100%, 0% 100%);
    }
    .not-result {
        text-align: center;
        padding: 3rem 0;
    }
    .not-result__text {
        font-size: 2.4rem;
        line-height: 1.2em;
    }
    .gallery__figure[data-category="video"] {
        clip-path: none;
    }
    .gallery__figure[data-category="video"].first {
        width: 41.38%;
    }
    .gallery__figure[data-category="video"].third {
        width: 41.257%;
    }
    .gallery__figure[data-category="video"].sixth {
        width: 44.717%;
    }
    .gallery__figure[data-category="video"].second {
        width: 47.38%;
        left: 52.62%;
    }
    .gallery__figure[data-category="video"].fourth {
        width: 50.25%;
        left: 49.74%;
    }
    .gallery__figure[data-category="video"].sixth {
        width: 44.717%;
    }
    .gallery__figure[data-category="video"].seventh {
        left: 57.28%;
        width: 47.72%;
    }
}   

@media only screen 
and (max-width : 961px) {
    .gallery {
        margin-top: 3rem;
        margin-bottom: 4rem;
    }
    .gallery__col {
        padding: 0;
    }
    .gallery__figure {
        margin-bottom: 3rem;
    }
    .gallery__figure .gallery__figcaption {
        opacity: 1;
        visibility: visible;
        position: absolute;
        top: 0;
        left: 0;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, .5);
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        pointer-events: none;
        z-index: 2;
        -webkit-transition: background-color .7s;
        -o-transition: background-color .7s;
        transition: background-color .7s;
    }
    .gallery__figure.video-box i {
        width: 7rem;
        height: 7rem;
        font-size: 1.6rem;
        line-height: 7rem;
        padding-left: .6rem;
    }
    .gallery__figure.active.video-box i {
        border-radius: 50%;
        overflow: hidden;
        width: 4rem;
        height: 4rem;
        background-color: #fff;
        color: #000;
        font-size: 1.6rem;
        padding-left: 0;
        line-height: 4rem;
        -webkit-box-sizing: content-box;
                box-sizing: content-box;
    }
    .gallery__figure.active .gallery__figcaption {
        visibility: visible;
        position: absolute;
        top: 0;
        left: 0;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, .5);
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        pointer-events: none;
        z-index: 2;
        -webkit-transition: background-color .7s;
        -o-transition: background-color .7s;
        transition: background-color .7s;
        background-color: transparent;
        -webkit-box-pack: end;
            -ms-flex-pack: end;
                justify-content: flex-end;
        -webkit-box-align: start;
            -ms-flex-align: start;
                align-items: flex-start;
    }
    .gallery__figure.active.video-box i::before {
        content: "\e900";
    }
    .gallery__figure:not(.video-box) i {
        font-size: 4rem;
    }
    .gallery__figure {
        width: calc(100% - 2rem);
        margin-bottom: 3rem;
    }
    .gallery__figure.first,
    .gallery__figure.third,
    .gallery__figure.fifth,
    .gallery__figure.seventh {
        -webkit-clip-path: polygon(0 0, 100% 0, 85.6% 100%, 0 100%);
        clip-path: polygon(0 0, 100% 0, 85.6% 100%, 0 100%);
    }
    .gallery__figure.second,
    .gallery__figure.fourth,
    .gallery__figure.sixth {
        margin-left: auto;
        -webkit-clip-path: polygon(15.4% 0, 100% 0, 100% 100%, 0% 100%);
        clip-path: polygon(15.4% 0, 100% 0, 100% 100%, 0% 100%);
    }
    .gallery__figure.first {
        height: 30rem;
    }
    .gallery__figure.second {  
        height: 34.8rem;
    }
    .gallery__figure.third {
        height: 32.4rem;
    }
    .gallery__figure.fourth {
        -webkit-clip-path: polygon(15.4% 0, 100% 0, 100% 100%, 0% 100%);
        clip-path: polygon(15.4% 0, 100% 0, 100% 100%, 0% 100%);
        height: 23.7rem;
        margin-left: auto;
        margin-right: 0;
    }
    .gallery__figure.fifth {
        height: 31rem;    
    }   
    .gallery__figure.fifth {
        margin-right: auto;
        margin-left: 0;
        -webkit-clip-path: polygon(0 0, 100% 0, 85.6% 100%, 0 100%);
        clip-path: polygon(0 0, 100% 0, 85.6% 100%, 0 100%);
        height: 31rem;
    }
    .gallery__figure.sixth,
    .gallery__figure.seventh {
        height: 31rem;
    }
    .gallery__figure[data-category="video"] {
        clip-path: none;
    }
    .gallery__not-result.show {
        text-align: left;
        padding: 3rem 2rem 6rem 2rem!important;
    }
    .not-result__text {
        font-size: 2.4rem;
        line-height: 1.2em;
    }
}
