& when (@media-common =true) {
    .tabs_categories_porfolio {
        text-align: center;
        margin-bottom: 25px;

        li {
            display: inline-block;
            vertical-align: middle;

            a.button.is-checked {
                border-color: var(--thim-mgs-color-01);
            }

            a.button:hover,
            a.button.is-checked {
                color: var(--thim-mgs-color-01);
            }

            a.button {
                font-size: 14px;
                color: #8e8e8e;
                background-color: transparent;
                border: 1px solid transparent;
                padding: 0 20px;
                line-height: 40px;
                font-weight: 500;
                border-radius: 40px;
            }
        }
    }

    .tabs_categories_porfolio_content {
        margin: 0px -15px 80px;

        .item {
            width: calc(100% / 3);
            float: right;
            padding: 0 15px;
            margin-bottom: 30px;

            .portfolio-top-content {
                position: relative;

                .image-item img {
                    min-width: 100%;
                    display: block;
                }

                .image-item {
                    display: block;
                }
            }
        }
    }

    .portfolio-grid .item:hover .portfolio-top-content {

        .image-item:after {
            top: 0;
            height: 100%;
            visibility: visible;
            opacity: 1;
        }

        .portfolio-bottom-content {
            opacity: 1;
        }
    }

    .portfolio-grid .item .portfolio-top-content {

        .image-item:after {
            content: '';
            position: absolute;
            background: rgba(0, 0, 0, .6);
            right: 0;
            top: 50%;
            width: 100%;
            height: 0;
            visibility: hidden;
            opacity: 0;
            transition: all .3s;
        }

        .portfolio-bottom-content {
            position: absolute;
            bottom: 20px;
            right: 20px;
            opacity: 0;
            width: 100%;
            z-index: 1;
            transition: all .3s;
            text-align: right;

            .title {
                font-size: 15px;
                font-weight: 600;
                color: #fff;
                margin: 0;

                &:hover {
                    color: @theme-primary-color;
                }
            }

            .category-link {
                color: #fff;

                a {
                    color: #fff;
                }

                a:hover {
                    color: @theme-primary-color;
                }
            }
        }
    }

    // portfolio-index-view
    .portfolio-index-view .page-main {
        margin-bottom: 80px;
    }

    .portfolio_galley_carousel {
        margin-bottom: 80px;
    }

    .portfolio-index-view .portfolio-table {
        margin-top: 4px;
        border-bottom: 1px solid var(--thim-mgs-color-11) !important;
        margin-bottom: 0;

        tr th {
            font-weight: 500;
            color: var(--thim-mgs-color-01);
            width: 1%;
            padding: 14px 0 12px 14px;
            border-top: 1px solid var(--thim-mgs-color-11) !important;
            text-align: right;
        }

        tr td {
            padding: 14px 0 12px;
            color: #8d8d8d;
            border-top: 1px solid var(--thim-mgs-color-11) !important;
            text-align: right;
        }
    }

    .portfolio-index-view .portfolio-related {
        margin-top: 60px;

        .owl-carousel {
            display: block;

            .owl-item {
                padding: 0px 15px;
            }
        }

        .image-item {
            position: relative;
        }
    }

    .portfolio-detail-item {

        .pull-left,
        .pull-right {
            width: 100%;
        }

        .pull-right {
            margin-bottom: 50px;
        }
    }
}

.media-width(@extremum, @break) when (@extremum ='min') and (@break =@screen__l) {
    .tabs_categories_porfolio_content .item {
        width: calc(100% / 3);
    }

    .portfolio-detail-item {

        .pull-right {
            width: calc(100% / 3);
            padding-right: 15px;
        }

        .pull-left {
            width: calc(100% / 1.5);
            padding-left: 15px;
        }
    }
}


.media-width(@extremum, @break) when (@extremum ='min') and (@break =@screen__m) {
    .tabs_categories_porfolio_content .item {
        width: calc(100% / 2);
    }

    .portfolio-detail-item {

        .pull-right {
            width: 100%;
            padding-right: 0;
            margin-bottom: 35px;
        }

        .pull-left {
            width: 100%;
            padding-left: 0;
        }
    }
}

.media-width(@extremum, @break) when (@extremum ='max') and (@break =@screen__m) {
    .tabs_categories_porfolio_content .item {
        width: 100%
    }
}