html {
	min-height: 100%;
}

body {
	margin: 0;
	padding: 0;
	padding-bottom: 50px;
	background: #faf6f1;
	font-family: "Open Sans", sans-serif;
	display: flex;
	flex-direction: column;
	/*align-items: center;*/
	color: #333;
	box-sizing: border-box;
	width: 100%;
	overflow-x: hidden;
}

a {
	text-decoration: none;
}

.metadata, .nav {
	display: flex;
	gap: 10px;
	box-sizing: border-box;
}

.metadata a, .nav a, h2 a {
	font-family: "Open Sans", sans-serif;
	border-radius: 10px;
	background-color: white;
	padding: 10px 15px;
	font-size: 15px;
	flex-grow: 1;
	width: 100px;
	color: #4f4f4f;
	font-weight: 600;
	transition: all .5s;
	flex-shrink: 0;
	text-align: center;
}

h2 a {
	position: relative;
	top: -2px;
}

.metadata a:hover, .nav a:hover, h2 a:hover{
	transform: scale(1.1);
	color: white;
	background-color: #0a64ff;
}

.container {
	/*max-width: 600px;*/
	margin: 0 50px;
}

.info {
	display: flex;
	gap: 20px;
	align-items: center;
	margin-top: 50px;
	justify-content: space-between;
}

.intro {
	flex-shrink: 0;
}

h1 {
	margin: 0;
	margin-top: -10px;
}

h3 {
	margin: 0 0 -10px 0;
	font-size: 18px;
}

p, ul {
	font-size: 20px;
	line-height: 1.6;
}

li {
	margin-top: 2px;
}

.portfolio-item {
	color: #ffffff;
	border-radius: 20px;
	padding: 20px;
	height: 100px;
	display: flex;
	align-content: center;
	justify-content: center;
	flex-direction: column;
	margin: 0 0 20px;
	position: relative;
	overflow: hidden;
	transition: all .5s;
}

.case-study {
	color: #ffffff;
	border-radius: 20px;
	padding: 10px 20px;
	height: 50px;
	display: flex;
	align-content: center;
	justify-content: center;
	flex-direction: column;
	margin: -10px 0 20px 40px;
	position: relative;
	overflow: hidden;
	transition: all .5s;
}

.portfolio-item:hover {
	box-shadow: 0 0 10px 5px rgba(0,0,0,0.25);
	transform: scale(1.1);
	z-index: 1;
}

.case-study:hover {
	margin-left: 0;
}

.portfolio-item h1 {
	font-size: 25px;
	margin: 0;
}

.case-study h1 {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
}

.portfolio-item h2 {
	font-size: 20px;
	margin: 0;
}

.portfolio-group h2 span {
	font-weight: normal;
	color: #727272;
	margin-left: 5px;
}

.metadata a#top:hover {
	background-color: #26A300;
}

.metadata a#resume:hover {
	background-color: #0a64ff;
}

.metadata a#contact:hover {
	background-color: #F3336C;
}

.metadata a#linkedin:hover {
	background-color: #A839E7;
}



#portfolio {
	box-sizing: border-box;
}

.text {	
	padding: 0 50px;
}

.images {
	display: flex;
	width: 100vw;
	overflow: auto;
	padding-bottom: 30px;
	padding: 0 50px 30px 50px;
	box-sizing: border-box;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	gap: 20px;
}

.images .blurb {
	width:  400px;
	flex-shrink: 0;
	margin-right: 20px;
}

.images .blurb.wide {
	width:  600px;
}

.images p, .images ul {
	font-size: 16px;
	line-height: 1.7;
}

.images ul {
	padding-left: 25px;
}

.images p:first-child {
	margin-top: 0;
}

.image {
	align-self: flex-start;
	flex-shrink: 0;
	border-radius: 10px;
	box-shadow: 0 0.8px 0.7px hsl(0deg 0% 0% / 0.1), 0 1px 1px -1.2px hsl(0deg 0% 0% / 0.1), 0 5px 2.5px -2.5px hsl(0deg 0% 0% / 0.1);
	height: 45vw;
	display: flex;
	overflow: hidden;
	background: white;
	width: 55vw;
	justify-content: center;
	border: 1px solid rgba(215, 215, 215, 0.82);
}

.loose-image {
	align-self: flex-start;
	flex-shrink: 0;
	height: 45vw;
	display: flex;
	overflow: hidden;
	width: 55vw;
	justify-content: center;
}

.video {
	align-self: stretch;
	flex-shrink: 0;
	border-radius: 10px;
	box-shadow: 0 0.8px 0.7px hsl(0deg 0% 0% / 0.1), 0 1px 1px -1.2px hsl(0deg 0% 0% / 0.1), 0 5px 2.5px -2.5px hsl(0deg 0% 0% / 0.1);
	width: 700px;
	height: calc(502px + 1.5vw);
	overflow: hidden;
	background: white;
	justify-content: flex-start;
	align-items: flex-start;
	border: 1px solid rgba(215, 215, 215, 0.82);
	display: flex;
}


video {
  flex: 1;
  width: 100%;
  margin: -1px -2px 0 -2px;
  object-fit: cover
}


image.top {
	align-self: flex-start;
}

/* .images .image {
	position: sticky;
	top: 20px;
} */

.middle img {
	align-self: center;
}

image.bottom {
	align-self: flex-end;
}

.modal {
	background-color: #195F9F;
}

.modal img {
	align-self: center;
}

img {
	max-width: 65vw;
	height: auto;
	align-self: flex-start;
}

.small .image {
	height: 500px;
	width: unset;
}

.wide .image img {
	max-width: 55vw;
}

.image.big {
	width: 60vw;
	height: 55vw;
}

.image.big img {
	max-width: 75vw;
}

.image.no-crop img, .loose-image.no-crop img  {
	width: 55vw;
}

.image.no-crop.design_system {
	width: unset; 
	height: unset;
}

.image.no-crop.design_system img {
	width: auto;
	height: 800px;
}

.small img {
	max-width: 500px;
}

.grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, auto);
	gap:  1.5vw;
	filter: saturate(0%);
	align-self: flex-start;
}

.grid.search .image { 
	width: 300px;
	height: 400px;
}

.grid.big .image {
	width: 600px;
	height: 300px;
}

.grid .image {
	width: 500px;
	height: 350px;
}

.grid img {
	width: 100%;
}

.grid.no-desaturate {
	filter: saturate(100%);
}

.grid.no-crop .image img {
	width: 100%;
}

.image.gray {
	filter: saturate(0%);
}

.intro-container {
	display: flex;
}

.intro-collage {
	display: flex;
	z-index: -1;
}

.intro-collage img {
	/* width: 700px;
	margin-top: -100px; */
	max-width: 55vw;
	margin-left: 20px;
	z-index: -1;
}

@media (max-width: 960px) {

	h1 {
		font-size: 25px;
	}
	
	h2 {
		font-size: 20px;
	}
	
	.metadata {
		flex-direction: column;
		width: 100%;
	}
	
	.metadata a {
		flex-basis: unset;
		width: 100%;
		box-sizing: border-box;
	}
	
	.info {
		flex-direction: column;
	}
	
	.portfolio-group .images {
		flex-direction: column;
		overflow: hidden;
	}
	
	.image, .small .image {
		width: 100%;
	}
	
	.images .blurb {
		width: 100%;
		margin: 0;
	}
	
	.container {
		margin: 0 20px;
	}
	
	.text {	
		padding: 0 20px;
}

	.images {
		padding: 0 20px 30px 20px;
	}

	.intro {
		flex-shrink: unset;
	}

	.intro-collage {
		display: none;
	}

	.images .blurb.wide {
		width: unset;
	}

	.image.no-crop.design_system img {
	width: 100%;
	height: unset;
}

}

