/*--------------------------------------------------------------
## Root.
--------------------------------------------------------------*/

:root {
	font-size: 21px;
	--white: #fff;
	--black: #000;
	--greenery: #b8cfbf;

	--font-size: 16px;

	--s: 40px;
	--s1-1\2: calc( var(--s) * 1.5 );
	--s2: calc( var(--s) * 2 );
	--s2-1\2: calc( var(--s) * 2.5 );
	--s3: calc( var(--s) * 3 );

	--s-1\2: calc( var(--s) / 2 );


	--main-width: calc( 100vw - var(--s2) );

	--main-width-gut: calc( var(--main-width) - var(--s) );
	--col2: calc( var(--main-width-gut) / 2 );

	--main-width-2-gut: calc( var(--main-width) - var(--s2) );
	--col3: calc( var(--main-width-2-gut) / 3 );

	--col3x2: calc( var(--col3) * 2 );
	--colother: calc( var(--col3x2) + var(--s) );

	--window-height: calc(var(--vh, 1vh) * 100);

}

/*--------------------------------------------------------------
## Font.
--------------------------------------------------------------*/

@font-face {
  font-family: 'PxGrotesk-Regular';
  src: url('../font/PxGrotesk-Regular.eot');
  src: url('../font/PxGrotesk-Regular.eot?#iefix') format('embedded-opentype'),
       url('../font/PxGrotesk-Regular.svg#PxGrotesk-Regular') format('svg'),
       url('../font/PxGrotesk-Regular.ttf') format('truetype'),
       url('../font/PxGrotesk-Regular.woff') format('woff'),
       url('../font/PxGrotesk-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/*--------------------------------------------------------------
## Global.
--------------------------------------------------------------*/

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
  text-rendering: optimizeLegibility;
}
*:focus {
	outline: none;
}

::selection {
  background: #fff;
  opacity: 0.3;
}
html,
body {
	overscroll-behavior-y: contain;
	overflow: hidden;
}

body {
	width: 100%;
	height: var(--window-height);
	position: relative;
	font-family: 'PxGrotesk-Regular', sans-serif;
	font-variant-numeric: oldstyle-nums;
	font-size: var(--font-size);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
}

a {
	color: var(--black);
	text-decoration: none;
	transition: all 0.3s ease;
}
a:hover {
	color: var(--grey)!important;
}

p, h1 {
	font-size: 1rem;
	font-weight: 400;
}
h1 {
	text-transform: uppercase;
}

header,
footer {
	margin: 0;
	padding: var(--s);
	width: 100%;
	height: auto;
	position: fixed;
	left: 0;
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
  align-items: flex-end;
}
header {
	top: 0;
	z-index: 1;
}
header h1 {
	letter-spacing: 0.04rem;
}
footer {
	padding-top: calc(var(--s) * 1.5);
	height: 100%;
	position: fixed;
	bottom: 0;
}
footer > .info {
	flex-basis: var(--colother);
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
  align-items: flex-end;
}
footer > .info p {
	flex-basis: var(--col3);
}

.slider-box {
	flex-basis: 100%;
	height: var(--col3);
	/*background-color: orangered;*/
}

.slider {
	width: var(--col3);
	height: 100%;
	position: relative;
	/*background-color: violet;*/
}

.slide {
	position: absolute;
	bottom: 50%;
	left: 0;
	transform: translateY(50%);
	width: auto;
	max-height: 100%;
	display: none;
	cursor: pointer;
}
img {
	max-width: 100%;
	max-height: var(--col3);
}

@media only screen and (max-width: 1100px) {
	:root {
		font-size: 17px;
	}
	footer > .info,
	footer > div:last-child,
	footer > div:last-child p {
		flex-basis: var(--col2);
	}
	.slider {
		width: var(--col2);
	}
	.slider-box {
		height: var(--col2);
	}
	img {
		max-height: var(--col2);
	}
	footer > div:last-child p:first-child {
		margin-bottom: 1rem;
	}
}

@media only screen and (max-width: 700px) {
	:root {
		font-size: 15px;
		--s: 20px;
	}
	header h1 {
		width: 100%;
	}
	footer {
		padding-top: calc(var(--s) * 2.6);
	}
	footer > .info,
	footer > div:last-child,
	footer > div:last-child p {
		flex-basis: var(--main-width);
	}
	.slider {
		width: var(--main-width);
	}
	.slider-box {
		height: var(--main-width);
	}
	img {
		max-height: calc(var(--main-width) - var(--s2-1\2));
	}
}