
.tf-portfolio-wrap.no-carousel .wrap-portfolio-post {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    position: relative;
}

.tf-portfolio-wrap.no-carousel .wrap-portfolio-post .item {
    padding: 15px 15px 15px 15px;
}

.tf-portfolio-wrap.no-carousel.column-1 .wrap-portfolio-post .item {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.tf-portfolio-wrap.no-carousel.column-2 .wrap-portfolio-post .item {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
}

.tf-portfolio-wrap.no-carousel.column-3 .wrap-portfolio-post .item {
    -ms-flex: 0 0 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.tf-portfolio-wrap.no-carousel.column-4 .wrap-portfolio-post .item {
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
}

/* style 1 */

.tf-portfolio-wrap.style1 .portfolio-post {
    position: relative;
    padding-bottom: 28px;
    border-bottom: 1px solid #454750;
}

.tf-portfolio-wrap.style1 .portfolio-post .title {
    font-size: 22px;
    font-weight: 700;
    line-height: 30px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    text-transform: capitalize;
    letter-spacing: 1px;
    margin-bottom: 0px;
}

.tf-portfolio-wrap.style1 .portfolio-post .inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease-in-out;
}

.tf-portfolio-wrap.style1 .portfolio-post:hover .inner {
    transform: scale(0.9);
}
.tf-portfolio-wrap.style1 .portfolio-post:hover .inner .title a,.tf-portfolio-wrap.style1 .portfolio-post:hover .inner .tf-button-container a {
    color: var(--theme-primary-color);
}

.tf-portfolio-wrap.style1 .portfolio-post .portfolio-category a {
    font-family: 'Manrope';
    font-size: 16px;
    font-weight: 600;
}

.tf-portfolio-wrap.style1 .portfolio-post .portfolio-category a:hover {
    color: var(--theme-primary-color);
}
.tf-portfolio-wrap.style1 .portfolio-post .portfolio-category a:hover::after {
    rotate: 90deg;
}

.tf-portfolio-wrap.style1 .portfolio-post .portfolio-category {
    margin-bottom: 21px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tf-portfolio-wrap.style1 .portfolio-post .tf-button {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter';
}

.tf-portfolio-wrap.style1 .portfolio-post .tf-button i {
    font-weight: 700;
    vertical-align: middle;
    font-size: 16px;
    rotate: -30deg;
}

.tf-portfolio-wrap.style1 .portfolio-post .portfolio-category a::after {
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    content: "\f062";
    margin-left: 11px;
    rotate: 60deg;
    display: inline-block;
    transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.tf-portfolio-wrap.style1 .portfolio-post .portfolio-category a {
    border: 1px solid rgb(69, 71, 80);
    padding: 8px 16px;
    border-radius: 100px;
    display: inline-block;
}

.tf-portfolio-wrap .portfolio-post .featured-post {
    margin-bottom: 28px;
}

.tf-portfolio-wrap .portfolio-post .featured-post>a {
    display: block;
    overflow: hidden;
}


.tf-portfolio-wrap .portfolio-post .featured-post>a {
    display: block;
    overflow: hidden;
}

.tf-portfolio-wrap.style1 .portfolio-post .featured-post img {
    height: 505px;
    object-fit: cover;
    width: 100%;
}


/* style 2 */
.tf-portfolio-wrap.style2 .onhover-tabbing-wrap {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.tf-portfolio-wrap.style2 .onhover-tabbing-wrap .content-left {
    max-width: 415px;
    width: 100%;
    flex-shrink: 0;
}

.tf-portfolio-wrap.style2 .onhover-tabbing-wrap .content-right {
    width: 100%;
}

.tf-portfolio-wrap.style2 .onhover-tabbing-wrap .content-right .portfolio-post .tf-button-container {
    flex-shrink: 0;
}

.tf-portfolio-wrap.style2 .onhover-tabbing-wrap .content-right .portfolio-post .portfolio-category {
    margin-bottom: 16px;
}

.tf-portfolio-wrap.style2 .onhover-tabbing-wrap .content-right .portfolio-post {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
    outline: none;
    border: unset;
    border-bottom: 1px solid #454750;
    padding-top: 39px;
    padding-bottom: 32px;
}

.tf-portfolio-wrap.style2 .onhover-tabbing-wrap .content-left .portfolio-post {
    display: none;
}

.tf-portfolio-wrap.style2 .onhover-tabbing-wrap .content-left .portfolio-post.active-thumb {
    display: block;
    transition: all 0.3s;
}

.tf-portfolio-wrap.style2 .onhover-tabbing-wrap .content-left .tcase-thumb {
    border-radius: 21px;
    display: block;
    rotate: -10deg;
    padding-left: 27px;
    padding-right: 41px;
    margin-top: 20px;
}

.tf-portfolio-wrap.style2 .onhover-tabbing-wrap .content-left .tcase-thumb img {
    height: 370px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    z-index: 1;
    position: relative;
}

.tf-portfolio-wrap.style2 .onhover-tabbing-wrap .content-left .tcase-thumb a {
    position: relative;
}

.tf-portfolio-wrap.style2 .onhover-tabbing-wrap .content-left .tcase-thumb a::before {
    height: 370px;
    width: 100%;
    rotate: 7deg;
    content: '';
    background-color: #ffffff1a;
    border-radius: 12px;
    display: block;
    position: absolute;
    z-index: 0;
}


.tf-portfolio-wrap.style2 .portfolio-post .featured-post img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.tf-portfolio-wrap.style2 .portfolio-post .featured-post {
    margin-bottom: 16px;
}

.tf-portfolio-wrap.style2 .portfolio-post .title {
    font-size: 30px;
    font-weight: 700;
    line-height: 130%;
}

.tf-portfolio-wrap.style2 .portfolio-post .portfolio-category a {
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 19.36px;
    color: var(--theme-primary-color);
}

.tf-portfolio-wrap.style2 .portfolio-post .portfolio-category a:hover {
    color: #fff;
}

.tf-portfolio-wrap.style2 .portfolio-post .inner {
    padding-top: 26px;
    border-top: solid 1px #e9ecef;
    margin-top: 16px;
    display: flex;
    align-items: center;
}


.tf-portfolio-wrap.style2 .portfolio-post .tf-button {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 43px;
}

.tf-portfolio-wrap.style2 .portfolio-post .tf-button i {
    font-weight: 700;
    vertical-align: middle;
    font-size: 17px;
    rotate: -35deg;
    transition: all 0.3s ease-in-out;
}



/* style 3 */
.tf-portfolio-wrap.style3 .wrap-portfolio-post {
    display: block;
}

.tf-portfolio-wrap.style3 .wrap-portfolio-post .portfolio-post:hover .box {
    transform: scale(0.95);
}

.tf-portfolio-wrap.style3 .portfolio-post {
    padding: 90px 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.tf-portfolio-wrap.style3 .portfolio-post::before {
    position: absolute;
    content: "";
    top: -100%;
    width: 100%;
    height: 100%;
    background: radial-gradient(267.9% 200.83% at 47.19% -80%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.9;
    backdrop-filter: blur(21px);
    z-index: 1;
    transition: all 0.5s;
}

.tf-portfolio-wrap.style3 .portfolio-post:hover::before {
    top: 0;
}

.tf-portfolio-wrap.style3 .portfolio-post .content .title {
    font-size: 30px;
    font-weight: 700;
    line-height: 130%;
}

.tf-portfolio-wrap.style3 .portfolio-post .content .portfolio-category {
    margin-bottom: 31px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tf-portfolio-wrap.style3 .portfolio-post .box {
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease-in-out;
}



@keyframes toRightShape {
    0% {
        -webkit-clip-path: polygon(0 0, 0% 0, 0% 100%, 0 100%);
        clip-path: polygon(0 0, 0% 0, 0% 100%, 0 100%);
    }

    50% {
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

.tf-portfolio-wrap.style3 .portfolio-post .portfolio-category a {
    font-size: 16px;
    font-weight: 600;
    line-height: 19.36px;
    letter-spacing: -0.03em;
    color: var(--theme-primary-color);
    border: 1px solid #454750;
    padding: 7px 18px;
    border-radius: 20px;
    display: inline-block;
}

.tf-portfolio-wrap.style3 .portfolio-post .portfolio-category a:hover {
    color: #fff;
}

.tf-portfolio-wrap.style3 .portfolio-post .description {
    color: #696969;
    margin-bottom: 41px;
}

.tf-portfolio-wrap.style3 .portfolio-post .tf-button {
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 100%;
    font-family: 'Inter';
    font-size: 16px;
    font-weight: 700;
    line-height: 19.36px;
    color: #fff;
    display: inline-block;
    width: 74px;
    min-width: 74px;
    height: 74px;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tf-portfolio-wrap.style3 .portfolio-post .tf-button i {
    margin-left: 0;
}

.tf-portfolio-wrap.style3 .portfolio-post .tf-button .info-label {
    position: relative;
}

.tf-portfolio-wrap.style3 .portfolio-post .tf-button:hover {
    background: var(--theme-primary-color);
    color: #000;
}

/* style 4 */
.tf-portfolio-wrap.style4 .item {
    width: 100%;
}
.tf-portfolio-wrap.style4 .portfolio-post .featured-post {
    position: relative;
}

.tf-portfolio-wrap.style4 .portfolio-post .featured-post>a {
    border: 2px solid #454750;
    border-radius: 15px;
    display: block;
}

.tf-portfolio-wrap.style4 .portfolio-post .featured-post .tf-button-container {
    position: absolute;
    right: 0px;
    bottom: 0px;
    z-index: 1;
    border: 2px solid #454750;
    border-radius: 15px;
    border-right: none;
    border-bottom: none;
}

.tf-portfolio-wrap.style4 .portfolio-post .featured-post .tf-button-container::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: transparent;
    border-radius: 15px;
    box-shadow: 6px 13px 0 #1b1b1b;
    border: 2px solid #454750;
    border-radius: 0px 0px 15px 0px;
    right: 0px;
    top: -30px;
    border-top: none;
    border-left: none;
}

.tf-portfolio-wrap.style4 .portfolio-post .featured-post .tf-button-container::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: transparent;
    border-radius: 15px;
    box-shadow: 12px 13px 0 #1b1b1b;
    border: 2px solid #454750;
    border-radius: 0px 0px 15px 0px;
    left: -30px;
    bottom: 0px;
    border-top: none;
    border-left: none;
}

.tf-portfolio-wrap.style4 .portfolio-post .featured-post img {
    height: 660px;
    width: 100%;
    object-fit: cover;
}

.tf-portfolio-wrap.style4 .portfolio-post .title {
    font-size: 30px;
    font-weight: 700;
    line-height: 120%;
    margin-bottom: 3px;
}

.tf-portfolio-wrap.style4 .portfolio-post .portfolio-category  {
    color: #696969;
}
.tf-portfolio-wrap.style4 .portfolio-post .portfolio-category a {
    font-family: 'Manrope';
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    color: #696969;
}

.tf-portfolio-wrap.style4 .portfolio-post .portfolio-category a:hover {
    color: var(--theme-primary-color);
}

.tf-portfolio-wrap.style4 .portfolio-post .tf-button {
    background-color: var(--theme-primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    min-width: 80px;
    height: 80px;
    border-radius: 12px;
    color: #000;
    border: 5px solid #1b1b1b;
    position: relative;
    z-index: 5;
}

.tf-portfolio-wrap.style4 .portfolio-post .tf-button i {
    margin: 0;
    font-size: 20px;
    rotate: -35deg;
}

.tf-portfolio-wrap.style4 .portfolio-post .content{
    display: flex;
    align-items: center;
    gap: 28px;
}
.tf-portfolio-wrap.style4 .portfolio-post .content .image {
    flex-shrink: 0;
}
.tf-portfolio-wrap.style4 .portfolio-post .content .image img{
    width: 92px;
    height: 92px;
    object-fit: cover;
}
.tf-portfolio-wrap.style4 .portfolio-post .content .inner {
    max-width: 460px;
}

.tf-portfolio-wrap.style5 .portfolio-post .tf-button i {
    margin: 0;
}

.tf-portfolio-wrap .portfolio-post .tf-button i {
    vertical-align: middle;
    display: inline-block;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.tf-portfolio-wrap .portfolio-post .tf-button:hover i {
    rotate: 0deg;
}

.tf-portfolio-wrap .show-overflow .owl-stage-outer {
    overflow: unset;
}

/* bullet */
.tf-portfolio-wrap.style4 .owl-dots {
    counter-reset: slides-num;
    position: absolute;
    bottom: 62px !important;
    right: 3%;

}

.tf-portfolio-wrap.style4 .owl-dots:after {
    content: " / " counter(slides-num);
    display: inline-block;
    font-size: 50px;
    font-weight: 700;
    vertical-align: middle;
    font-family: "Manrope", sans-serif;
}

.tf-portfolio-wrap.style4 .owl-dot {
    display: inline-block;
    counter-increment: slides-num;
    margin-right: 5px;
}

.tf-portfolio-wrap.style4 .owl-dots pan {
    display: none;
}


.tf-portfolio-wrap.style4 .owl-dot.active:before {
    content: counter(slides-num);
    display: inline-block;
    vertical-align: middle;
    font-size: 50px;
    font-weight: 700;
    font-family: "Manrope", sans-serif;
    margin-right: 10px;

}

 .tf-portfolio-wrap .owl-carousel .owl-dots.disabled {
    display: none !important;
}


@keyframes toRight {
    49% {
        transform: translate(100%);
    }

    50% {
        opacity: 0;
        transform: translate(-100%);
    }

    51% {
        opacity: 1;
    }
}

/* hover button */

.tf-portfolio-wrap .portfolio-post .tf-button {
    display: inline-flex;
    align-items: center;
}

.tf-portfolio-wrap .portfolio-post .tf-button i {
    margin-left: 14px;
}

.tf-portfolio-wrap .portfolio-post .tf-button .info-label {
    position: relative;
}

.tf-portfolio-wrap .portfolio-post .tf-button .info-label:after {
    content: attr(data-text) "";
    left: 0;
    top: 0;
    opacity: 0;
    position: absolute;
    transform: rotateX(90deg);
}


/* hover Image */

.tf-portfolio-wrap .portfolio-post .featured-post img {
    transition: clip-path 1s cubic-bezier(.12, .76, .36, 1), opacity .3s, transform 1.5s cubic-bezier(.12, .76, .36, 1);
}

.tf-portfolio-wrap .portfolio-post:hover .featured-post img {
    transform: scale(1.07);
}

@media (max-width: 991px) {

    .tf-portfolio-wrap.no-carousel.tablet-column-1 .wrap-portfolio-post .item {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tf-portfolio-wrap.no-carousel.tablet-column-2 .wrap-portfolio-post .item {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }

    .tf-portfolio-wrap.no-carousel.tablet-column-3 .wrap-portfolio-post .item {
        -ms-flex: 0 0 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .tf-portfolio-wrap.style3 .portfolio-post {
        padding: 30px 0px 30px 0px;
        column-gap: 40px;
    }

    .tf-portfolio-wrap .owl-carousel .owl-dots {
        bottom: -50px;
    }
    .tf-portfolio-wrap.style2 .onhover-tabbing-wrap {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .tf-portfolio-wrap.style1 .portfolio-post .featured-post img {
        height: auto;
    }

    .tf-portfolio-wrap.no-carousel.mobile-column-1 .wrap-portfolio-post .item {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }


    .tf-portfolio-wrap.style3 .portfolio-post .featured-post {
        width: 100%;
    }
    .tf-portfolio-wrap.style4 .portfolio-post .featured-post img {
        height: auto !important;
    }
    .tf-portfolio-wrap.style3 .portfolio-post .tf-button {
        font-size: 12px;
        width: 50px;
        min-width: 50px;
        height: 50px;
    }
    .tf-portfolio-wrap.style2 .onhover-tabbing-wrap .content-left .tcase-thumb {
        padding-left: 15px;
        padding-right: 15px;
    }
}
@media (max-width: 600px) {
    .tf-widget-portfolio-wrap.style4 .owl-dots{
        display: none;
    }
}
@media (max-width: 480px) {
    .tf-portfolio-wrap.style2 .onhover-tabbing-wrap .content-right .portfolio-post {
        flex-direction: column;
        align-items: flex-start;
    }

}
