@font-face {
	font-family: 'alber_new';
    src: url('../fonts/AlberNew-Lt-webfont.woff2') format('woff2'),
         url('../fonts/AlberNew-Lt-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
		font-display: swap;
}

@keyframes footer {
  from {opacity: 0;}
  to {opacity: 1;}
}

:root {
	--bgcolormain: rgba(245, 245, 245, 1);
	--fontcolor: rgba(57, 57, 57, 1);
  --linkcolor: rgba(145, 145, 145, 1);
	--menucolor: rgba(167, 167, 167, 1);

}

*,
*:before,
*:after {
	-webkit-box-sizing: inherit;
	-moz-box-sizing: inherit;
	box-sizing: border-box;
	text-decoration: none;
}

html {
	font-size: 100%;
	scroll-behavior: smooth;
}

html,
body {
	margin: 0;
}

a, a:visited {
	color: var(--linkcolor);
}

a:hover, a:focus, #main_nav a:hover, #main_nav a:focus, #footer_nav a:hover, #footer_nav a:focus  {
	color: var(--fontcolor);
	text-decoration: none;
}

ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

body {
  background-color: var(--bgcolormain);
  font-family: 'alber_new', arial, sans-serif;
	font-size: 1.313rem;
  color: var(--fontcolor);
  padding: 26px 20px 40px 20px;
	min-height: 100vh;
}

h1, h2, h3, h4 {
  font-weight: normal;
  margin: 0;
}


h1 {
	font-size: 2rem;
	width: 200px;
	line-height: 1.2;
	color: var(--fontcolor);
	text-transform: uppercase;
}

h2 {
	font-size: 1.563rem;
	margin-bottom: 0.563rem;
}

h3 {
	margin-top: 3.2rem;
	font-size: 1.563rem;
}

.subpage h3 {
	margin-top: 5.38rem;
}

p {
	line-height: 1.28;
	margin: 0;
}

p.info {
	font-size: 1.125rem;
	margin-top: 2.25rem
}

figure {
	margin: 0;
}

header {
	margin-bottom: 80px;
  }

#logo {
	position: absolute;
	top: 26px;

}

#main_nav a, #main_nav a:visited, #footer_nav a, #footer_nav a:visited {
	color: var(--menucolor);
}

#main_nav a:hover, #main_nav a:focus, #footer_nav a:hover, #footer_nav a:focus  {
	color: var(--fontcolor);
}

.klicker {
	width: 60px;
  height: 60px;
  position: absolute;
	top: 17px;
	left: calc(100% - 65px);
	background-color: rgba(0, 0, 0, 0);
	border: 0;

}

.klicker span {
	display: block;
  position: absolute;
  height: 2px;
  width: 45%;
  background: var(--fontcolor);
  border-radius: 0px;
  opacity: 1;
  left: 17px;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.klicker span:nth-child(1) {
  top: 18px;
}

.klicker span:nth-child(2),.klicker span:nth-child(3) {
  top: 28px;
}

.klicker span:nth-child(4) {
  top: 38px;
}

.menu_mobile_active .klicker span:nth-child(1) {
  top: 28px;
  width: 0%;
  left: 50%;
}

.menu_mobile_active .klicker span:nth-child(2) {
	width: 55%;
	left: 15px;
  transform: rotate(45deg);
}

.menu_mobile_active .klicker span:nth-child(3) {
	width: 55%;
	left: 15px;
  transform: rotate(-45deg);
}

.menu_mobile_active .klicker span:nth-child(4) {
  top: 28px;
  width: 0%;
  left: 50%;
}

#mainNavUl {
	display: none;
  padding-top: 10.063rem;
	font-size: 1.563rem;
}

.menu_mobile_active #mainNavUl {
	display: block;
}

#mainNavUl li {
	margin-bottom: 10px;
}

#subNavUl {
	margin-top: 32px;
	margin-bottom: 64px;
}

#main_nav .active>a, #footer_nav .active>a {
  color: var(--fontcolor);
}

#subNavUl {
  text-transform: uppercase;
}

.menu_mobile_active #content {
	display: none;
}

#content.home {
	margin-top: 9.5rem;
}

#content.project, #content.subpage {
	margin-top: 9.06rem;
}

#content .projectInfo p:first-of-type{
	margin-top: 2.03rem;
}


.project .container {
	margin-top: 2.4rem;
	margin-bottom: 70px;
}

.subpage .container {
	margin-top: 2.46rem;
	margin-bottom: 70px;
}

.projectInfo, .page-content {
	max-width: 650px;
}

.container.text {
	margin-top: 2.188rem;
}

.container img {
	display: block;
  width: 100%;
	height: auto;
}

.photoswipe-link {
	cursor: default;
}

.caption-preview {
	font-size: 1.125rem;
	margin-top: 8px;
	padding-bottom: 20px;
}

.figText {
	display: block;
}

.home .figText {
	padding-top: 5px;
	padding-bottom: 32px;
}

.additional-images>img {
	display: inline-block;
	width: 11px;
	height: 11px;
	margin-right: 4px;
	opacity: 0.5;
}

.additional-images:hover>img, .additional-images:focus>img {
	opacity: 1;
}

#footerNavUl {
	font-size: 1.25rem;
	line-height: 1.6;
	opacity: 0;
	animation-name: footer;
  animation-duration: 1ms;
	animation-delay: 30ms;
	animation-fill-mode: forwards;

}

body .pswp .pswp__bg {
  background-color: rgba(245, 245, 245, 1);
}

.pswp__custom-caption {
  font-size: 20px;
  position: absolute;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
	text-align: center;
}

.pswp__custom-caption .figText {
	margin-top: 0;
	font-size: 20px;
	padding-bottom: 0
}

.pswp__img {
	cursor: default;
}

.pswp__counter {
	position: absolute;
	color: var(--fontcolor);
	opacity: 1;
	text-shadow: none;
	font-size: 22px;
	right: 30px;
	top: calc(100vh - 50px);
	margin-top: 0
}

.pswp__icn {
	display: none;
}

.pswp__button--zoom {
	display: none;
}

.pswp__button--close {
	margin-top: 15px;
	margin-right: 20px;
}

.pswp__custom-close {
	height: 30px;
	width: 30px;
}

.pswp__button--arrow {
	width: 90px;
}

.pswp__custom-arrow {
	width: 25px;
	height: 35px;
}

.pswp__custom-next {
  transform: rotate(180deg);
}

.text-page {
	margin-top: 10.14rem;
	line-height: 1.21;
}

.text-page section {
	margin-bottom: 4.2rem;
}

.text-page h2 {
	margin-bottom: 0.7rem;
}

.text-page h3 {
	margin-top: 2.188rem;
	margin-bottom: 0.7rem;
}

.text-page p {
	margin-bottom: 0.77rem;
}

.text-page img {
	width: 100%;
	height: auto;
}

.text-page ul {
		margin-bottom: 18px;
}

.text-page li {
		margin-left: 10px;
}



.text-page figure {
	margin-top: 2.188rem;
}


.text-page figcaption {
	font-size: 1.125rem;
	margin-top: 0.4rem;
}



#footer_nav {
	display: none;
}

.menu_mobile_active #footer_nav {
	display: block;
}

.subpage-nav {
	display: flex;
	justify-content: space-between;
}

.back-to-top {
	position: relative;
	left: 5px;
	width: 22px;
	height: 35px;
	transform: rotate(90deg);
	opacity: 0;
	animation-name: footer;
	animation-duration: 1ms;
	animation-delay: 40ms;
	animation-fill-mode: forwards;
}

.back-to-project {
	position: relative;
	width: 30px;
	height: 30px;
	margin-left: auto;
}

.back-to-top.hidden {
	display: none;
}

@media screen and (min-width : 600px) and (max-width : 1024px) {
	.container img, .container video {
		max-width: 455px;
	}
}

@media screen and (min-width : 600px) {

	body {
		display: grid;
		grid-template-columns: 14.188rem auto;
		grid-template-areas:
		"header main"
		"footer main"
	}

  .klicker {
    display: none;
  }

  header {
    grid-area: header;
    width: 14.188rem;
  }

	#mainNavUl {
		display: block;
	}

  main {
		grid-area: main;
		padding-left: 3.18vw;
		padding-right: 5.3vw;
  }

	.container {
	  display: grid;
	  grid-template-columns: 1fr;
	  grid-auto-rows: 10px;
	  grid-row-gap: 10px;
	  grid-auto-flow: row;
	  overflow-anchor: none;
	}

	#content.home {
		margin-top: 0;
		padding-top: 0.5rem;
	}

	#content.project, #content.subpage {
		margin-top: 2.75rem;
	}

	.photoswipe-link {
		cursor: zoom-in;
	}

	.item a {
		display: block;
	}





  footer {
		display: flex;
		align-items: flex-end;

  }

	#footer_nav {
		display: block;
	}
}

@media screen and (min-width : 806px) {

	.subpage-nav {
		max-width: 455px;
	}

	.text-page .image-pair {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 25px;
	}

	.text-page .tall_picture  {
		max-width: 312px;
	}
}

@media screen and (min-width : 1024px) {

	.container {
    grid-template-columns: 1fr 1fr ;
    grid-column-gap: 40px;
  }

	.subpage-nav {
		max-width: 1800px;
	}
}

@media screen and (min-width : 1300px) {

	.container {
		grid-template-columns: 1fr 1fr 1fr;
		grid-column-gap: 3.03vw;
		max-width: 1800px;
	}


}
