:root {
	--black: black;
	--white: #fff;
	--blue: #0066ff;
	--purple: purple;
	--bg: rgb(243, 243, 243);
	
	font-size: clamp(22px, 4vw, 70px)!important;
	
}

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box
}

html {
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
	height: 100%;
	background-color: var(--black);
}

h1, h2, h3, h4, h5 , h6 {
	text-transform: none;
	font-weight: 500;
	font-size: 1rem;
	margin: 0;
}

h1, h2 {
	text-decoration: underline;
}

article, figcaption, figure, footer, header, main, menu, nav, section {
	display: block
}

a {
	color: var(--blue);
	text-decoration: none;
	position: relative;	
}

a:hover {
	color: var(--purple);
	text-decoration: underline;
	font-style: italic;
}

.gallery-btn {
	background: var(--blue);
	color: var(--white);
	
	
	padding: 0.2em 0.5em  !important;
	border-radius: 1em;
	
	cursor: pointer;
}

.gallery-btn:hover {
	background: var(--white);
	color: var(--black);
	text-decoration: none;}

::selection {
	color: var(--white);
	background: var(--blue);
}

::-moz-selection {
	color: var(--white);
	background: var(--blue);
}

hr {
	height: 0;
	border: 0;
	margin: 20px 0
}

a:active, a:hover {
	outline: 0;
	overflow: visible;
}

html, body {
	font-family: "Times New Roman", Times, serif;
	font-size: 1rem;
	line-height: 1rem;
	letter-spacing: 0px;
	text-decoration: none;
	color: var(--white);
	top: 0;
	left: 0;
	scroll-behavior: smooth;
	position: absolute;
	display: block;
	bottom: 0;
	right: 0;
	margin: 0;
	-webkit-overflow-scrolling: touch;
	background: var(--black);
}

header {
	position: relative;
	z-index: 25;
	padding: 1em;
	
	background-color: var(--black);
	transition: background-color .3s ease-in-out, top .3s ease-in-out;
	display: flex;
	flex-wrap: wrap;
justify-content: center;
	width: 100%;
	height: 100%
	
}

header h1 {
	text-decoration: none;
}

ul {
	margin: 0;
	padding: 0;
	gap: 0;
	list-style-type: none;
	display: flex;
	text-align: center;
}

.mainnav li {
	padding-left: 1em;
	display: flex;
	justify-content: center;
	cursor: pointer;	
}

.mainnav li:hover, .underline {
	color: var(--blue);
	text-decoration: underline;
}

.imprint-btn{
	display: none;}

.no-underline {
	color: var(--black);
	text-decoration: none!important;
}

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

main {
	top: 0;
	width: 100%;
	height: auto;
	position: relative;
	display: inline-block;
}

.carousel {
	position: relative;
	overflow: visible;
	height: auto;
}

.carousel-cell {
	width: 100vw;
	height: 100vh;
	height: 100svh;
	top: 0!important;
	max-height: calc(150vw - 0rem);
	margin: 0;
	position: relative;
	overflow: visible;
	padding: 0;
	counter-increment: gallery-cell;
	display: flex;
	align-content: center;
	align-items: center;
	justify-content: center;
	
}

.carousel-cell img {
	display: inline-block;
	object-fit: contain;
	object-position: center;
	position: relative;
	height: auto;
	width: 100%;
	height: 100%;
	opacity: 0;
	top: 0;
	-webkit-transition: opacity 0.4s;
	transition: opacity 0.4s;
}

.title {
	position: absolute;
	opacity: 1;
	padding: 1rem;
	bottom: 0;
	width: 100%;
	left: 0;
	max-width: calc(100vw - 4rem);
}
.work .title {
	position: relative;
	padding: 0 0.5rem .5rem;
}
/* fade in lazy loaded image */

.carousel-cell-image.flickity-lazyloaded, .carousel-cell-image.flickity-lazyerror {
	opacity: 1;
}

.carousel-cell.is-selected .title {
	opacity: 1;
}
.work {
	height: auto;
	position: relative;
	margin-top: 3rem;
	margin-top: 0;
	display: flex;
	flex-wrap: wrap;
}

.work > p {
	padding: 0 0.5rem 3rem;
	margin: 0;
}

.work carousel-cell{
	display: flex;	
}

.work img {
	opacity: 1;
	display: inline-block;
	object-fit: contain;
	object-position: top left;
	position: relative;
	height: auto;
	width: auto;
	max-height: 100vh;
	max-width: 100vw;
}

.carousel-counter {
	padding: 1rem;
	align-self: flex-end;
	width: 100%;
	position: absolute;
	transform: translateY(-100%);
	text-align: right;
}

.carousel-counter p {
	margin: 0;
	z-index: 100;
}

select:hover {
	box-shadow: 0px 2px .3em rgba(0,0,0,0.4);
}

select:focus {
	box-shadow: 0 0 0px 0.25em rgba(59, 153, 252, .7);
	box-shadow: 0 0 0 3px -moz-mac-focusring;
	color: #222;
	outline: none;
}

select:-moz-focusring {
	color: transparent;
	text-shadow: 0 0 0 #000;
}

nav.contact, .newsletter, footer {
	text-align: left;
	height: auto;
	line-height: 1em;
	padding: 1rem ;
	position: relative;
	display: flex;
	flex-direction: column;
}

footer{
	display: none;
}
nav.contact ul {
	display: inline-block;
	margin: auto 0;
	text-align: left;
	padding-bottom: 1rem;
}



nav.contact a, .newsletter a {
	display: inline-block;
	padding-right: 0.25em;
	padding-left: 1em;}

.newsletter {
	padding: 1rem ;
	background: #fffd05;
}
.text {
	display: releativ;
		display: inline-block;
}
.text article {
	padding:  1rem;
}

.text p {
	margin: 0 0 1em 0;
}

.text > *:first-of-type {
	padding-top: 3.5rem;
}

.text a {
	color: var(--black);
	text-decoration: underline;
}

.text a:hover {
	color: var(--blue);
}

#CV {
	background: var(--bg);
	position: relative;
	height: auto;
	width: 100%;
	padding: 0 1em;
}
#CV h2, #CV h3{
	padding-top: 0.5em;
	
} 
#CV article h2, #CV article p {
	display: block;
	margin: 0;
}

#CV article h2 + p {
	margin-top: 0.5em;
}

#CV article {
	margin-bottom: 1em;
	width: 100%;
}

#CV article, #CV article h2, #CV article h3 {
	display: inline-block;
}

#CV article .year + ul, #CV article .year + p {
	display: inline-block;
	width: calc(100% - 4rem);
}

#CV a {
	color: var(--black);
	text-decoration: none;
}

.year {
	width: 3em !important;
	vertical-align: top;
}

section#imprint {
	display: block;
	display: none;
}