.case-study__post {
	width: fit-content;
	display: flex;
	flex-direction: column;
	row-gap: 1rem;
	width: 100%;
	position: relative;
	transition: .75s ease-out;
}

.case-study__thumbnail {
	overflow: hidden;
	display: flex;
	width: fit-content;
	border-radius: 16px;
	position: relative;
	width: 100%;
	height: 530px;
	cursor: none;
}

.case-study__post:hover img.case-study__thumbnail--image {
	transform: scale(1.1);
	transition: .5s ease;
	object-fit: cover;
}

.case-study__label {
	color: white;
	background: rgba(49, 49, 49, 0.80);
	position: absolute;
	right: 20px;top: 20px;
	border-radius: 40px;
	padding: 18px;
	line-height: 1;
	white-space: nowrap;
}

img.case-study__thumbnail--image {
	border-radius: 16px;
	transition: .5s ease;
	width: 100%;
	object-fit: cover;
	user-select: none;
	-webkit-user-select: none;
	-webkit-user-drag: none;
}

.case-study__thumbnail--video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: .5s ease;
	opacity: 0;
}

/* Video Hover */
.case-study__post:hover .i-hover-video .case-study__thumbnail--video {
	transform: scale(1.1);
	opacity: 1;
}


/* Case study scopes - taxonomy */
.case-study__scopes {
	display: flex;
	flex-wrap: wrap;
	column-gap: 1rem;
	row-gap: 0.5rem;
}

.case-study__scopes--scope {
	color: #7ACD17 !important;
	transition: .5s ease;
	margin: 0;
}

.case-study__scopes--scope:hover {
	color: #7ACD17;
	transition: .5s ease;
}

/* title and excerpt */
.case-study__details {
	display: flex;
	flex-direction: column;
	row-gap: .75rem;
}

.case-study__title {
	font-size: 20px;
	font-weight: 600;
	margin: 0;
}

.case-study__title,
.case-study__excerpt {
	color: #212121;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	word-break: break-word;
}



/* Main case studies container */
.case-study-container {
	display: flex;
	flex-direction: column;
	row-gap: 4rem;
}

/* Subcontainer - masonry view */
.case-study__subcontainer {
	display: grid;
	grid-template-columns: 7fr 5fr;
	column-gap: 20px;
	align-items: end;
}

.case-study__subcontainer:nth-child(2n-1) .case-study__post:nth-child(2) .case-study__thumbnail,
.case-study__subcontainer:nth-child(2n) .case-study__post:nth-child(1) .case-study__thumbnail {
	max-height: 320px;	
}

.case-study__subcontainer:nth-child(2n) {
	grid-template-columns: 5fr 7fr;
}

.case-study__subcontainer:nth-child(2n):not(:has(.case-study__post:nth-child(2))) {
	padding-top: 150px;
}



/* Filtering */
.case-study-item--filtered {
	display: none;
}

.case-study__filters {
	display: flex;
	justify-content: space-between;
	margin-bottom: 4rem;
	column-gap: 4rem;
}


/* Filter by scope */
.filters__scopes{
	display: flex;
	flex-direction: row;
	column-gap: 1rem;
	row-gap: 1rem;
	align-items: start;
	flex-wrap: wrap;
}

.filters__scopes .filter__scope {
	cursor: pointer;
	color: #212121;
	border: 1px solid #F5F5F5;
	background: #F5F5F5;
	white-space: nowrap;
	padding: 10px 15px;
	border-radius: 50px;
	line-height: 1;
	transition: .5s ease;
	margin: 0;
}

.filters__scopes .filter__scope.active,
.filters__scopes .filter__scope:hover {
	color: #212121;
	border-color: #D1F1AB;
	background-color: #D1F1AB;
	transition: .5s ease;
}

.filters__scopes .filter__scope.disabled{
	pointer-events:none;
	user-select:none;
	cursor: not-allowed;
}


/* Filter by industry */
.filters__dropdown{
	display: flex;
	flex-direction: column;
	column-gap: 1rem;
	align-items: start;
	width: 100%;
	height: 100%;
	position: relative;
}

.filters__dropdown .filters__dropdown--selected {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(49, 49, 49, 0.50);
	cursor: pointer;
}

.filters__dropdown .filters__dropdown--selected p {
	color: rgba(33, 33, 33, 0.80);
	margin: 0;
}


/* Icon transform */
.filters__dropdown .filters__dropdown--selected svg {
	transition: .5s ease;
}

.filters__dropdown .filters__dropdown--selected svg path{
	fill: #7ACD17;
}

.filters__dropdown .filters__dropdown--selected.opened svg {
	transform: rotate(90deg);
	transition: .5s ease;
}

/* Industry filters - options */
.filters__dropdown--options {
	display: none;
	color: white;
	position: absolute;
	width: 100%;
	top: 100%;
	z-index: 9999;
	background-color: #212121;
	max-height: 260px;
	overflow-y: scroll;
}

/* Options scrollbbar */
.filters__dropdown--options::-webkit-scrollbar {
	width: 14px;
	padding: 5px;
    }
    
.filters__dropdown--options::-webkit-scrollbar-track {
	background: #F9F9F9;
}

.filters__dropdown--options::-webkit-scrollbar-thumb {
	background: #585858;
	border: 3px solid #F9F9F9;
	border-radius: 50px;
}


/* Single option */
.filters__dropdown--options .filters__dropdown--option {
	color: white;
	background-color: #212121;
	cursor: pointer;
	margin: 0;
	padding: 10px 20px;
}

.filters__dropdown--options .filters__dropdown--option.active {
	background-color: #AAA;
}

.filters__dropdown--options .filters__dropdown--option:hover {
	color: white;
	background-color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
}





/* Loader */
/* Loader ring */
.loader{
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 50px;
	border-radius: 10px;
}


.lds-ring {
	display: inline-block;
	position: relative;
	width: 120px;
	height: 120px;
}

.lds-ring div {
	box-sizing: border-box;
	display: block;
	position: absolute;
	width: 104px;
	height: 104px;
	margin: 8px;
	border: 15px solid;
	border-radius: 50%;
	animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
	border-color: #D1F1AB transparent transparent #FFF;
}

.lds-ring div:nth-child(1) {
	animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
	animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
	animation-delay: -0.15s;
}

@keyframes lds-ring {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}




/* Custom cursor */
.cursor {
	position: fixed;
	width: 120px;
	height: 120px;
	background: #7ACD17;
	color: white;
	font-weight: 600;
	border-radius: 250px;
	pointer-events: none;
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
	animation: unActiveCursor 200ms ease forwards running
}

.cursor.visible {
	opacity: 1;
	animation: activeCursor 200ms ease forwards running
}

@keyframes activeCursor {
	0% {
		transform: translate(-50%, -50%) scale(0);
	}

	100% {
		transform: translate(-50%, -50%) scale(1);
	}
}

@keyframes unActiveCursor {
	0% {
		transform: translate(-50%, -50%) scale(1);
	}

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

@media (pointer:coarse) {
	.cursor,
	.cursor.visible {
		display: none !important;
		opacity: 0 !important;
	}
}







/* Media queries */
@media screen and (max-width:992px) {
	.case-study-container {
		margin-top: 3rem;
		display: flex;
		flex-direction: column;
		row-gap: 3rem;
	}

	.case-study__subcontainer {
		display: flex;
		flex-direction: column;
		row-gap: 3rem;
		margin: 0;
	}

	.case-study__subcontainer .case-study__post:nth-child(2),
	.case-study__subcontainer:nth-child(2n) {
		margin-top: 0;
	}

	.case-study__thumbnail,
	img.case-study__thumbnail--image {
		height: 350px;
		max-height: 350px;
	}

	.case-study__post {
		transform: none !important;
	}

	.case-study__subcontainer:nth-child(2n):not(:has(.case-study__post:nth-child(2))) {
		padding-top: 0;
	}
	

	/* Filters */
	.case-study__filters {
		flex-direction: column;
		row-gap: 3rem;
	}

	.filters__dropdown {
		max-width: 100%;
		min-width: 100%;
	}
}


@media screen and (max-width:767px) {
	.filters__scopes {
		display: flex;
		flex-wrap: wrap;
		row-gap: 1rem;
		column-gap: .5rem;
	}

	.filters__scopes::-webkit-scrollbar {
		display: none;
	  }

	.filters__scopes .filter__scope {
		white-space: nowrap;
	}

	/* Post picture */
	.case-study__thumbnail,
	img.case-study__thumbnail--image {
		height: 250px;
		max-height: 250px;
	}
}