.portfolio-section {
	position: relative;
	padding: 80px 0 80px!important;
	overflow: hidden;
}

.portfolio-section::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 70%;
	background-color: var(--color-primary);
	border-radius: 16px;
	z-index: -1;
}

.portfolio-section::after {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 30%;
	background-color: var(--color-second);
	border-radius: 16px;
	z-index: -1;
}

.portfolio-section .container-fluid {
	width: 100%;
	padding-right: .75rem;
	padding-left: .75rem;
	margin-right: auto;
	margin-left: 200px;
}

.portfolio-section .section-title .section-main-title h2 {
	font-size: 48px;
	color: #fff!important;
	font-weight: 600;
	margin-bottom: 42px;
}

.portfolio-section .section-sub-title {
	position: relative;
	display: inline-block;
}

.portfolio-section .section-sub-title h4 {
	font-size: 24px;
	color: #fff;
	font-weight: 500;
	margin-bottom: 7px;
	position: relative;
	padding: 0 50px 0 0;
}

.portfolio-section .section-sub-title h4::before {
	position: absolute;
	content: "";
	height: 2px;
	width: 35px;
	background: #fff;
	right: 0;
	top: 9px;
}

.portfolio-section .section-sub-title h4::after {
	position: absolute;
	content: "";
	height: 2px;
	width: 35px;
	background: #fff;
	right: -12px;
	top: 17px;
}

.portfolio-itmes-box {
	position: relative;
}

.portfolio-itmes-box .portfolio-thumb img {
	aspect-ratio: 1 / 1.2;
	object-fit: contain;
}

.portfolio-content {
	position: absolute;
	bottom: 0;
	left: 0px;
	right: 0;
	margin: auto;
	opacity: 0;
	transition: .5s;
}

.portfolio-itmes-box:hover .portfolio-content {
	bottom: 40px;
	opacity: 1;
}

.portfolio-content-text {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	position: relative;
	text-align: center;
	width: 394px;
	height: 100px;
	background-color: #f9f9f9;
	padding: 0 48px;
	margin: auto;
	clip-path: polygon(12% 0%, 100% 0%, 87% 100%, 0% 100%);
}

.portfolio-content-text h4 {
	overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.portfolio-content-text h4 a {
	font-size: 22px;
	color: var(--title-text-color);
	text-decoration: none;
}

.portfolio-content-text span {
	font-size: 16px;
	line-height: 38px;
	overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.portfolio-section .owl-nav {
	position: inherit;
}

.portfolio-section .owl-prev {
	position: absolute;
	right: 8px;
}

.portfolio-section .owl-prev i {
	width: 40px;
	height: 40px;
	line-height: 44px;
	font-size: 20px;
}

.portfolio-section .owl-next {
	position: absolute;
	left: 87px;
}

.portfolio-section .owl-next i {
	width: 40px;
	height: 40px;
	line-height: 44px;
	font-size: 20px;
	border: 1px dashed var(--color-primary);
}

.portfolio-section .no-js .owl-carousel,
.owl-carousel.owl-loaded {
	display: block;
}

@media only screen and (min-width: 320px) and (max-width: 479px) {
	.portfolio-section {
    padding: 35px 0 34px;
	}

	.portfolio-section::before {
		content: "";
		position: absolute;
		left: 0;
		top: 0;
		bottom: 0;
		right: 0;
		width: 100%;
		border-radius: 0;
		background-color: var(--color-primary);
		z-index: -1;
	}
	
	.portfolio-section::after {
		content: none;
	}

	.portfolio-section .container-fluid {
		margin: 0;
	}

	.portfolio-section .section-sub-title h4 {
		font-size: 22px;
	}

	.portfolio-section .section-title .section-main-title h2 {
		font-size: 28px;
    line-height: 28px;
	}	
}
