*,
*::after,
*::before {
	box-sizing: border-box;
}

:root {
	font-size: 16px;
}

body {
	margin: 0;
	--color-text: #a2aabd;
	--color-bg: #fff;
	--color-link: #E1C16E;
	--color-link-hover: #606778;
	--color-deco: #E1C16E60;
	color: var(--color-text);
	background-color: var(--color-bg);
	font-family: 'Hatton-Light';paralucent, sans-serif;
}

/* Page Loader */
.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 {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
}

a:hover,
a:focus {
	color: var(--color-link-hover);
	outline: none;
}

.content {
	display: flex;
	flex-direction: column;
	position: relative;
	align-items: center;
	padding: 5rem 0;
	counter-reset: figure;
}

.item {
	max-width: 100%;
	position: relative;
}

.item::before {
	counter-increment: figure;
	content: counter(figure, decimal-leading-zero);
	position: absolute;
	font-family: 'Hatton-Regular',paralucent, sans-serif;
	font-size: 10rem;
	color: var(--color-deco);
	bottom: calc(100% - 4rem);
}

.item:nth-child(even)::before {
	right: 0;
}

.item__img-wrap {
	margin: 0 auto;
	padding-bottom: calc(100% / (var(--aspect-ratio)));
	max-width: 100%;
	will-change: transform;
	overflow: visible;
}

.item:first-child .item__img-wrap {
	width: calc(75vw - 2rem);
	--aspect-ratio: 1600/1200;
}

.item:nth-child(4) .item__img-wrap {
	width: calc(65vh - 2rem);
	--aspect-ratio: 1200/1600;
}

.item:nth-child(7) .item__img-wrap {
	width: calc(75vw - 2rem);
	--aspect-ratio: 1600/1200;
}

.item:nth-child(10) .item__img-wrap {
	width: calc(75vw - 2rem);
	--aspect-ratio: 1600/1200;
}

.item:nth-child(13) .item__img-wrap {
	width: calc(75vw - 2rem);
	--aspect-ratio: 1600/1200;
}

.item:nth-child(16) .item__img-wrap {
	width: calc(75vw - 2rem);
	--aspect-ratio: 1600/1200;
}

.item:nth-child(19) .item__img-wrap {
	width: calc(75vw - 2rem);
	--aspect-ratio: 1600/1200;
}

.item:nth-child(22) .item__img-wrap {
	width: calc(75vw - 2rem);
	--aspect-ratio: 1600/1199;
}

.item__img {
	height: 100%;
	width: 100%;
	position: absolute;
}

.item__caption {
	padding: 2rem 1rem;
}

.item__caption-title {
	font-family: 'Hatton-Light',paralucent, sans-serif;
	font-size: 3rem;
	margin: 0;
}

.item__caption-copy {
	margin: 0;
}

.item__caption-copy::before {
	content: '—';
	line-height: 1;
	color: var(--color-link);
	font-weight: 400;
	font-size: 3rem;
	margin: 0 0 1rem;
	display: block;
}

.item__caption-zoom {
	margin: 0;
	color: var(--color-text);
	font-style: italic;
}

.item__caption-zoom::after {
	content: 'Click on the details for a better view.';
}

.item__caption-zoom::before {
	content: '—';
	line-height: 1;
	color: var(--color-link);
	font-weight: 400;
	font-size: 3rem;
	margin: 0;
	display: block;
}

/* DETAILS */
.details{
  display:flex;
  flex-wrap:nowrap;
  justify-content:center;
  justify-items:center;
  margin:0vh auto 15rem;
  max-width:1200px;
  text-align:center;
}

.details-caption{
  display:flex;
  flex-wrap:nowrap;
  justify-content:center;
  justify-items:center;
  max-width:1200px;
  text-align:center;
}

@media only screen and (max-width: 33em) {
	.content {
		margin-top: 3rem;
	}

	.item:nth-child(4) .item__img-wrap {
		width: calc(80vw - 1rem);
	}

	.item__caption-title {
		font-size: 2rem;
	}

	.item::before{
		font-size: 6rem;
		bottom: calc(100% - 2.75rem);
	}

	.item:first-child .item__img-wrap {
		width: calc(95vw - 1rem);
	}

	.item:nth-child(4) .item__img-wrap {
		width: calc(80vw - 1rem);
	}

	.item:nth-child(7) .item__img-wrap {
		width: calc(95vw - 1rem);
	}

	.item:nth-child(10) .item__img-wrap {
		width: calc(95vw - 1rem);
	}

	.item:nth-child(13) .item__img-wrap {
		width: calc(95vw - 1rem);
	}

	.item:nth-child(16) .item__img-wrap {
		width: calc(95vw - 1rem);
	}

	.item:nth-child(19) .item__img-wrap {
		width: calc(95vw - 1rem);
	}

	.item:nth-child(22) .item__img-wrap {
		width: calc(95vw - 1rem);
	}

	.details {
		  margin:0vh 1rem 0.5rem;
	}

	.details-caption {
			margin:0vh auto 10rem;
	}
}

@media only screen and (min-width: 33em) and (max-width: 43em) {
	.content {
		margin-top: 3rem;
	}

	.details {
			margin:0vh auto 0.5rem;
	}

	.details-caption {
			margin:0vh auto 10rem;
	}

	.item::before {
		font-size: 6rem;
		bottom: calc(100% - 2.55rem);
	}

	.item:first-child .item__img-wrap {
		width: calc(65vh - 1rem);
	}

	.item:nth-child(4) .item__img-wrap {
		width: calc(45vw - 1rem);
	}

	.item:nth-child(7) .item__img-wrap {
		width: calc(65vw - 1rem);
	}

	.item:nth-child(10) .item__img-wrap {
		width: calc(65vw - 1rem);
	}

	.item:nth-child(13) .item__img-wrap {
		width: calc(65vw - 1rem);
	}

	.item:nth-child(16) .item__img-wrap {
		width: calc(65vw - 1rem);
	}

	.item:nth-child(19) .item__img-wrap {
		width: calc(65vw - 1rem);
	}

	.item:nth-child(22) .item__img-wrap {
		width: calc(65vw - 1rem);
	}
}

@media only screen and (min-width: 43em) and (max-width: 53em) {
	.content {
		margin-top: 8rem;
	}

	.details {
		  margin:0vh auto 0.5rem;
	}

	.details-caption {
			margin:0vh auto 15rem;
	}

	.item::before {
		font-size: 8rem;
		bottom: calc(100% - 3.55rem);
	}

	.item:first-child .item__img-wrap {
		width: calc(95vw - 1rem);
	}

	.item:nth-child(4) .item__img-wrap {
		width: calc(65vw - 1rem);
	}

	.item:nth-child(7) .item__img-wrap {
		width: calc(95vw - 1rem);
	}

	.item:nth-child(10) .item__img-wrap {
		width: calc(95vw - 1rem);
	}

	.item:nth-child(13) .item__img-wrap {
		width: calc(95vw - 1rem);
	}

	.item:nth-child(16) .item__img-wrap {
		width: calc(95vw - 1rem);
	}

	.item:nth-child(19) .item__img-wrap {
		width: calc(95vw - 1rem);
	}

	.item:nth-child(22) .item__img-wrap {
		width: calc(95vw - 1rem);
	}
}

@media only screen and (min-width: 53em) {
	.content {
		margin-top: 13rem;
	}

	.details {
		  margin:0vh auto 0.5rem;
	}

	.details-caption {
			margin:0vh auto 15rem;
	}
}
