@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;1,300&display=swap');

::-webkit-scrollbar {
    display: none;
}

::-moz-scrollbar {
    display: none;
}

::-scrollbar {
    display: none;
}

:root{

	--font-size: 15px;

}

html {
	margin: 0;
	font-family: 'Cormorant Garamond', serif;
	font-variant-ligatures: common-ligatures;
	font-size: var(--font-size);
	line-height: 1.4;
	letter-spacing: 1px;
	font-weight: 300;
}


a, p.name{
	text-decoration: none;
	color: black;
	transition: color 0.2s ease-in-out;
}

.project_view a{
	color: gray;
}


.project_view p.name{
	color: gray;
}

@media(any-hover: hover){
	
	a:hover, p.name:hover{
		color: gray;
	}

	.project_view a:hover, .project_view p.name:hover{
		color: black;
	}
}

body {
	font-weight: 300;
	margin: 0;
	width: 100vw;
	height: 100vh;
}

nav{
	position: fixed;
	top: 15px;
	right: 15px;
	width: calc((100% - 30px)/4);
	display: flex;
}

@media (max-width: 1040px) {
	nav{
		width: calc((100% - 30px)/3);
	}
}

@media screen and (max-width: 768px) {
	nav{
		top: calc(var(--font-size) * 1.4 + 15px);
		width: calc((100% - 30px));
	}
}

nav p{
	margin: 0;
	flex-basis: 50%;
	width: 50%;
}


.studio {
  list-style: none;
  position: fixed;
  margin-top: 0;
  top: 15px;
  right: 9vw;;
  text-align: center;
  cursor: pointer;
  width: 60px;
}

.studio > p {
  margin-top: 0;
}

.studio:first-child:hover {
  text-decoration: underline;
}

.homegrid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin-right: 5vw;
  margin-left: 5vw;
  margin-top: 20vh;
}

.grid {
  cursor: pointer;
  margin-top: 0;
  z-index: 999;
  position: relative;
  width: auto;
  height: 20vh;
  margin-right: 2vw;
  margin-bottom: 2vh;
  -webkit-transition: opacity 2s ease-in-out;
  -moz-transition: opacity 2s ease-in-out;
  -o-transition: opacity 2s ease-in-out;
  transition: opacity 2s ease-in-out;
  -webkit-backface-visibility: hidden;
}

.home > img{
	position: absolute;
	left: 31vw;
	top: 65px;
	width: 60vw !important;
	height: auto;
}

.close {
	border-radius: 50%;
	cursor: pointer;
	margin-top: 0;
	display: none;
	position: fixed;
	top: 17px;
	left: 22vw;
	z-index: 10000000;
	width: var(--font-size);
	height: var(--font-size);
	-webkit-transition: all .2s ease-in-out;
  -moz-transition: all .2s ease-in-out;
  -o-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
}

.close:hover {
	/*background-color: #f9fbff;*/
}

.name {
	cursor: pointer;
	margin: 0;
	position: fixed;
	top: 15px;
	left: 15px;
}

nav, .name{
	z-index: 100000;
}

.pro {
	margin-top: 0;
	position: fixed;
	right: 16vw;
	top: 15px;
	cursor: pointer;
}

.tab:hover {
  text-decoration: underline !important;
}

.infoabout {
	cursor: pointer;
	position: fixed;
	right: 15px;
	top: 15px;
	margin-top: 0;
}

.infoabout:hover,.name:hover {
	opacity: 1 !important;
}

.about,.phil,.practice,.people {
  display: none;
	margin: 0;
	position: fixed;
	top: 0px !important;
	width: 40vw;
	left: 31vw;
	height: auto;
  z-index: 999 !important;
}

.practice > h1,.people > h1,.phil > h1,.practice > h2,.people > h2,.phil > h2 {
  font-weight: 500;
  font-size: 17 !important;
}

.practice > h2,.people > h2,.phil > h2 {
  font-weight: 500 !important;
  text-decoration: underline !important;
}

.project {
  /*float: left;*/
	position: relative;
	margin: 0 auto;
	display: block;
	margin-top: 15px;
	width: 30vw;
	height: auto;
	margin-bottom: 15px;
	border-bottom: .2vh solid white;
}

.project:last-of-type{
	padding-bottom: 60px;
}

.project p.title{
	width: 100%;
	margin: 0 auto;
	margin-bottom: 15px;
	max-width: 30vw;
}

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

@-moz-keyframes fadeIn{
	from{ opacity: 0; }
	to{ opacity: 1; }
}

@-webkit-keyframes fadeIn{
	from{ opacity: 0; }
	to{ opacity: 1; }
}

.project.viewing{
	margin: 0 auto;
	margin-top: 15px;
	width: 100vw;
}

@media screen and (max-width: 768px){
	.project.viewing{
		margin-top: 0;
	}
}

.project.viewing img{
	opacity: 0;
	animation-name: fadeIn; 
	animation-delay: 0.25s;
	animation-duration: 0.5s;
	animation-fill-mode: forwards;

	-moz-animation-name: fadeIn; 
	-moz-animation-delay: 0.25s;
	-moz-animation-duration: 0.5s;
	-moz-animation-fill-mode: forwards;

	-webkit-animation-name: fadeIn; 
	-webkit-animation-delay: 0.25s;
	-webkit-animation-duration: 0.5s;
	-webkit-animation-fill-mode: forwards;
}

.project.viewing p.title{
	position: sticky;
	top: 15px;
	z-index: 10000;
}

.thumbnail > img{
  left: 0;
	cursor: pointer;
	display: block;
	width: 100%;
	height:auto;
	position: relative;
	-webkit-transition: all .2s ease-in-out;
  -moz-transition: all .2s ease-in-out;
  -o-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
  -webkit-backface-visibility: hidden;
}

.viewing .thumbnail > img{
	opacity: 0;
}

.thumbnail > img:hover {
	opacity: .7;
}

.info {
	font-weight: 300;
	cursor: text;
	position: fixed;
	left: 15px;
	bottom: 5vh;
	width: 26vw;
	height: auto;
	display: none;
}

.images {
	display: none;
}

.images > img {
	display: block;
	max-width: 100%;
	max-height: 100vh;
	height: auto;
	width: auto;
	margin: 0 auto;
	margin-bottom: 8vh;
}

@media(max-width: 768px){
	.images > img{
		margin-bottom: 2vh;
	}
}


.images > img:first-child {
	margin-top: 15px;
}

.date {
	margin-top: 0;
	position: absolute;
}


.date {
	display: inline-block;
	top:0;
	right: 0;
	margin-bottom: -0px;
}
@media screen and (max-width: 1050px) {
  .grid {
    height: 13vh;
  }
}


@media screen and (max-width: 736px) {
  .studio{
    display: none;
  }
  .homegrid {
    display: none;
  }
	.name {
		left: 15px;
	}

	.pro,.home {
		display: none;
	}

	.infoabout {
		right: 5vw;
	}

	.project {
		top: 0;
		border-bottom: none;
		width: 100%;
    transform:translate(0%,0%);
    -webkit-transform:translate(0%,0%);
	}

	.project:not(.viewing):first-of-type{
		margin-top: calc(var(--font-size) * 4);
	}

	.project.viewing{
		margin-top: 0;
	}

	.project .images{
		margin-top: calc(var(--font-size) * 5.6);
	}

	.project.viewing p.title{
		position: sticky;
		top: calc(var(--font-size) * 4);
	}

	.project p.title{
		margin-left: 45px;
		max-width: calc(100% - 60px);
	}

	.close {
		left: 15px;
		top: 63px;
	}

	.about {
		width: 90vw;
		left: 5vw;
		top: 100px !important;
	}


}


main.main_grid{
	margin-top: calc((var(--font-size) * 2.8) + 15px);
	box-sizing: border-box;
	margin-left: 15px;
	margin-right: 15px;
	width: calc(100% - 30px);
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-content: flex-start;
	opacity: 0;
	transition: opacity 0.4s ease-in-out;
}

main.main_grid.viewed{
	opacity: 1;
}

.quarter_col{
	width: 25%;
	flex-basis: 25%;
	box-sizing: border-box;
	padding-right: 20px;
}

.quarter_col:last-child{
	padding-bottom: 40px;
}

.quarter_margin{
	margin-right: 25%;
}

@media (max-width: 1040px) {
	.quarter_col{
		width: 33.33%;
		flex-basis: 33.33%;
	}
	.quarter_margin{
		margin-right: 0;
	}
}

@media screen and (max-width: 768px) {
	main.main_grid{
		margin-top: calc((var(--font-size) * 4.2) + 15px);
		display: block;
	}

	.quarter_col{
		width: 100%;
		margin-bottom: calc(var(--font-size) * 2.4);
	}
}

.quarter_col h1, 
.quarter_col h2, 
.quarter_col h3, 
.quarter_col h4, 
.quarter_col h5, 
.quarter_col h6, 
.quarter_col p, 
.quarter_col ul, 
.quarter_col ol, 
.quarter_col li{
	font-size: var(--font-size);
	font-weight: inherit;
}

.quarter_col p{
	margin-top: 0;
	margin-bottom: 0;
}


.quarter_col p:first-of-type{
	text-indent: 0;
}

.quarter_col p,
.quarter_col h3 + p,
.quarter_col h3 + p:first-of-type{
	text-indent: calc(var(--font-size) *1.4);
}


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

.quarter_col li{
	padding-left: 0;
	margin-left: calc(var(--font-size) *1.4);
}

.quarter_col h1{
	margin-bottom: calc(var(--font-size) *1.4);
}

.quarter_col h1, 
.quarter_col h2{
	margin-top: 0;
	font-style: italic;
}

.quarter_col h2{
	margin-bottom: 0;
}


.quarter_col ul + h2,
.quarter_col ul + h1{
	margin-top: calc(var(--font-size) *2.8);
}

.quarter_col p + h3,
.quarter_col ul + h3{
	margin-top: calc(var(--font-size) *1.4);
}


.quarter_col h3{
	margin-top: 0;
	margin-bottom: 0;
}

