@keyframes transitionIn {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translate(0);
	}
}


*	{
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

html {
	height: 100%;
	scroll-behavior: smooth;
}

body {
	color: #121212;
	background-color: #f2f2f2f2;
	font-family: 'Arial',sans-serif;
	/*max-width: 100%;*/
	width: fit-content;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 100vh;
	padding: 16px;
}

.imprint__body {
	width:100%;
}

main, header {
	flex: 1;
}

main {
	/*width:100%;*/
	animation: transitionIn 750ms ease 100ms both;
}

footer {
	flex-shrink: 0;
}

img {
	vertical-align: middle;
}

h1, h2, h3 {
	font-family: 'EB Garamond', serif;
	text-wrap: balance;
	word-wrap: balance;
	word-break: break-word;
	-webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}

h1 {
	font-size: 3rem;
	line-height: .8;
	margin-bottom: 16px
}

h2 {
	font-size: 2.5rem;
	line-height: .9;
	padding-bottom: 4px;
}

.italic {
	font-style: italic;
}

ul {
	list-style: none;
}

a {
	font-family: 'EB Garamond', serif;
	color: #121212;
	text-decoration: none;
	font-weight: 500;
	font-size: 1.125rem;
}

a:hover {
	font-style: italic;
}


.toTop {

	margin-top: 16px;
	display: flex;
	justify-content: center;
	gap: 4px;
}

.toTop__link {
	width: 90px;
	text-align: center;
	display: inline-block;
	padding: 4px;
}

/*---------->HEADER<---------*/

header {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin: 0 auto 32px auto;
}

.logo img {
	width: 150px;
}

.navigation {
	display: flex;
	flex-direction: row;
	gap: 32px;
}

.navigation__li {
	display: inline-block;
	width: 64px;
	text-align: center;
}

/*------->GALLERY<--------*/

.gallery {
	width:100%;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
	grid-template-rows: auto;
	grid-gap: 16px;
}

.card {
	height: auto;
	overflow: hidden;
	position: relative;
	border: solid 1px #EBEBEB;
}


.card__img, .info__img {
	overflow: hidden;
}


.card:hover .card__img img {
	transform: scale(1.1);
}

.card:hover .card__info {

}

.card__info {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
	font-size: 2.25rem;
	line-height: 1;
	text-align: center;
	color: white;
	filter: drop-shadow(0 0 4px rgba(0,0,0, .6));
}


.card__img img {
/*	width: 100%; */
	width: 100%;
	transition: transform 450ms ease

}


/*--------->PROJECT<--------*/

.project__gallery {
	width: 100%;
	display: flex;
	justify-content: space-between;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 16px;
}

.project__info {
	flex-grow: 1;
	min-width: 300px;
	top: 16px;
	align-self: stretch;
	background: #f2f2f2;
}

.project__medium {
	font-size: .9rem;
	line-height: 1.5;
	font-weight: 400;
	font-style: italic;
	margin-bottom: 18px;
	color: #444444;
}

.copy {
	line-height: 1.5;
	font-size: 1rem;
	font-weight: 500;
	max-width: 60ch;
	margin: 0;
	word-wrap: balance;
	word-break: break-word;
	-webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}

.copy__imprint {
	line-height: 1.4;
	font-size: .8rem;
	font-weight: 500;
	max-width: 80ch;
	margin: 0;
	word-wrap: balance;
	word-break: break-word;
	-webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}


.project__img__container {
	flex-basis: 56%;
	flex-grow: 2;
	display: flex;
	flex-direction: column;
	gap: 16px;
}


.project__img img {
 width: 100%;
 border: solid 1px #EBEBEB;
}


/*------->INFO<-------*/
.about__container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
	grid-template-rows: auto;
	grid-gap: 16px;


}

.about__img img {
	width: 100%;
}

.about__info {
	align-self: stretch;
}

.about__contact {
	margin-top: 16px;
	width: 100%;
	align-self: start;
	display: flex;
	flex-direction: column;
/*	justify-content: space-between;*/

}

.contact__list__container {
	margin-top: 16px;
	display: grid;
	grid-template-columns: 1fr 2fr;
	grid-gap: 16px;

}

.item {
	display: flex;
	flex-direction: column;
}

.sticky__container {
	position: sticky;
	top: 16px;
}

.about__contact__img {
	width:100%;
	height: 300px;
	display: flex;
	align-items: flex-end;
	justify-content: end;
}

.about__contact__img img {
	width: 12rem;
}


/*----->IMPRINT & PRIVACY<-------*/

.imprint__container {
	width: 100%;
	display: flex;
	/*justify-content: space-between;*/
	flex-wrap: wrap;
	gap:64px;
}

.imprint__gridcontainer {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 48px 16px;
	margin-bottom: 64px;
	

}

.imprint__subhead {
	font-size: 1rem;
}


.imprint, .legal {
	width: minmax(50%, 100%);
	/*justify-self: stretch;*/
	

}


/*----->FOOTER<-------*/

.footer {
	width: 100%;
	margin-top: 64px;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	padding-bottom: 16px;
	font-size: .8rem;
}

.footer__social {
	width: 100px;
}

.footer__title {
/*	display: inline-block;*/
	margin-bottom: 8px;
}

.footer__link {
	font-size: .9rem;
	margin-bottom: 4px;
}

.footer__imprint {
	width: 100px;
	text-align: right;
}
