body {
  counter-reset: project_count;
}
/* General transition for portfolio elements */
.thsn-portfolio-style-5,
.thsn-element-portfolio-style-5 .thsn-ele-portfolio,
.thsn-portfolio-style-5 .thsn-portfolio-icon-wrapper i,
.thsn-portfolio-style-5 .pbmit-portfolio-content-wrapper,
.thsn-portfolio-style-5 .thsn-featured-wrapper img,
.thsn-portfolio-style-5 .thsn-portfolio-icon-wrapper,
.thsn-portfolio-style-5 img {
    transition: all 0.45s ease-in-out;
}
.thsn-portfolio-style-5 {
    padding: 27px 0;
    border-bottom: 1px solid #D3D5D9;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}
.thsn-active.thsn-portfolio-style-5 {
    padding: 27px 0 35px;
}
.thsn-portfolio-style-5 .themesion-post-item.d-flex {
    align-items: center;
}
.thsn-portfolio-style-5 .thsn-image-wrapper {
    width: 50%;
}
.thsn-portfolio-style-5 .thsn-content-wrapper {
    padding: 20px 150px 0 72px;
    width: 50%;
    position: relative;
}
.thsn-portfolio-style-5 .thsn-portfolio-title {
    font-size: 40px;
    line-height: 44px;
    margin-top: 0;
    letter-spacing: -1.23px;
}
.thsn-portfolio-style-5 .thsn-portfolio-title a {
    color: #2c2c2c;
}
.thsn-text-color-white .thsn-portfolio-style-5 .thsn-portfolio-title a {
    color: #fff;
}
.thsn-portfolio-style-5 .thsn-port-cat {
    position: relative;
    line-height: 13px;
    margin-bottom: 25px;
}
.thsn-portfolio-style-5 .thsn-meta-date,
.thsn-portfolio-style-5 .thsn-port-cat a {
    text-transform: uppercase;
    font-size: 14px;
    line-height: 28px;
    height: 28px;
    font-weight: 500;
    letter-spacing: 0;
    padding: 0 14px;
    border-radius: 50px;
    color: #4B535D;
    border: 1px solid #D3D5D9;
    display: inline-block;
}
.thsn-portfolio-style-5 .thsn-port-cat a {
    margin-right: 11px;
}

.thsn-portfolio-style-5 .thsn-featured-wrapper img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 7px;
}
.thsn-active.thsn-portfolio-style-5 .thsn-featured-wrapper img {
    height: 390px;
}
.thsn-portfolio-style-5 .pbmit-portfolio-content-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s ease-in-out, opacity 0.45s ease-in-out;
}

.thsn-active.thsn-portfolio-style-5 .pbmit-portfolio-content-wrapper {
    max-height: 500px;
    opacity: 1;
}
.thsn-element-portfolio-style-5 .themesion-ele-portfolio {
    position: relative;
    height: 155px;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
    overflow: hidden;
    transition: height 0.45s ease-in-out;
    margin: 0 !important;
}
.thsn-element-portfolio-style-5 .themesion-ele-portfolio.thsn-active {
    height: 455px !important;
}
.thsn-portfolio-style-5 .thsn-count-number {
    color: var(--thsn-dentiq-global-color);
    position: absolute;
    top: 28px;
    left: 0;
    letter-spacing: -0.54px;
    font-size: 18px;
}
.thsn-portfolio-style-5 .thsn-count-number::after {
  counter-increment: project_count;
  content: "00" counter(project_count);
}

.thsn-portfolio-style-5 .thsn-count-number:nth-child(n+10)::before {
  content: "0" counter(project_count);
}
.thsn-portfolio-style-5 .thsn-count-number:nth-child(n+100)::before {
  content: counter(project_count);
}
.thsn-portfolio-style-5 .thsn-read-more-link a {
    padding: 15px 30px;
    background-color: var(--thsn-dentiq-global-color);
    border-radius: 7px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.28px;
    margin-top: 96px;
    display: inline-block;
    transition: background-color 0.45s ease-in-out;
}
.thsn-portfolio-style-5 .thsn-read-more-link a i {
    font-size: 18px;
    margin-left: 8px;
    transition: transform 0.55s ease;
	display: inline-block;
	font-weight: normal !important;
}
.thsn-portfolio-style-5 .thsn-read-more-link a:hover i {
 	transform: rotate(90deg);
}
.thsn-portfolio-style-5 .thsn-read-more-link a:hover {
    background-color: var(--thsn-dentiq-blackish-color);
}

@media (max-width: 1200px) { 
    .thsn-portfolio-style-5 .thsn-content-wrapper {
        padding: 20px 70px 0 72px;
    }
}
@media (max-width: 991px) {
    .thsn-portfolio-style-5 .thsn-content-wrapper {
        padding: 20px 40px 0 60px;
    }
    .thsn-portfolio-style-5 .thsn-portfolio-title {
        font-size: 32px;
        line-height: 40px;
    }
    .thsn-portfolio-style-5 .thsn-read-more-link a {
        margin-top: 60px;
    }
}
@media (max-width: 767px) {
    .thsn-portfolio-style-5 .themesion-post-item.d-flex {
        display: block !important;
    }
    .thsn-portfolio-style-5 .thsn-content-wrapper {
        padding: 70px 0px 0 0px;
        width: 100%;
    }
    .thsn-portfolio-style-5 .thsn-image-wrapper {
        width: 100%;
    }
    .thsn-portfolio-style-5 .thsn-read-more-link a {
        margin: 0px 0 40px;
    }
    .thsn-element-portfolio-style-5 .themesion-ele-portfolio.thsn-active {
        height: 774px !important;
    }
    .thsn-element-portfolio-style-5 .themesion-ele-portfolio {
        height: 285px;
    }
}