@font-face
{
	font-family: 'kreesha-icon';
	src: url('/files/fonts/kreesha-icon/kreesha-icon.eot?rndltz');
	src: url('/files/fonts/kreesha-icon/kreesha-icon.eot?rndltz#iefix') format('embedded-opentype'),
		url('/files/fonts/kreesha-icon/kreesha-icon.ttf?rndltz') format('truetype'),
		url('/files/fonts/kreesha-icon/kreesha-icon.woff?rndltz') format('woff'),
		url('/files/fonts/kreesha-icon/kreesha-icon.svg?rndltz#kreesha-icon') format('svg');
	font-weight: normal;
	font-style: normal;
	font-display: block;
}


[class^="icon-"],
[class*=" icon-"]
{
	font-family: 'kreesha-icon' !important;
	speak: never;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;

	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}


.icon-close:after
{
	content: "\ea0f";
}


.icon-arrow-right:after
{
	content: "\ea3c";
}


.icon-arrow-left:after
{
	content: "\ea40";
}


.icon-arrow-left,
.icon-close,
.icon-arrow-right
{
	display: flex;
	position: relative;
	align-items: center;
	justify-content: center;
	font-size: calc(2vw + 4vh);
	line-height: 1em;
	width: 1em;
	height: 1em;
	cursor: pointer;
	text-decoration: none;
	border-width: 1px;
	border-style: solid;

	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	border-radius: 50%;
}


.icon-arrow-left:before,
.icon-close:before,
.icon-arrow-right:before
{
	content: "";
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: -1;
	top: 0;
	left: 0;

	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	border-radius: 50%;

	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;

	-webkit-transform: scale(0);
	-moz-transform: scale(0);
	-o-transform: scale(0);
	-ms-transform: scale(0);
	transform: scale(0);
}


.icon-arrow-left:after,
.icon-close:after,
.icon-arrow-right:after
{
	display: flex;
	position: absolute;
	z-index: 2;
	align-items: center;
	justify-content: center;
	font-size: 0.5em;
	width: 1em;
	height: 1em;
}


html,
body
{
	display: block;
	position: relative;
	padding: 0;
	margin: 0;
	width: 100%;
	height: 100%;
	font-size: 100%;

	 -moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
}


main
{
	display: flex;
	position: relative;
	flex-direction: column;
	width: 100%;
	height: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 5vw;
	justify-content: center;
	overflow: hidden;

	-ms-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}


h1,
h2
{
	display: flex;
	position: relative;
	font-size: calc(2vw + 4vh);
	line-height: 1em;
	font-weight: bold;
	margin: 0;
	margin-bottom: 1em;
	align-items: center;
	justify-content: space-between;
}


p
{
	display: block;
	position: relative;
	font-size: calc(1vw + 1.5vh);
	margin: 0;
}


p > a
{
	text-decoration: underline;
}


.controls
{
	display: flex;
	position: relative;
	margin-top: calc(2vw + 4vh);
}


.controls > a
{
	display: block;
	position: relative;
	font-size: calc(1vw + 2vh);
	font-weight: bold;
	padding: 1em calc(2vw + 3vh);
	line-height: 1em;
	border-width: 1px;
	border-style: solid;
	text-decoration: none;
	cursor: pointer;
	z-index: 1;

	-webkit-border-radius: calc(3em / 2);
	-moz-border-radius: calc(3em / 2);
	border-radius: calc(3em / 2);

	-webkit-transition: color 0.3s ease-in-out;
	-moz-transition: color 0.3s ease-in-out;
	-o-transition: color 0.3s ease-in-out;
	transition: color 0.3s ease-in-out;
}


.controls > a:first-child
{
	margin-right: calc(1vw + 2vh);
}


.controls > a:before
{
	content: "";
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: -1;
	top: 0;
	left: 0;

	-webkit-border-radius: calc(3em / 2);
	-moz-border-radius: calc(3em / 2);
	border-radius: calc(3em / 2);

	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;

	-webkit-transform: scale(0);
	-moz-transform: scale(0);
	-o-transform: scale(0);
	-ms-transform: scale(0);
	transform: scale(0);
}


.popup
{
	display: none;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 100;
	background: #fff;
	overflow: hidden;
}


.popup.active
{
	display: block;
	animation: open-popup 0.3s linear 1;
	transform-origin: center bottom;
}


.popup.closing
{
	display: block;
	animation: close-popup 0.3s linear 1;
	-webkit-transform: scale(0);
	-moz-transform: scale(0);
	-o-transform: scale(0);
	-ms-transform: scale(0);
	transform: scale(0);
}


.popup > .content
{
	display: flex;
	position: relative;
	flex-direction: column;
	width: 100%;
	height: 100%;
	margin: 0 auto;
	justify-content: center;
	overflow: hidden;

	-ms-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}


.popup h2 .icon-close
{
	margin-left: 1em;
}


.popup.contact > .content
{
	max-width: 980px;
}


.popup.contact > .content > div
{
	display: block;
	position: relative;
	padding: 5%;
}


.popup.portfolio > .content > div
{
	display: flex;
	position: relative;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}


.popup.portfolio > .content div > picture
{
	display: flex;
	position: relative;
	width: 100%;
	max-width: 100%;
	max-height: calc(100vh - 3vw - 6vh - 64px);
	justify-content: center;
}


.popup.portfolio > .content > div > picture > img
{
	display: block;
	position: relative;
	max-width: 100%;
	max-height: calc(100vh - 3vw - 6vh - 64px);
}


.popup.portfolio > .content div > div
{
	display: block;
	position: relative;
	margin: calc(0.5vw + 1vh);
}


@media screen and (orientation: landscape)
{
	.popup.portfolio > .content div > div.left
	{
		order: 1;
	}

	.popup.portfolio > .content div > picture
	{
		width: auto;
		max-width: calc(100vw - 6vw - 12vh - 5px);
		order: 2;
	}

	.popup.portfolio > .content div > div.right
	{
		order: 3;
	}

	.popup.portfolio > .content div > div.close
	{
		width: 100%;
		order: 4;
	}

	.popup.portfolio > .content div > div.close a
	{
		margin: 0 auto;
	}
}


@media screen and (min-width: 851px)
{
	p > a:hover,
	p > a:focus
	{
		text-decoration: none;
	}

	.control:focus:before,
	.control:hover:before
	{
		-webkit-transform: scale(1);
		-moz-transform: scale(1);
		-o-transform: scale(1);
		-ms-transform: scale(1);
		transform: scale(1);
	}
}


@keyframes open-popup {
	0% {
		-webkit-transform: scale(0);
		-moz-transform: scale(0);
		-o-transform: scale(0);
		-ms-transform: scale(0);
		transform: scale(0);
	}
	100% {
		-webkit-transform: scale(1);
		-moz-transform: scale(1);
		-o-transform: scale(1);
		-ms-transform: scale(1);
		transform: scale(1);
	}
}


@keyframes close-popup {
	0% {
		-webkit-transform: scale(1);
		-moz-transform: scale(1);
		-o-transform: scale(1);
		-ms-transform: scale(1);
		transform: scale(1);
	}
	100% {
		-webkit-transform: scale(0);
		-moz-transform: scale(0);
		-o-transform: scale(0);
		-ms-transform: scale(0);
		transform: scale(0);
	}
}