@font-face {
	font-family: raleway;
	src: url(fonts/raleway-light.ttf);
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: raleway;
	src: url(fonts/raleway-semibold.ttf);
	font-weight: 700;
	font-style: bold;
}

@font-face {
	font-family: bebasneue;
	src: url(fonts/bebasneue-regular.ttf);
}

html {
	margin: 0;
	box-sizing: border-box;
	font-family: raleway, sans-serif;
	background-color: black;
	scroll-behavior: smooth;
}

body {
	margin: 0;
}

main {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - 60px);
}

header {
	background-color: #000000;
	display: flex;
	justify-content: space-between;
	color: white;
}

header  .header-left {
	display: flex;
}

header  .header-left h3 {
	margin: 15px 25px;
	padding-top: 5px;
}

header .header-right {
	display: flex;
}

header .header-right img {
	margin-right: 20px;
	padding-top: 8px;
	max-height: 75%;
}

header a {
	text-decoration: none;
	color: white;
}

.hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	color: white;
	background: linear-gradient(#002244, #000000);
	padding: 50px;
	text-align: center;
	min-height: 400px;
	height: auto;
}

.hero .name, .hero .about {
	margin-left: 50px;
	margin-right: 25px;
	text-align: center;
}

.hero .name {
	grid-area: 1 / 1 / 2 / 2;
	line-height: 0;
}

.hero .name h1 {
	font-size: 475%;
	padding-top: 30px;
	letter-spacing: 12px;
	font-family: bebasneue, sans-serif;
}

.hero .about {
	grid-area: 2 / 1 / 3 / 2;
	text-align: center;
	padding: 0 10%;
	font-size: 140%;
}

.hero .picture {
	grid-area: 1 / 2 / 3 / 3;
}

.hero .picture img {
	max-width: 75%;
	max-height: 500px;
	height: auto;
	margin-top: 50px;
	border-radius: 25%;
}

.portfolio {
	background-color: #000000;
	color: white;
	padding: 40px 20px;
	text-align: center;
	font-size: 125%;
}


.portfolio .work {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: [r1] 1fr [r2] auto [r3] auto [r4] 1fr;
	align-items: center;
	text-align: center;
	padding: 10px 25px;
}

.portfolio .work:nth-child(odd) .title {
	grid-area: 2 / 2 / 3 / 3;
}


.portfolio .work:nth-child(odd) .text {
	grid-area: 3 / 2 / 4 / 3;
}

.portfolio .work:nth-child(odd) .visual {
	grid-area: 1 / 1 / 5 / 2;
}

.portfolio .work:nth-child(even) .title {
	grid-area: 2 / 1 / 3 / 2;
}


.portfolio .work:nth-child(even) .text {
	grid-area: 3 / 1 / 4 / 2;
}

.portfolio .work:nth-child(even) .visual {
	grid-area: 1 / 2 / 5 / 3;
}

.portfolio .work .title h3 {
	font-size: 140%;
}

.portfolio .work .visual video {
	max-width: 90%;
	height: auto;
}

.portfolio .work .text {
	align: center;
	text-align: left;
	padding: 0 10%;
}

.portfolio .work .text .center {
	text-align: center;
}

.portfolio .work .slideshow {
	flex: 1;
	position: relative;
	text-align: center;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}

.portfolio .work .slideshow .slide {
	display: none;
	width: 100%;
	height: 100%;
}

.portfolio .work .slideshow .slide img {
	max-height: 550px;
	width: 90%;
	height: 100%;
	object-fit: cover;
}

.portfolio .work .slideshow .slide video {
	max-height: 550px;
	width: 90%;
	height: 100%;
	object-fit: cover;
}

.portfolio .work .slideshow img:hover {
	cursor: pointer;
}

.portfolio .work .slideshow button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 100%;
	border: none;
	background: rgba(35, 35, 35, .40);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	backdrop-filter: blur(2px);
	transition: background .2s ease;
}

.portfolio .work .slideshow button:hover {
	background: rgba(35, 35, 35, .70);
}

.portfolio .work .slideshow.playing button {
	opacity: 0;
	pointer-events: none;
}

.portfolio .work .slideshow .button-left  {
	left: 5%;
}

.portfolio .work .slideshow .button-right {
	right: 5%;
}

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

	.hero {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 5px;
		margin-left: 5px;
		margin-right: 5px;
	}

	.hero .name, .hero .about {
		margin: 0px;
	}

	.hero .name h1 {
		padding-top: 25px;
		font-size: 300%;
		letter-spacing: 8px;
	}

	.hero .about .large {
		font-size: 75%;
		margin-top: 50px;
	}

	.hero .picture img {
		max-width: 50%;
	}

	.portfolio {
		padding: 0 3%;
		margin-top: 50px;
		font-size: 100%;
	}


	.portfolio .work {
		display: flex;
		flex-direction: column;
		text-align: center;
		align-items: center;
		justify-content: center;
		padding: 10px 5px;
	}

	.portfolio .work .text {
		padding: 0 5%;
	}

	.portfolio .work .visual {
		padding: 20px 0;
	}

	.portfolio .work .slideshow {
		flex: 1;
		text-align: center;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.portfolio .work .slideshow button {
		width: 30px;
	}

}
