/* Homepage banner */
.animation-banner {
	text-align: center;
	position: relative;
}

.top-banner, .bottom-banner, .text-banner {
	position: absolute;
	margin: auto;
}

.top-banner {
	top: 20px;
	left: calc((100% - 590px) /2);
}

.top-banner img {
	margin-left: 30px;
	width: 590px;
}

.bottom-banner {
	bottom: 35px;
	left: calc((100% - 600px) /2);
}

.bottom-banner img {
	width: 600px;
}

.text-banner {
	opacity: 0;
	top: 30%;
	left: calc((100% - 740px) /2);
	font-family: 'JosefinSansRegular';
	letter-spacing: 40px;
}

/* Mid section */
.introduction, .arrow-anchor {
	text-align: center;
	line-height: 1.5;
}

.introduction {
	padding: 7em 0 0 0;
	font-family: 'JosefinSansLight';
	line-height: 1.3;
	font-size: 32px;
	font-weight: normal;
}

.background-work {
	margin-top: 20px;
}

/* Arrow animation */
.arrow-container {
	position: relative;
	width: 24px;
	height: 24px;
	margin: auto;
	cursor: pointer;
}

.chevron {
	position: absolute;
	width: 28px;
	height: 8px;
	opacity: 0;
	transform: scale3d(0.5, 0.5, 0.5);
	animation: move 3s ease-out infinite;
}

.chevron:first-child {
	animation: move 3s ease-out 1s infinite;
}

.chevron:nth-child(2) {
	animation: move 3s ease-out 2s infinite;
}

.chevron:before, .chevron:after {
	content: ' ';
	position: absolute;
	top: 0;
	height: 100%;
	width: 51%;
	background: #fff;
}

.chevron:before {
	left: 0;
	transform: skew(0deg, 30deg);
}

.chevron:after {
	right: 0;
	width: 50%;
	transform: skew(0deg, -30deg);
}

@keyframes move {
	25% {
		opacity: 1;

	}
	33% {
		opacity: 1;
		transform: translateY(30px);
	}
	67% {
		opacity: 1;
		transform: translateY(40px);
	}
	100% {
		opacity: 0;
		transform: translateY(55px) scale3d(0.5, 0.5, 0.5);
	}
}

.text {
	display: block;
	margin-top: 75px;
	margin-left: -30px;
	font-size: 12px;
	color: #fff;
	text-transform: uppercase;
	white-space: nowrap;
	opacity: .25;
	animation: pulse 2s linear alternate infinite;
}

@keyframes pulse {
	to {
		opacity: 1;
	}
}

/* Footer section */
.contact-form {
    border: 1px solid white;
    margin: auto;
    padding: 20px;
    text-align: center;
}

*,
*::after,
*::before {
	box-sizing: border-box;
}

:root {
	font-size: 16px;
}

.smooth-scrolling-section {
	--color-text: #111;
	--color-bg: #bad5ca;
	--color-link-hover: #5c4541;
	--aspect-ratio: 32/17;
	font-size: 1.25rem;
	--size-title: 6vw;
}

/* Page Loader - Work Section */
#envy-motor, #hamilton, #days-of-types, #mspa-beauty, #jc-wc, #return-to-the-wild {
	cursor: pointer;
}

.js .loading::before {
	content: '';
	position: fixed;
	z-index: 100000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	content: '';
	position: fixed;
	z-index: 100000;
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	pointer-events: none;
	border-radius: 50%;
	opacity: 0.4;
	background: var(--color-link);
	animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}

a:hover,
a:focus {
	color: var(--color-link-hover);
	outline: none;
}

.page {
	display: grid;
	padding: 5vw;
	max-width: 2000px;
	margin: 0 auto;
	grid-template-columns: 100%;
	grid-template-areas: 'header' 'introduction' 'grid' 'footer';
	will-change: transform;
}

.page__header {
	grid-area: header;
	margin: 0 0 1rem;
	font-size: inherit;
	font-weight: 400;
}

.page__introduction {
	grid-area: introduction;
}

.footer {
	grid-area: footer;
}

.footer--fixed {
	position: fixed;
	bottom: 5vw;
	margin: 0;
	left: 5vw;
	width: 90vw;
	text-align: right;
}

.footer--fixed::before {
	content: '';
	background: currentColor;
	position: absolute;
	left: 0;
	bottom: 0;
	height: 5rem;
	width: 1px;
}

.content {
	grid-area: grid;
}

.content--offset {
	display: grid;
	grid-template-columns: repeat(2, minmax(100px, 1fr));
	grid-gap: 30vh 10vw;
}

.content--full {
	width: 100vw;
	justify-self: center;
}

.content--padded {
	padding: 0 10vw;
}

.content__item {
	--imgwidth: calc(var(--imgwidthmax) * var(--aspect-ratio));
	width: var(--imgwidth);
	max-width: 100%;
	position: relative;
	will-change: transform;
	margin-bottom: 30vh;
	display: grid;
	grid-template-columns: 50% 50%;
}

.content__item--wide {
	grid-template-columns: 20% 80%;
}

.content__item--wide:nth-child(even) {
	grid-template-columns: 80% 20%;
}

.content--center .content__item {
	margin: 0 auto 60vh;
}

.content__item--expand {
	width: 100%;
	grid-template-columns: minmax(0, var(--imgwidth)) 1fr;
}

.content__item--expand:nth-child(even) {
	grid-template-columns: 1fr minmax(0, var(--imgwidth));
}

.content--alternate .content__item {
	max-width: 90vw;
}

.content--offset .content__item {
	margin: 0 auto 15vh;
}

.content--offset .content__item:nth-child(even) {
	align-self: end;
	margin-bottom: -20vh;
}

.content--alternate .content__item:nth-child(even) {
	margin-left: auto;

}

.content__item-imgwrap {
	position: relative;
	--imgwidth: 100%;
	margin: 0 auto;
	grid-area: 1 / 1 / 3 / 3;
	overflow: hidden;
	width: var(--imgwidth);
	padding-bottom: calc(var(--imgwidth) / (var(--aspect-ratio)));
	will-change: transform;
}

.content__item--expand .content__item-imgwrap {
	grid-area: 1 / 1 / 3 / 2;
}

.content__item--expand:nth-child(even) .content__item-imgwrap {
	grid-area: 1 / 2 / 3 / 3;
	justify-self: end;
}

.content__item-img, .content__item-img-mobile {
	--overflow: 40px;
	height: calc(100% + (2 * var(--overflow)));
	top: calc( -1 * var(--overflow));
	width: 100%;
	position: absolute;
	background-size: cover;
	background-position: 50% 0%;
	will-change: transform;
	opacity: 0.8;
}

.content__item-img-mobile {
	display: none;
}

.content__item-img--t1 {
	--overflow: 60px;
}

.content__item-img--t2 {
	--overflow: 80px;
}

.content__item-img--t3 {
	--overflow: 120px;
}

.content__item-number {
	opacity: 0.03;
	font-size: 25vw;
	position: absolute;
	top: -7vw;
	right: -10vw;
	line-height: 1;
}

.content__item:nth-child(even) .content__item-number {
	right: auto;
	left: -7vw;
}

.content__item-title {
	position: relative;
	font-size: var(--size-title);
	padding: 0 3vw;
	margin: calc(var(--size-title) * -1/2) 0 0 0;
	align-self: start;
	line-height: 1;
	font-weight: var(--font-weight-title);
	color: var(--color-title);
	will-change: transform;
	mix-blend-mode: var(--blendmode-title);
	font-family: 'JosefinSansRegular';
}

.content--center .content__item-title {
	grid-area: 1 / 1 / 3 / 3;
	margin: auto;
}

.content__item-title--layer {
	padding: 0;
	z-index: 10;
	grid-area: 1 / 1 / 2 / 3;
	width: 100%;
	text-align: center;
}

.content__item-description {
	grid-area: 3 / 1 / 3 / 3;
	width: 70%;
	position: relative;
	margin: 0;
	padding: 1rem 0 0 0;
	color: var(--color-description);
	font-family: 'JosefinSansRegular';
}

.content--alternate .content__item-title,
.content__item--wide:nth-child(even) .content__item-description {
	grid-area: 3 / 1 / 4 / 3;
	justify-self: start;
}

.content--alternate  .content__item:nth-child(even) .content__item-title,
.content__item--wide .content__item-description {
	grid-area: 3 / 1 / 4 / 3;
	justify-self: end;
	width: auto;
	text-align: right;
}

.content__item--expand .content__item-description {
	grid-area: 1 / 2 / 3 / 3;
    justify-self: start;
    align-self: start;
    padding: 0 2rem;
    width: 250px;
    font-size: 0.9rem;
}

.content__item--expand:nth-child(even) .content__item-description {
	grid-area: 1 / 1 / 3 / 2;
	justify-self: end;
	text-align: right;
}

.content__item-deco {
	position: absolute;
	top: 2rem;
	left: 10vw;
	height: 30%;
	width: 1px;
	background: #d79612;
}

.content__item-decobar {
	width: 140%;
	height: 25%;
	top: 20%;
	left: -20%;
	position: absolute;
	background: #dd525a;
	mix-blend-mode: color-burn;
}

/* Project details CSS */
.project-details {
	display: none;
	opacity: 0;
	overflow-y: auto;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
	width: 100%;
    height: 100%;
	z-index: 1000;
	--color-bg: #1d1d1e;
	background-color: var(--color-bg);
}

.project-details-container {
	height: 900px;
	padding: 5vw;
}

.project-details-title {
	font-size: 120px;
	opacity: 0;
	z-index: 1001;
	font-weight: bold;
	margin-bottom: 30px;
}

.project-details-content {
	font-size: 20px;
    opacity: 0;
	z-index: 1001;
}

.project-details-content u {
	text-underline-offset: 5px;
}

.project-details-content p {
	margin-top: 15px;
	line-height: 20px;
	margin-bottom: 0;
}

.project-details-img {
	z-index: -1;
	position: absolute;
}

#close-project-details {
	cursor: pointer;
	opacity: 0;
	z-index: 1001;
}

.project-details-background-image {
	opacity: 0;
}

@media screen and (min-width: 53em) {
	.page--layout-2 {
		grid-template-columns: 1fr 1fr;
		grid-template-areas: 'header header' 'introduction introduction' 'grid grid' 'footer footer';
	}
}

@media screen and (max-width: 40em) {
	.content__item--expand .content__item-imgwrap,
	.content__item--expand:nth-child(even) .content__item-imgwrap {
		grid-area: 1 / 1 / 3 / 3;
	}
	.content__item--expand .content__item-description,
	.content__item--expand:nth-child(even) .content__item-description,
	.content__item--wide .content__item-description,
	.content__item--wide:nth-child(even) .content__item-description {
		grid-area: 3 / 1 / 4 / 3;
	    padding: 1rem 0;
	    width: 100%;
	    text-align: left;
	}
	.content__item--wide .content__item-description {
		padding: 1rem;
	}
	.content--alternate .content__item-title,
	.content--alternate .content__item:nth-child(even) .content__item-title {
		grid-area: 1 / 1 / 4 / 2;
	}
}

/* Mobile devices */
@media only screen and (min-width: 320px) and (max-width: 479px) {
	.introduction {
		font-size: 22px;
		padding-top: 60px;
	}
	
	.bottom-banner img, .top-banner img {
		width: 300px;
	}

	.animation-banner {
		height: 400px;
		margin-bottom: 70px;
	}

	.text-banner {
		opacity: 1;
		top: 25%;
		left: calc((100% - 280px) /2);
	}

	.text-banner h1 {
		font-size: 40px;
		line-height: 140%;
	}

	.top-banner {
		top: 20px;
		left: calc((100% - 320px) /2);
	}

	.bottom-banner {
		left: calc((100% - 320px) /2);
	}

	.project-details-title {
		font-size: 80px;
	}

	.content__item {
		margin-bottom: 15vh;
	}

	.content--alternate .content__item-title {
		font-size: 50px;
	}

	.content--alternate .content__item:nth-child(even) .content__item-title {
		grid-area: 1 / 2 / 4 / 2;
	}

	.content__item--wide:nth-child(odd) .content__item-description {
		text-align: right;
		padding-right: 0;
	}

	.content__item-img {
		display: none;
	}
	
	.content__item-img-mobile {
		display: block;
	}

	.project-details-container {
		height: auto;
	}

	.project-details-img {
		display: none;
	}
}

/* Mobile-landscape (and larger) */
@media only screen and (min-width: 480px) and (max-width: 767px){
	.background-banner {
		width: 570px;
	}

	.bottom-banner img, .top-banner img {
		width: 500px;
	}

	.text-banner {
		opacity: 1;
		top: 40%;
		left: calc((100% - 530px) /2);
	}

	.text-banner h1 {
		font-size: 40px;
		line-height: 140%;
	}

	.top-banner {
		top: 20px;
		left: calc((100% - 530px) /2);
	}

	.bottom-banner {
		bottom: -10px;
		left: calc((100% - 530px) /2);
	}

	.project-details-title {
		font-size: 80px;
	}

	.background-work {
		margin-top: 80px;
	}

	.introduction {
		font-size: 24px;
	}

	.content__item-img {
		display: none;
	}
	
	.content__item-img-mobile {
		display: block;
	}

	.project-details-container {
		height: auto;
	}

	.project-details-img {
		display: none;
	}
}

/* Tablet-portrait (and larger) */
@media only screen and (min-width: 768px) and (max-width: 991px){
	.project-details-container {
		height: 700px;
	}

	.background-work {
		margin-top: 110px;
	}

	.text-banner {
		opacity: 1;
		top: 45%;
		left: calc((100% - 590px) /2);
	}

	.text-banner h1 {
		font-size: 45px;
	}

	.bottom-banner {
		bottom: -10px;
	}

	.content__item-img {
		display: none;
	}
	
	.content__item-img-mobile {
		display: block;
	}
}

/* Tablet-landscape (and larger) */
@media only screen and (min-width: 992px) and (max-width: 1200px) {
	.background-work {
		margin-top: 80px;
	}

	.text-banner {
		opacity: 1;
		top: 45%;
	}

	.bottom-banner {
		bottom: -10px;
	}

	/* .content__item-img {
		display: none;
	}
	
	.content__item-img-mobile {
		display: block;
	} */

	.project-details-container {
		height: 700px;
	}
}

/* Small desktop and laptop screen */
/* Landscape */
@media only screen 
  and (min-width: 1024px) 
  and (max-height: 1366px) 
  and (orientation: landscape) 
  and (-webkit-min-device-pixel-ratio: 1.5) {
	.content__item-img {
		display: none;
	}
	
	.content__item-img-mobile {
		display: block;
	}
}

/* Small desktop and laptop screen */
@media only screen and (min-width: 1200px) and (max-width: 1500px) and (min-height: 715px) and (max-height: 850px) {
	/* .page__introduction {
		margin-top: 100px;
	} */

	.background-banner {
		width: 560px;
	}

	.bottom-banner img, .top-banner img {
		width: 510px;
	}

	.text-banner {
		opacity: 1;
		top: 33%;
		left: calc((100% - 560px) /2);
	}

	.text-banner h1 {
		font-size: 40px;
		line-height: 140%;
	}

	.top-banner {
		top: 20px;
		left: calc((100% - 500px) /2);
	}

	.bottom-banner {
		bottom: 10px;
		left: calc((100% - 500px) /2);
	}
}

@media only screen and (min-width: 1500px) {
	/* .project-details  */
	.page, .project-details-container {
		padding: 5vw 12vw;
	}

	.background-work {
		margin-top: 100px;
	}

	.introduction {
		padding-top: 8em;
	}
}