.insight-gallery {
    .insight-gallery-item {
        cursor: pointer;
        margin-bottom: 30px;
        overflow: hidden;
        @include media-breakpoint-down(sm) {
            height: auto !important;
        }
    }

    .insight-pagination {
        margin-top: 50px;
    }

    .insight-gallery-image {
        position: relative;
        max-height: 100%;

        &:hover {
            .desc-wrap {
                opacity: 1;
            }
        }

        img {
            width: 100%;
        }

        .desc-wrap {
            @include transition(opacity 0.25s);
            opacity: 0;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border: 1px solid #262626;
            display: flex;
            align-items: flex-end;

            .desc {
                width: 100%;
                padding-bottom: 60px;
                padding-left: 25px;
                padding-right: 25px;
            }

            &:after {
                content: '';
                display: block;
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: #262626;
                opacity: .8;
            }

            .title, .cats, .icon {
                position: relative;
                z-index: 2;
            }

            .icon {
                font-size: 24px;
                font-weight: 400;
                color: $color__primary;
            }

            .title {
                font-size: 24px;
                font-weight: bold;
                color: #fff;
                margin-bottom: 8px;
                display: block;

                &:after {
                    content: "\f30f";
                    font-family: "Ionicons";
                    font-size: 18px;
                    font-weight: 400;
                    height: 40px;
                    width: 40px;
                    display: inline-block;
                    border: 2px solid rgba(#fff, 0.7);
                    border-radius: 50%;
                    text-align: center;
                    line-height: 35px;
                    float: right;
                    margin-top: 4px;
                    color: $color__primary;
                }
            }

            .cats {
                font-size: 12px;
                color: #fff;
                letter-spacing: 0.1em;
                text-transform: uppercase;
            }
        }
    }

    .pagination {
        a {
            font-size: 14px;
            border: none;

            &:hover {
                background: none;
                color: $color__primary;
            }
        }

        .page-numbers.current {
            border-radius: 50%;
            height: 40px;
        }
    }

    &.gallery-v1 {
        .insight-gallery-filter {
            max-width: 1100px;
            margin-left: auto;
            margin-right: auto;
        }

        .insight-gallery-images {
            margin-left: 0;
            margin-right: 0;
        }

        .insight-gallery-item {
            margin-bottom: 10px;
            padding-left: 5px;
            padding-right: 5px;
        }
    }
}

.insight-grid-filter, .insight-gallery-filter {
    margin-top: 32px;
    margin-bottom: 57px;
    text-align: left;

    ul {
        padding-left: 0;

        li {
            display: inline;
            @include media-breakpoint-down(sm) {
                display: block;
                padding: 5px;
                text-align: center;
                &:before {
                    display: none !important;
                }
            }

            a {
                text-transform: uppercase;
                font-size: 13.5px;
                letter-spacing: 0.05em;
                padding: 7px 20px;
                font-weight: bold;
                border: 1px solid transparent;

                &.active {
                    color: $color__primary;
                    border-color: $color__primary;

                    &:hover {
                        background-color: transparent;
                    }
                }

                &:hover {
                    color: $color__primary;
                    border-color: $color__primary;
                }
            }

            &:first-child {
                &:before {
                    display: none;
                }
            }

            &:before {
                content: '';
                display: inline-block;
                vertical-align: middle;
                height: 1px;
                width: 10px;
            }
        }
    }
}
