.tt-project-folders {
	--tt-pf-bg: #f4f7f0;
	--tt-pf-fg: #0f0f0f;
	--tt-pf-fg-hover: var(--tt-pf-fg);
	--tt-pf-v1: #ffc640;
	--tt-pf-v1-fg: var(--tt-pf-fg);
	--tt-pf-v1-fg-hover: var(--tt-pf-fg-hover);
	--tt-pf-v2: #d5d9d2;
	--tt-pf-v2-fg: var(--tt-pf-fg);
	--tt-pf-v2-fg-hover: var(--tt-pf-fg-hover);
	--tt-pf-v3: #b0b3ad;
	--tt-pf-v3-fg: var(--tt-pf-fg);
	--tt-pf-v3-fg-hover: var(--tt-pf-fg-hover);
	--tt-pf-disabled-bg: #e8ebe4;
	--tt-pf-disabled-fg: #b0b3ad;
	--tt-pf-folder-h: 12.5rem;
	--tt-pf-tab-w: 40%;
	--tt-pf-tab-h: 2.35rem;
	--tt-pf-preview-w: 25rem;
	--tt-pf-img-w: 8rem;
	--tt-pf-img-h: 12rem;
	position: relative;
	width: 100%;
	color: var(--tt-pf-fg);
	background: var(--tt-pf-bg);
	overflow: hidden;
}

.tt-project-folders__list {
	width: 100%;
	min-height: var(--tt-pf-min-h, 100svh);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
}

.tt-project-folders__row {
	position: relative;
	width: 100%;
	display: flex;
}

.tt-project-folders__row:nth-child(1) {
	z-index: 1;
}

.tt-project-folders__row:nth-child(2) {
	z-index: 2;
}

.tt-project-folders__row:nth-child(3) {
	z-index: 3;
}

.tt-project-folders__list--rows-3 .tt-project-folders__row:nth-child(1) {
	bottom: -13rem;
}

.tt-project-folders__list--rows-3 .tt-project-folders__row:nth-child(2) {
	bottom: -7.5rem;
}

.tt-project-folders__list--rows-3 .tt-project-folders__row:nth-child(3) {
	bottom: -2rem;
}

.tt-project-folders__list--rows-2 .tt-project-folders__row:nth-child(1) {
	bottom: -7.5rem;
}

.tt-project-folders__list--rows-2 .tt-project-folders__row:nth-child(2) {
	bottom: -2rem;
}

.tt-project-folders__folder {
	position: relative;
	flex: 1;
	height: var(--tt-pf-folder-h);
	display: flex;
	flex-direction: column;
	cursor: pointer;
	color: inherit;
	text-decoration: none;
}

.tt-project-folders__list--rows-3 .tt-project-folders__row:nth-child(2) .tt-project-folders__folder:nth-child(1) {
	flex: 2;
}

.tt-project-folders__list--rows-3 .tt-project-folders__row:nth-child(2) .tt-project-folders__folder:nth-child(2) {
	flex: 3;
}

.tt-project-folders__preview {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--tt-pf-preview-w);
	height: 100%;
	pointer-events: none;
	z-index: 0;
}

.tt-project-folders--imgs-4 .tt-project-folders__preview {
	--tt-pf-preview-w: 30rem;
}

.tt-project-folders__preview-img {
	position: absolute;
	top: 50%;
	width: var(--tt-pf-img-w);
	height: var(--tt-pf-img-h);
	overflow: hidden;
	border-radius: 2px;
	box-shadow: 0 12px 30px rgba(15, 15, 15, 0.18);
}

.tt-project-folders__preview-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tt-project-folders__preview-img:nth-child(1) {
	left: 20%;
	transform-origin: top left;
}

.tt-project-folders__preview-img:nth-child(2) {
	left: 50%;
	transform-origin: center;
}

.tt-project-folders__preview-img:nth-child(3) {
	left: 80%;
	transform-origin: top right;
}

.tt-project-folders--imgs-4 .tt-project-folders__preview-img:nth-child(1) {
	left: 12%;
}

.tt-project-folders--imgs-4 .tt-project-folders__preview-img:nth-child(2) {
	left: 38%;
}

.tt-project-folders--imgs-4 .tt-project-folders__preview-img:nth-child(3) {
	left: 64%;
	transform-origin: center;
}

.tt-project-folders--imgs-4 .tt-project-folders__preview-img:nth-child(4) {
	left: 88%;
	transform-origin: top right;
}

.tt-project-folders__wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	will-change: transform;
	z-index: 1;
	background-color: var(--tt-pf-v2);
	transition: background-color 250ms ease;
	clip-path: polygon(
		0 0,
		calc(var(--tt-pf-tab-w) + (var(--tt-pf-tab-h) * 0.25)) 0,
		calc(var(--tt-pf-tab-w) + var(--tt-pf-tab-h)) var(--tt-pf-tab-h),
		100% var(--tt-pf-tab-h),
		100% 100%,
		0 100%
	);
	-webkit-clip-path: polygon(
		0 0,
		calc(var(--tt-pf-tab-w) + (var(--tt-pf-tab-h) * 0.25)) 0,
		calc(var(--tt-pf-tab-w) + var(--tt-pf-tab-h)) var(--tt-pf-tab-h),
		100% var(--tt-pf-tab-h),
		100% 100%,
		0 100%
	);
}

.tt-project-folders__index {
	position: relative;
	width: var(--tt-pf-tab-w);
	height: var(--tt-pf-tab-h);
	display: flex;
	align-items: center;
	padding: 0 0.75rem;
	box-sizing: border-box;
	background: none;
	z-index: 2;
}

.tt-project-folders__index p,
.tt-project-folders__index span {
	margin: 0;
	text-transform: uppercase;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1;
	transition: color 250ms ease;
}

.tt-project-folders__index::after {
	content: none;
}

.tt-project-folders__name {
	position: relative;
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
	display: flex;
	align-items: flex-start;
	padding: 0 0.25rem 0 2rem;
	box-sizing: border-box;
	background: none;
	z-index: 1;
}

.tt-project-folders__name h2,
.tt-project-folders__name h3,
.tt-project-folders__name div {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2.75rem);
	font-weight: 400;
	line-height: 1;
	transition: color 250ms ease;
}

.tt-project-folders__folder--v1 .tt-project-folders__wrapper {
	background-color: var(--tt-pf-v1);
}

.tt-project-folders__folder--v1 .tt-project-folders__index p,
.tt-project-folders__folder--v1 .tt-project-folders__index span,
.tt-project-folders__folder--v1 .tt-project-folders__name h2,
.tt-project-folders__folder--v1 .tt-project-folders__name h3,
.tt-project-folders__folder--v1 .tt-project-folders__name div {
	color: var(--tt-pf-v1-fg);
}

.tt-project-folders__folder--v1:hover .tt-project-folders__index p,
.tt-project-folders__folder--v1:hover .tt-project-folders__index span,
.tt-project-folders__folder--v1:hover .tt-project-folders__name h2,
.tt-project-folders__folder--v1:hover .tt-project-folders__name h3,
.tt-project-folders__folder--v1:hover .tt-project-folders__name div,
.tt-project-folders__folder--v1.is-hover .tt-project-folders__index p,
.tt-project-folders__folder--v1.is-hover .tt-project-folders__index span,
.tt-project-folders__folder--v1.is-hover .tt-project-folders__name h2,
.tt-project-folders__folder--v1.is-hover .tt-project-folders__name h3,
.tt-project-folders__folder--v1.is-hover .tt-project-folders__name div {
	color: var(--tt-pf-v1-fg-hover);
}

.tt-project-folders__folder--v2 .tt-project-folders__wrapper {
	background-color: var(--tt-pf-v2);
}

.tt-project-folders__folder--v2 .tt-project-folders__index p,
.tt-project-folders__folder--v2 .tt-project-folders__index span,
.tt-project-folders__folder--v2 .tt-project-folders__name h2,
.tt-project-folders__folder--v2 .tt-project-folders__name h3,
.tt-project-folders__folder--v2 .tt-project-folders__name div {
	color: var(--tt-pf-v2-fg);
}

.tt-project-folders__folder--v2:hover .tt-project-folders__index p,
.tt-project-folders__folder--v2:hover .tt-project-folders__index span,
.tt-project-folders__folder--v2:hover .tt-project-folders__name h2,
.tt-project-folders__folder--v2:hover .tt-project-folders__name h3,
.tt-project-folders__folder--v2:hover .tt-project-folders__name div,
.tt-project-folders__folder--v2.is-hover .tt-project-folders__index p,
.tt-project-folders__folder--v2.is-hover .tt-project-folders__index span,
.tt-project-folders__folder--v2.is-hover .tt-project-folders__name h2,
.tt-project-folders__folder--v2.is-hover .tt-project-folders__name h3,
.tt-project-folders__folder--v2.is-hover .tt-project-folders__name div {
	color: var(--tt-pf-v2-fg-hover);
}

.tt-project-folders__folder--v3 .tt-project-folders__wrapper {
	background-color: var(--tt-pf-v3);
}

.tt-project-folders__folder--v3 .tt-project-folders__index p,
.tt-project-folders__folder--v3 .tt-project-folders__index span,
.tt-project-folders__folder--v3 .tt-project-folders__name h2,
.tt-project-folders__folder--v3 .tt-project-folders__name h3,
.tt-project-folders__folder--v3 .tt-project-folders__name div {
	color: var(--tt-pf-v3-fg);
}

.tt-project-folders__folder--v3:hover .tt-project-folders__index p,
.tt-project-folders__folder--v3:hover .tt-project-folders__index span,
.tt-project-folders__folder--v3:hover .tt-project-folders__name h2,
.tt-project-folders__folder--v3:hover .tt-project-folders__name h3,
.tt-project-folders__folder--v3:hover .tt-project-folders__name div,
.tt-project-folders__folder--v3.is-hover .tt-project-folders__index p,
.tt-project-folders__folder--v3.is-hover .tt-project-folders__index span,
.tt-project-folders__folder--v3.is-hover .tt-project-folders__name h2,
.tt-project-folders__folder--v3.is-hover .tt-project-folders__name h3,
.tt-project-folders__folder--v3.is-hover .tt-project-folders__name div {
	color: var(--tt-pf-v3-fg-hover);
}

.tt-project-folders__folder.is-disabled .tt-project-folders__wrapper {
	background-color: var(--tt-pf-disabled-bg);
}

.tt-project-folders__folder.is-disabled .tt-project-folders__index p,
.tt-project-folders__folder.is-disabled .tt-project-folders__index span,
.tt-project-folders__folder.is-disabled .tt-project-folders__name h2,
.tt-project-folders__folder.is-disabled .tt-project-folders__name h3,
.tt-project-folders__folder.is-disabled .tt-project-folders__name div,
.tt-project-folders__folder.is-disabled .tt-project-folders__name * {
	color: var(--tt-pf-disabled-fg);
}

@media (max-width: 62.5rem) {
	.elementor-widget-treethemes-project-folders,
	.elementor-widget-treethemes-project-folders > .elementor-widget-container,
	.tt-project-folders {
		--tt-pf-folder-h: var(--tt-pf-folder-h-m, 6.5rem);
		--tt-pf-tab-w: var(--tt-pf-tab-w-m, 48%);
		--tt-pf-tab-h: 1.85rem;
		min-height: 0;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
		overflow: hidden;
		clip-path: inset(0);
		-webkit-clip-path: inset(0);
		contain: paint;
		touch-action: pan-y;
	}

	.tt-project-folders {
		width: 100%;
	}

	.tt-project-folders__list {
		min-height: var(--tt-pf-min-h-m, 0px);
		height: auto;
		justify-content: flex-start;
		max-width: 100%;
		min-width: 0;
		overflow: hidden;
		contain: paint;
		padding-bottom: var(--tt-pf-overlap-m, 0.5rem);
	}

	.tt-project-folders__row {
		display: contents;
	}

	.tt-project-folders__folder {
		flex: none;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
		height: var(--tt-pf-folder-h-m, 6.5rem);
		margin-bottom: calc(-1 * var(--tt-pf-overlap-m, 0.5rem));
		order: var(--tt-pf-m-order, 0);
		z-index: var(--tt-pf-m-order, 0);
		overflow: hidden;
	}

	.tt-project-folders__wrapper {
		will-change: auto;
		transform: none !important;
		max-width: 100%;
	}

	.tt-project-folders__preview,
	.tt-project-folders__preview-img {
		display: none !important;
		visibility: hidden !important;
		pointer-events: none !important;
		width: 0 !important;
		height: 0 !important;
		max-width: 0 !important;
		overflow: hidden !important;
		transform: none !important;
		left: 0 !important;
		position: absolute !important;
		inset: auto !important;
	}

	.tt-project-folders__row:last-child .tt-project-folders__folder:last-child {
		margin-bottom: calc(-1 * var(--tt-pf-overlap-m, 0.5rem));
	}

	.tt-project-folders__list--rows-3 .tt-project-folders__row:nth-child(2) .tt-project-folders__folder:nth-child(1),
	.tt-project-folders__list--rows-3 .tt-project-folders__row:nth-child(2) .tt-project-folders__folder:nth-child(2) {
		flex: none;
	}

	.tt-project-folders__index {
		width: var(--tt-pf-tab-w);
		padding: 0 0.7rem;
	}

	.tt-project-folders__name {
		padding: var(--tt-pf-name-pad-m, 0 1.25rem 0.85rem 1.25rem);
	}

	.tt-project-folders__name h2,
	.tt-project-folders__name h3,
	.tt-project-folders__name div {
		font-size: var(--tt-pf-title-m, clamp(1.15rem, 5.6vw, 1.65rem)) !important;
		max-width: 100%;
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.tt-project-folders__list--rows-3 .tt-project-folders__row:nth-child(2) .tt-project-folders__folder--v2 .tt-project-folders__wrapper {
		background-color: var(--tt-pf-v3);
	}

	.tt-project-folders__list--rows-3 .tt-project-folders__row:nth-child(2) .tt-project-folders__folder--v3 .tt-project-folders__wrapper {
		background-color: var(--tt-pf-v2);
	}
}
