body {
	margin: 0;
	padding: 0;
	background: #f2f2f2;
	color: #000;
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 100;
}

.top {
	text-align: center;
	padding-top: 35px;
}

.signet {
	width: 96px;
	height: auto;
	margin-bottom: 45px;
}

nav {
	font-size: 13px;
	margin-bottom: 60px;
}

a {
	color: #0000ff;
	text-decoration: none;
}

a:visited {
	color: #808080;
}

a:hover {
	color: #ff0000;
}

h1 {
	color: #ff0000;
	font-size: 30px;
	margin: 0 0 65px 0;
	text-align: center;
}

h2 {
	font-size: 22px;
	font-weight: 100;
	margin: 80px 0 35px 0;
	text-align: left;
}

main {
	width: 68%;
	max-width: 1450px;
	margin: 0 auto;
}

/* TEXT */

.intro,
section p,
section h2,
.grid,
.cards {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.intro {
	margin-bottom: 70px;
}

p {
	line-height: 1.45;
	margin: 12px 0;
	text-align: justify;
}

/* GRID */

.grid {
	display: grid;
	gap: 54px 42px;
	margin-bottom: 85px;
	align-items: start;
}

/* Zeichnungen */

.drawings {
	grid-template-columns: repeat(3, 1fr);
}

/* Ölbilder */

.paintings {
	grid-template-columns: repeat(4, 1fr);
}

/* Pflanzen */

.plants {
	grid-template-columns: repeat(4, 1fr);
}

/* Exhibitions */

.exhibitions,
.rent {
	grid-template-columns: repeat(2, 1fr);
}

/* Installationen */

.installations,
.rent {
	grid-template-columns: repeat(4, 1fr);
}

/* FIGURE */

figure {
	margin: 0;
	text-align: center;
	cursor: pointer;
}

figcaption {
	font-size: 12px;
	margin-bottom: 10px;
}

/* Bilder allgemein */

figure img {
	width: 100%;
	height: auto;

	background: transparent;
	border: none;

	box-shadow: 3px 3px 8px rgba(0,0,0,0.22);

	transition: transform 0.35s ease;
}

figure:hover img {
	transform: scale(1.015);
}

/* Zeichnungen */

.drawings img {
	aspect-ratio: 1.45 / 1;
	object-fit: cover;
}

/* Ölbilder */

.paintings img {
	aspect-ratio: 0.68 / 1;
	object-fit: cover;
}

/* Pflanzen */

.plants img {
	aspect-ratio: 0.72 / 1;
	object-fit: contain;
}

/* Installationen */

.installations img,
.rent img {
	aspect-ratio: 1.45 / 1;
	object-fit: cover;
}

/* Karten */

.cards {
	display: flex;
	justify-content: center;
	gap: 30px;
	margin-bottom: 75px;
}

.cards a {
	border: 1px solid #ccc;
	padding: 18px 28px;
}

/* Footer */

#links,
#impressum,
#experiment {
	text-align: center;
}

#impressum {
	border-top: 1px solid #888;
	margin-top: 90px;
	padding-top: 40px;
	font-size: 12px;
}

/* Blur Hintergrund */

.top,
main {
	transition: filter 1.1s ease;
}

body.gallery-open .top,
body.gallery-open main {
	filter: blur(5px) saturate(0.45);
}

/* globale Abdunklung */

body.gallery-open::before {
	content: "";
	position: fixed;
	inset: 0;

	background: rgba(27, 21, 21, 0.65);

	z-index: 900;
	pointer-events: none;
}

/* LIGHTBOX */

#lightbox {
	display: none;
	position: fixed;

	left: 0;
	top: 0;
	width: 90vw;
	height: 90vh;

	background: transparent;

	backdrop-filter: none;
	-webkit-backdrop-filter: none;

	z-index: 1000;

	justify-content: center;
	align-items: center;

	overflow: hidden;
	box-shadow: none;
}

#lightbox.open {
	display: flex;
}

#slider-viewport {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

#slider-track {
	display: flex;
	width: 100%;
	height: 100%;
}

.gallery-slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;

	display: flex;
	justify-content: center;
	align-items: center;
}

.gallery-slide img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;

	background: transparent;
	border: none;
	box-shadow: none;

	cursor: pointer;
}

/* Navigation */

.gallery-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);

	border: none;
	background: none;

	font-size: 70px;
	font-weight: 100;

	color: #444;

	cursor: pointer;
	z-index: 1002;
}

#prev,
#next {
	position: fixed;
	top: 50%;

	transform: translateY(-50%);

	border: none;
	background: none;

	font-size: 70px;
	font-weight: 100;

	color: #444;

	cursor: pointer;
}

#prev {
	left: 35px;
}

#next {
	right: 35px;
}

/* Punkte */

#gallery-dots {
	position: fixed;
	bottom: 5px;
	left: 0;
	right: 0;

	display: flex;
	justify-content: center;
	gap: 10px;

	z-index: 1002;
}

.gallery-dot {
	width: clamp(8px, 1.2vw, 18px);
    height: clamp(8px, 1.2vw, 18px);

	border-radius: 50%;
	border: 2px solid #fff;
	background: transparent;

	padding: 0;
	cursor: pointer;
}

.gallery-dot.active {
	background: #fff;
}

/* TABLET */

@media (max-width: 1200px) {

	main {
		width: 94%;
	}

	.drawings,
	.paintings,
	.plants,
	.installations,
	.rent {
		grid-template-columns: repeat(2, 1fr);
		gap: 40px 24px;
	}
}

/* HANDY */

@media (max-width: 700px) {

	body {
		font-size: 14px;
		color: #222;
	}

	main {
		width: 90%;
	}

	nav {
		line-height: 1.9;
	}

	p {
		line-height: 1.6;
	}

	.drawings,
	.paintings,
	.plants,
	.installations,
	.rent {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px 18px;
	}

	figcaption {
		font-size: 11px;
	}

	#prev,
	#next {
		display: none;
	}
}

/* HANDY QUERFORMAT */

/* HANDY QUERFORMAT */

@media (max-width: 900px) and (orientation: landscape) {

	.paintings img {
		object-fit: cover;
		height: auto;
	}
	.plants img {
		max-height: 72vh;
		object-fit: contain;
	}

	.gallery-slide img {
		max-height: 82vh;
	}
}