/*	TABLE OF CONTENT

	TYPOGRAPHY BASE SETTINGS
	NAVIGATION SETTINGS
	CONTAINER SETTINGS
	HEADER SETTINGS
	MAIN SETTINGS
	SECTION SETTINGS
	PROJECTS SETTINGS
	ABOUT ME SETTINGS
	FOOTER SETTINGS
*/
/* TYPOGRPHY BASE SETTINGS */

h1 { font-size: 1.5em; font-weight: 900; line-height: 1; margin-bottom: 0.25em;}
h2 { font-weight: 900; }
h4 { font-size: 1em; margin-top: 24px; line-height: 1.5;}
li.cat-list-item { text-transform: uppercase; font-size: .83em; }
.small { font-size: 70%;}

@media (min-width: 768px) {
	nav a { font-size: 40px; flex: 1; }
	h1 { font-size: 3em; }
	.small { font-size: 20px; }
	li.cat-list-item { font-size: 1em; }
}

/* NAVIGATION SETTINGS */

nav {
	mix-blend-mode: difference;
}

@media screen and (max-width: 769px) {
	nav {
		mix-blend-mode: none;
	}

	h4 { font-size: .8em;}

	.desktop-only {
		display: none;
	}
}


/* CONTAINER BASE SETTINGS */

@media screen and (min-width: 769px) {
	.treshold {
		width: 100%;
		max-width: 1600px;
		margin: 0 auto;
	}
}


/* HEADER SETTINGS */
header {
	display: flex;
	flex-flow: column;
	justify-content: flex-end;
	height: 100vh;
}

#header-text {
	display: flex;
	flex-flow: column;
	justify-content: flex-end;
	z-index: 0;
	mix-blend-mode: difference;
	will-change: transform;
	transform: translate3d(0, 0, 0);
	/* transition: opacity, transform .2s ease; */
}

.cat-list {
	display: flex;
	flex-wrap: wrap;
	gap: .2em 12px;
}

.cat-list-item:not(:first-of-type)::before {
	content:"+";
	display: inline-block;
	margin-right: .5em;
	color: var(--main-color);
}

#header-image {
	background: no-repeat var(--bg-image) fixed center;
	background-size: cover;
	width: 100%;
	height: 200px;
	min-height: 50%;
	border-bottom: 2px solid var(--main-color);
}

@media screen and (max-width: 768px) {
	#header-image {
		background: no-repeat var(--bg-image) center;
		background-size: cover;
	}
}



/* MAIN SETTINGS */
main {
	padding-top: 48px;
}

main video {
	vertical-align: top;
}

/* SECTION SETTINGS */
section {
	display: block;
	border-bottom: 2px solid var(--main-color);
}

section:nth-of-type(1) > *:last-child {
	margin-bottom: 48px;
}

section:nth-of-type(2) {
	padding-top: 96px;
}

section > h2 {
	flex: 3 2;
	top: calc(50vh - 1em);
	left: 0;
	min-width: 124px;
	margin: 0 0 48px;
	padding-left: 12px;
	border-left: 2.5px solid var(--main-color);
	text-transform: uppercase;
}

section div > h3:not(:first-of-type) {
	margin-top: 96px;
}

section div > div > h4 {
	margin-top: 0px;
}

section > div {
	flex: 8 0;
}

section > div > * {
	margin-top: 24px;
}

section > div > p {
	width: 100%;
	max-width: 768px;
}

section .button {
	margin-top: 24px;
}
/* 
section:nth-of-type(2) {
	border-top: 2px solid var(--white);
} */

.responsive {
	width: 100%;
	height: auto;
	aspect-ratio: 16/9;
}

@media screen and (min-width: 768px) {
	section {
		display: flex;
		align-items: flex-start;
		flex-wrap: wrap;
		gap: 24px;
	}

	section > h2 {
		position: sticky;
	}


	section > div > *:first-child {
		margin-top: 0;
	}
	section > div > * {
		margin-top: 48px;
	}
}

.table {
	margin: 60px 0 0;
	max-width: 768px;
}

.table br {
	display: block;
	margin-top: .8em;
	content: "";
}

.table-row {
	display: flex;
	border-top: 1.5px solid var(--white);
}

.table-cell {
	flex: 1;
	padding: 24px;
}

.table-cell p {
	line-height: 1.5;
}

.table-cell:first-child {
	font-weight: 700;
}

.two-items {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 48px;
}

.gallery-block, .two-items {
	margin: 48px auto;
}

.gallery-block .button {
	margin-bottom: 72px;
}
 
.two-items .button {
	margin-bottom: 24px;
}

.gallery-block > *:not(:first-child), section:last-child > div > div > div *:not(:first-child) {
	margin-top: 24px;
}

main p.caption {
	margin-top: 10px !important;
	font-size: 15px;
	font-weight: 200;
}

.gallery-block p, .two-items p {
	width: 100%;
	max-width: 768px;
	font-size: 20px;
}

.two-items > * {
	max-width: 100%;
}

video, img, canvas {
	cursor: -webkit-zoom-in;
	cursor: -moz-zoom-in;
	border-radius: 8px;
	width: 100%;
	height: auto;
	max-width: 100%;
	border-color: var(--main-color);
}

canvas {
	width: 100% !important;
	height: auto !important;
}

.fullscreen {
	position: fixed;
	left: 50%;
    top: 50%;
	width: auto;
    transform: translate(-50%, -50%);
	max-height: calc(100vh - 24px);
	max-width: calc(100vw - 24px);
	margin: 0 auto !important;
	z-index: 99;
	cursor: zoom-out;
	cursor: -webkit-zoom-out;
	cursor: -moz-zoom-out;
	box-sizing: content-box;
	object-fit: cover;
}

div.background {
	display: fixed;
	left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
	height: 0;
	width: 0;
	opacity: .8;
	background-color: transparent;
	transition: background-color .5s ease;
	cursor: zoom-out;
	cursor: -webkit-zoom-out;
	cursor: -moz-zoom-out;
}

div.background.on {
	position: fixed;
	display: block;
	height: 100vh;
	width: 100vw;
	z-index: 50;
	background-color: var(--antracite);
}

@media not all and (min-resolution:.001dpcm) { 
	@supports (-webkit-appearance:none) {
		 video, img {
			 cursor: default !important;
		 }
	}
}

@media screen and (min-width: 768px) {
	.two-items > * {
		flex: 50%;
		max-width: calc(50% - 24px);
	}

	.fullscreen {
		max-height: calc(100vh - 48px);
		max-width: calc(100vw - 48px);
	}
}

/* FOOTER SETTINGS */
footer.container {
	display: block;
	margin: 40px auto;
}

footer .thanks {
	max-width: 768px;
	flex: 8 0;
	text-align: center;
	margin: auto;
}

footer .thanks > .suggestions {
	display: flex;
	justify-content: space-between;
}

footer .thanks > *:not(:first-child) {
	margin-top: 24px;
	flex: 1;
}

.thanks div h2 {
	font-weight: 900;
}

.thanks div p {
	margin-top: 24px;
}

@media screen and (min-width: 768px) {
	footer.container {
		display: flex;
		flex-wrap: wrap;
		gap: 24px;
	}
}