* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
:root {
	--index: calc(1vw + 1vh);
	--color-header: #f4efec;
	--color-text: #cdc6c3;
	--gallery-gap: calc(var(--index) * 7.5)
}
@font-face {
	font-family: raleway-c;
	src: url(../fonts/raleway-regular.woff2);
}
@font-face {
	font-family: outfit-c;
	src: url(../fonts/outfit-regular.woff2);
}
h1, h2, h3, h4, h5, h6 {
	font-family: outfit-c;
}
/* will-change */
.content, .hero, .main-header, .gallery > * {
	will-change: transform;
}
body {
	background-image: url(../img/bg.jpg);
	background-size: 50px;
	color: #fafafa;
	font-family: raleway-c;
	overflow-x: hidden;
}
.hero {
	width: calc(var(--index) * 36);
	position: absolute;
	left: 37vw;
	top: 22vh;
	z-index: -1;
}
.main-header {
	height: 100vh;
}
.container {
	padding: 0 7vw;
}
.main-title {
	font-size: calc(var(--index) * 8);
	position: absolute;
	width: min-content;
	bottom: 12vh;
	line-height: .9;
}
.gallery {
	display: flex;
	padding: calc(var(--index) * 8) 0;
}
.gallery > * {
	flex: 1;
	display: flex;
	align-items: center;
	flex-direction: column;
}
.gallery__item {
	max-width: calc(var(--index) * 21);
	margin-bottom: var(--gallery-gap);
	max-height: 180vh;
	border-radius: 8px;
}
.gallery__left {
	margin-top: calc(var(--gallery-gap) * 1.75);
}
.gallery__right .gallery__item {
	margin: 0;
	margin-top: var(--gallery-gap);
}
.text-block {
	color: var(--color-text);
	position: relative;
}
.text-block__h {
	font-size: 2rem;
	line-height: 2.4rem;
	color: var(--color-header);
	margin-bottom: 1.5rem;
}
.text-block__p {
	line-height: 1.75;
}

@media (max-width: 767px) {
	body {
		padding-left: env(safe-area-inset-left);
		padding-right: env(safe-area-inset-right);
	}
	.hero {
		width: 110vw;
		max-width: none;
		left: 50%;
		top: 8vh;
		transform: translateX(-50%);
	}
	.main-header {
		height: 100svh;
		min-height: 620px;
	}
	.main-title {
		left: 7vw;
		bottom: 9vh;
		font-size: clamp(4rem, 18vw, 6rem);
		letter-spacing: -0.025em;
	}
	.gallery {
		gap: 3vw;
		align-items: flex-start;
	}
	.gallery > * {
		flex: 0 0 calc(50% - 1.5vw);
		max-width: calc(50% - 1.5vw);
		min-width: 0;
	}
	.gallery__left {
		margin-top: calc(var(--gallery-gap) * 1.25);
	}
	.gallery__item {
		width: 100%;
		max-width: min(42vw, 13rem);
		max-height: 120vh;
		margin-bottom: var(--gallery-gap);
	}
	.gallery__right .gallery__item {
		margin-top: var(--gallery-gap);
	}
	.text-block {
		width: 100%;
	}
	.text-block__h {
		font-size: clamp(1rem, 4.8vw, 1.35rem);
		line-height: 1.2;
		margin-bottom: 1rem;
		overflow-wrap: anywhere;
	}
	.text-block__p {
		font-size: clamp(.875rem, 3.6vw, 1rem);
		line-height: 1.55;
	}
}
