.block-projects{padding: 10vh 0; margin: 0 auto;position: relative;z-index: 1;overflow: hidden;}
.block-projects.projects_description:before{content: ""; width: 100%; height: 100%; position: absolute; z-index: -2;background: #F5F5F5;top: 25vw;}
.block-projects .project_listing{margin: 0 auto;}
.block-projects.projects_gallery{background-image: url("../img/world.svg");background-repeat: no-repeat;background-size: cover; background-position: center center;-webkit-transition: background-color 1s;-moz-transition: background-color 1s;-o-transition: background-color 1s;transition: background-color 1s;
}
.block-projects.projects_teaser .project_listing{width: 90%; display: grid;grid-template-columns: 1fr 1fr 1fr;column-gap: 5%;align-items: center;}
.block-projects.projects_teaser .project_listing .project_item{text-align: center;}
.block-projects.projects_teaser .project_listing .project_item:first-of-type{margin-top: 40vh;}
.block-projects.projects_teaser .project_listing .project_item:last-of-type{margin-top: 60vh;}
.block-projects.projects_teaser .project_item h4{color: #FCC19A;text-transform: uppercase;margin-bottom: 1rem;}
.block-projects.projects_teaser .project_item p{margin: 0 auto 2rem;}

.block-projects.projects_description:before{content: ""; width: 100%; height: 100%; position: absolute; z-index: -10;background: #F5F5F5;transform: translateY(50%;)}
.block-projects.projects_description .project_listing{background-image: url("../img/world_grey.svg");background-repeat: no-repeat; background-size: 150vw auto; background-position: 75% center;}
.block-projects.projects_description .project_listing .project_item{width: 100%;}
.block-projects.projects_description .project_image{width: 75%;display: block;}
.block-projects:not(.projects_listing) .project_item:nth-of-type(2) .project_image{margin: auto 0 auto auto;}

.block-projects .project_item blockquote.photo_bg{
	font-size: 6.5rem;
	font-size: clamp(3rem, 5.5vw, 6.5rem);
	background: inherit;
	background-clip: text;
	-webkit-background-clip: text;
	background-size: 70vw auto;
	background-position: 0% 50%;
	background-repeat: no-repeat;
	color: transparent;
	-webkit-transition: opacity 500ms;
	-moz-transition: opacity 500ms;
	-o-transition: opacity 500ms;
	transition: opacity 500ms;
	margin: 0 auto;
	text-transform: uppercase;
	margin-left: 35%;
	transform: translateY(-50%);
}

.block-projects .project_item:nth-of-type(2) blockquote.photo_bg{margin-left: 5%;}

.block-projects .project_content{width: 25%;margin-left: 25%;margin-bottom: 15vh;}
.block-projects .project_item:nth-of-type(2) .project_content{margin-left: 50%;}

.block-projects .learn_more{position: relative;padding: 0 3rem;display: inline-block;}
.block-projects.projects_description .learn_more{padding: 0 3rem 0 0;}
.block-projects.projects_description .learn_more {color: #000;}
.block-projects.projects_teaser .learn_more .fleche,
.block-projects.projects_teaser .learn_more .fleche .head, .block-projects.projects_teaser .fleche .head:after,
.block-projects.projects_description .learn_more .fleche,
.block-projects.projects_description .learn_more .fleche .head, .block-projects.projects_description .learn_more .fleche .head:after{background-color: #000 !important;}

//Add number to section titles
.block-projects.projects_teaser{
	counter-reset: domain-counter 0;
}
.block-projects.projects_teaser .project_listing .project_item {
	counter-increment: domain-counter 1; /* Increase the counter by 1. */
}

.block-projects.projects_teaser .project_listing .project_item:before{
	color: #B7B7B7;
	font-size: 0.9rem;
	font-family: 'Futura', sans-serif;
	font-weight: 400;
	line-height: 1;
	content: counter(domain-counter, decimal-leading-zero);
	rotate: -90deg;
	display: block;
	position: absolute;
	left: 0.25rem;
	top: -2rem;
}

.projects_gallery a.learn_more{
	background-color: #fff;
	color: #000;
	border: none;
}

.projects_gallery a.learn_more:hover{
	background-color: #000 !important;
}

.projects_gallery{background-color: #FCC19A;height: 100vh;opacity: 1 !important;}
.project_gallery{height: 100% !important;position: relative;width: 100%;}


.projects_teaser.section_title_container .section_title{width: 33.33%; min-width: 320px;margin: 0 auto; position: relative;left: 8vw;}
.projects_teaser .section_title h1, .projects_teaser .section_title h3{color: #FCC19A !important;position: absolute !important;}
.projects_teaser .section_title h1:before, .projects_teaser .section_title h3:before{
	background-color: #000 !important;
}
.projects_teaser.section_title_container .section_title h1:after, .projects_teaser.section_title_container .section_title h3:after{
	color: #000 !important;
}

.projects_gallery .project_item {
	width: 80%;
	height: 100%;
	margin: 5% auto 10%;
	left: 0;
	right: 0;
	position: absolute;
	pointer-events: none;
}

.projects_gallery .project_item.active{
	pointer-events: initial;
}

.projects_gallery .project_item .masked_img,
.projects_gallery .project_item .masked_text{
	overflow: hidden;
}

.projects_gallery .project_item .left_img .masked_img,
.projects_gallery .project_item .slide_url{
	margin: 2rem auto 0;
}

.projects_gallery .project_item .masked_text p,
.projects_gallery .project_item .masked_text h4,
.projects_gallery .project_item .masked_text a{
	transform: translateY(-150%);
	transition: transform 1s cubic-bezier(.5, 0, .5, 1);
}

.projects_gallery .project_item .masked_img .scale_img{
	transform: scale(1.1);
	transition: transform 0.5s cubic-bezier(.5, 0, .5, 1);
	transition-delay: 0.5s;
}
.projects_gallery .project_item .masked_img img{
	transform: translate3d(-150%, 0, 0);
	transition: transform 1s cubic-bezier(.5, 0, .5, 1);
}

.projects_gallery .project_item.active ~ .project_item .masked_text p,
.projects_gallery .project_item.active ~ .project_item .masked_text h4,
.projects_gallery .project_item.active ~ .project_item .masked_text a{
	transform: translateY(150%);
	transition: transform 1s cubic-bezier(.5, 0, .5, 1);
}

.projects_gallery .project_item.active ~ .project_item .masked_img .scale_img{
	transform: scale(1.1);
	transition: transform 0.5s cubic-bezier(.5, 0, .5, 1);
	transition-delay: 0.5s;
}
.projects_gallery .project_item.active ~ .project_item .masked_img img{
	transform: translate3d(150%, 0, 0);
	transition: transform 1s cubic-bezier(.5, 0, .5, 1);
}
.projects_gallery .project_item.active .masked_img .scale_img{
	transform: scale(1);
	transition: transform 1.2s cubic-bezier(.5, 0, .5, 1);
}
.projects_gallery .project_item.active .masked_img img{
	transform: translate3d(0%, 0, 0);
	transition: transform 1s cubic-bezier(.5, 0, .5, 1);
}

.projects_gallery .project_item.active .masked_text p,
.projects_gallery .project_item.active .masked_text h4,
.projects_gallery .project_item.active .masked_text a{
	transform: translate(0%);
	transition-delay: 1s;
}
.projects_gallery .project_item.active .masked_text p{
	transition-delay: 0.7s;
}

.projects_gallery .project_item.active .masked_text + .masked_text h4{
	transition-delay: 1.3s;
}

.projects_gallery .project_item.active .masked_text + .masked_text a{
	transition-delay: 1.6s;
}

.projects_gallery .project_item .left_img{
	position: absolute;
	left: 0;
	width: 17%;
	height: 40%;
	bottom: 45%;
}
.projects_gallery .project_item .left_img p,
.projects_gallery .project_item .project_name h4{
	color: #fff;
	text-transform: uppercase;
	text-align: center;
	font-family: 'Futura', sans-serif;
	font-weight:  400;
	margin: 0;
	/* line-height: 1; */
}

.projects_gallery .project_item .project_name h4{
	line-height: 1.45;
}

.projects_gallery .project_item .right_img{
	position: absolute;
	bottom: 10%;
	right: 0;
	width: 20%;
	height: 30%;
	overflow: hidden;
	object-fit: cover;
	z-index: -1;
}

.projects_gallery .project_item .project_name{
	position: absolute;
	left: 57%;
	bottom: 50%;
	width: 30%;
	text-align: center;
}

.projects_gallery .project_item .project_name a:hover,
.projects_gallery .project_item .project_name a:focus{
	color: #fff;
}

.projects_gallery .project_item .main_img{
	height: 90%;
	width: 40%;
	margin: auto;
	position: relative;
	overflow: hidden;
	z-index: -1;
}
.projects_gallery .project_item img{
	margin: auto !important;
	pointer-events: none;
	object-fit: cover;
	width: 100%;
	height: 100%;
}
.projects_gallery .project_item .left_img div.masked_img{
	background-repeat: no-repeat;
	background-size: 300% auto;
	background-position: 10% 30%;
	height: 100%;
	width: 100%;
}
.projects_gallery .project_item .scale_img{
	height: 100%;
	width: 100%;
}
.projects_gallery .project_item .main_img img{
	object-fit: cover;
	object-position: 50% 50%;
	width: 100%;
	height: 100%;
	display: block;
}
.projects_gallery .project_item .right_img div{
	background-repeat: no-repeat;
	background-size: 300% auto;
	background-position: 70% 70%;
	height: 100%;
	width: 100%;
}

/* position dots up a bit */
.projects_gallery .page-dots {
	bottom: -40px;
	z-index:2;
	width:10%;
	left: 0;
	right: 0;
	margin: auto;
	display:flex;
}
/* dots are lines */
.projects_gallery .page-dots .dot {
	height: 2px;
	margin: 0;
    width: 100%;
	border-radius: 0;
	opacity: 0;
	background-color: #fff;
	-webkit-transition: all 0.3s ease-in-out;
}
.projects_gallery .page-dots .dot:hover {
	opacity:1;
	background-color: #000;
}
.projects_gallery .page-dots .dot.is-selected{
	opacity: 0;
	background-color: #000;
}

.progress-bar_container{
	width:10%;
	height: 2px;
	margin:auto;
	display:block;
	background-color: #fff;
	position: absolute;
	left:0;
	right:0;
	bottom: -40px;
	z-index: 2;
}
.progress-bar {
	height: 2px;
	width: 0;
	background: #000;
	position:absolute;
	transition: all 0.5s cubic-bezier(.5, 0, .5, 1);
}
.progress-bar_container .slide_buttons{
	position: absolute;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: row;
	cursor: pointer;
}
.progress-bar_container .slide_buttons .slide_button{
	width:100%;
	background: #000;
	opacity: 0;
	transition: all 0.2s ease-in-out;
}

.progress-bar_container .slide_buttons .slide_button:hover{
	width:100%;
	background: #000;
	opacity: 1;
}
/* .progress-bar_container .slide_buttons a.slide_button.active{
	opacity: 1;
} */

.projects_gallery .gallery-button.disabled{
	opacity: 0;
	pointer-events: none;
}

.projects_gallery .prev-next-button{
	border: none;
	text-decoration: none;
	display: block;
	width: 1rem;
	height: 1rem;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 50%;
	z-index: 10;
	overflow: visible;
	cursor: pointer;
	background: transparent;
	border-radius: 0;
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}

.projects_gallery .prev-next-button:hover{
	width: 1.4rem;
	background: transparent;
}

.projects_gallery .prev-next-button.next{
	left: 95%;
	right: initial
}

.projects_gallery .prev-next-button.previous{
	right: 95%;
	left: initial
}

.projects_gallery .prev-next-button.previous:before, .projects_gallery .prev-next-button.previous:after{
	content: "";
	display: block;
	width: 7px;
	height: 7px;
	left: 1px;
	top: 5px;
	position: absolute;
	border-left: 1px solid #fff;
	border-bottom: 1px solid #fff;
	transform: rotate(45deg);
}

.projects_gallery .prev-next-button.next:before, .projects_gallery .prev-next-button.next:after{
	content: "";
	display: block;
	width: 7px;
	height: 7px;
	right: 1px;
	top: 5px;
	position: absolute;
	border-top: 1px solid #fff;
	border-right: 1px solid #fff;
	transform: rotate(45deg);
}

.projects_gallery .prev-next-button.previous:after,
.projects_gallery .prev-next-button.next:after{
	content: "";
	height: 1px;
	width: 100%;
	background-color: #fff;
	position: absolute;
	left: 0px;
	top: 8px;
	transform: rotate(0deg);
}

.projects_gallery .prev-next-button.next:after{
	right: 0px;
	left: initial;
}

.slide_numbers{
	color: #fff;
	right: 10%;
	position: absolute;
	top: 9rem;
	display: flex;
	z-index: 1;
	line-height: 0.4 !important;
	font-family: 'Futura', sans-serif !important;
	font-weight:  400;
}
.slide_numbers i{
	height: 1px;
	width: 4rem;
	background-color: #fff;
	margin: 0 0.7rem;
}

.projects_listing .section_title h3{
	margin-bottom: 5vh;
	margin-left: calc(10% + 9vw);
}

.projects_listing .project_item{
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	margin-bottom: 20vh;
}

.projects_listing .project_item:last-of-type{
	margin-bottom: 0;
}

.projects_listing img.project_image{
	width: 70%;
	margin: auto auto auto 10%;
}

.projects_listing .project_info{
	position: absolute;
	width: 30%;
	right: 10%;
	bottom: 0;
	text-align: center;
	padding: 7vw 2vw;
}

.projects_listing .project_info h3{
	margin: 0 auto 1rem;
	color: #fff;
}

.projects_listing .project_info h3.project_name_title{
	text-transform: uppercase;
}

.projects_listing .project_info a.learn_more{
	color: #fff;
	border-color: #fff;
	margin-top: 5rem;
	text-decoration: none;
}

.projects_listing .project_info a.learn_more:hover{
	color: #000;
	border-color: #fff;
	background-color: #fff;
}

.acf-block-preview .projects_gallery{height: 80vh;min-height: 600px;}
.acf-block-preview .projects_gallery .project_item{position: relative;margin: 5% auto 10%;}
.acf-block-preview .projects_gallery .project_item .right_img{right: 0;}
.acf-block-preview .projects_gallery .project_item .project_name{right: 13%;}


/* iPhone 6+ portrait */
@media screen and (max-width: 414px) {
	.block-projects{
		padding: 10vh 0 0;
	}
	.block-projects.projects_teaser .project_listing{
		width: 80%;
		grid-template-columns: 1fr;
	}
	.block-projects.projects_teaser .project_listing .project_item,
	.block-projects.projects_teaser .project_listing .project_item:first-of-type{
		margin: 5vh auto;
	}
	.block-projects.projects_teaser .project_listing .project_item:last-of-type{
		margin: 5vh auto 0;
	}
	.block-projects.projects_description .project_listing .project_item{
		margin-bottom: 7vh;
	}
	.block-projects.projects_description .project_listing .project_item:last-of-type{
		margin-bottom: 0;
	}
	.block-projects.projects_teaser .project_item p{
		margin: 0 auto 2rem;
	}
	.projects_gallery .project_item{
		margin-right: 10%;
		display: flex;
		flex-direction: column;
	}
	.slide_numbers{
		top: 1.5rem;
	}
	.slide_numbers i{
		width: 3rem;
	}
	.projects_gallery{
		height: 105vh;
	}
	.project_gallery{
		height: 90% !important;
	}
	.projects_teaser.section_title_container .section_title{
		width: 80%;
		min-width: initial;
		left: 0;
	}
	.projects_teaser .section_title h1, .projects_teaser .section_title h3{
		position: relative !important;
		margin-bottom: 0rem;
		line-height: 1;
	}
	.projects_gallery .project_item .main_img{
		height: 100%;
		max-height: 60vh;
		width: 100%;
		order: 2;
		margin: 1rem auto 0;
	}
	.projects_gallery .project_item .left_img div.masked_img,
	.projects_gallery .project_item .right_img{
		display: none;
	}
	.projects_gallery .project_item .left_img, 
	.projects_gallery .project_item .project_name{
		position: relative;
		bottom: initial;
		width: 100%;
		height: auto;
		left: 0 !important;
		margin: 0 auto;
		text-align: left;
	}
	.projects_gallery .project_item .left_img p, .projects_gallery .project_item .project_name h4{
		text-align: left;
		margin: 0;
	}
	.projects_gallery .project_item .left_img{
		margin: 0 auto 1rem;
	}
	.projects_gallery .project_item .slide_url{
		margin: 1rem auto;
	}
	.block-projects .learn_more{
		padding-left: 0;
	}
	.progress-bar_container,
	.projects_gallery .page-dots{
		width: 30%;
	}
	.block-projects.projects_description .project_image{
		margin: auto;
		width: 100%;
		height: 50vh;
		object-fit: cover;
	}
	.block-projects .project_item blockquote.photo_bg{
		text-align: center;
		margin: auto !important;
		background-size: 100vw auto;
	}
	.block-projects .project_content{
		width: 80%;
		margin: 0 auto !important;
	}
	.projects_gallery .prev-next-button{
		top: 58%;
	}
	.projects_gallery .prev-next-button.next{
		left: 92%;
	}
	.projects_gallery .prev-next-button.previous{
		right: 92%;
	}
	.projects_listing .project_item{
		flex-direction: column;
		margin-bottom: 10vh;
	}
	.projects_listing .project_info{
		position: relative;
		width: 80%;
		margin: -30vw auto 0;
		right: initial;
	}
	.projects_listing img.project_image{
		width: 100%;
		margin: auto;
	}
	.projects_listing .project_info a.learn_more{
		margin-top: 1rem;
	}
	.projects_listing .section_title h3{
		margin-left: 10%;
		width: 80%;
	}
}