@font-face {
	font-family: 'mdgFont';
	src: url('ptsans.ttf') format('truetype');
}

.spa {
	display: none;
}
.eng {
	display: none;
}

:root {
	--backContent: rgba(236, 236, 236, 0.96);
	--backContentT: rgba(222, 222, 222, 0);
	--btn: rgba(160, 160, 160, 0.7);
	--btnActive: rgba(196, 196, 196, 0.9);
	--btnHover: rgba(222, 222, 222, 1);

	--light1: linear-gradient(135deg, #fff0 70%, #fffd 100%);
	--light2: linear-gradient(135deg, #fffd 10%, #fff0 60%);

	-webkit-user-select: none;
	-moz-user-select: -moz-none;
	-ms-user-select: none;
	user-select: none;
	font-family: 'mdgFont', 'Trebuchet MS';
	font-size: 16px;
	color: #000;
}

* {
	-webkit-text-size-adjust: none;
	margin: 0px;
	padding: 0px;
	border-spacing: 0px;
	border-collapse: collapse;
	box-sizing: border-box;
}

body {
	background-color: rgb(0, 0, 0);
	display: flex;
	height: 100vh;
	align-items: center;
	justify-content: center;
	position: relative;
}
h1,
h2,
h3 {
	margin-bottom: 1em;
}

#nojs {
	margin-top: -44%;
	color: #e4e4e4;
}

#allcontent {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	opacity: 0;
	width: 100vw;
	height: 100vh;
}

#lang {
	position: fixed;
	padding: 4px 8px;
	right: 24px;
	top: 0;
}

#lang > div {
	display: inline-block;
	width: 1.5em;
	height: 1em;
	cursor: pointer;
	background-repeat: no-repeat;
	background-size: 100%;
	transform: scale(1);
	filter: saturate(0%);
}

#lang > div.sp {
	background-image: url('spa.png');
}

#lang > div.en {
	background-image: url('eng.png');
}

#lang > div.active {
	transform: scale(1.2);
	filter: saturate(100%);
}
#lang > div:hover {
	filter: saturate(100%);
}

#backdrop {
	position: fixed;
	width: 100vw;
	height: 100vh;
	z-index: -10;
	transition: opacity 1s linear;
}

#backdrop > img {
	position: absolute;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover; /* or object-fit: contain; */
	transition: opacity 3s linear;
	opacity: 0;
}

#hirespanel {
	display: none;
	opacity: 0;
	position: fixed;
	padding: 1.5rem;
	width: 100vw;
	height: 100vh;
	background-color: black;
	z-index: 100;
	transition: opacity 0.5s linear;
	background-position: center;
	background-attachment: fixed;
	background-size: contain;
	cursor: pointer;
}
#hirespanel > span {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	color: #ccca;
	font-size: 1rem;
	font-weight: 100;
	padding: 0 0.5em;
}

@keyframes photoswap {
	0% {
		opacity: 0;
	}
	33% {
		opacity: 0;
	}
	66% {
		opacity: 1;
	}
	100% {
		opacity: 1;
	}
}

#page {
	display: grid;
	width: clamp(80vw, calc(75vw + 200px), 1680px);
	height: clamp(90vh, calc(103vh - 4vw), 100vh);
	grid-template-areas:
		'header topbar'
		'header main'
		'nav  main';
	grid-template-rows: clamp(20px, 4vw, 30px) clamp(50px, 7vw, 88px) 1fr;
	grid-template-columns: clamp(70px, 12vw, 160px) 1fr;
	gap: clamp(0.6rem, 1vw, 1rem);
}

#page > header {
	grid-area: header;
	text-align: right;
	pointer-events: none;
}

#page > header > img {
	width: 100%;
	background-color: #eeed;
}

#page > topbar {
	pointer-events: none;
	grid-area: topbar;
	background-image: linear-gradient(90deg, #eeed 0%, #eeed 20%, #eee0 60%);
}

#page > topbar > img {
	height: 100%;
}

#page > nav {
	grid-area: nav;
}

#page > main {
	z-index: 100;
	grid-area: main;
	max-height: 100vh;
	overflow: scroll;
}

/* N A V I G A T I O N */

#page > nav > div {
	font-weight: bolder;
	font-size: 1.1rem;
	text-align: right;
	letter-spacing: 0.2em;
	width: 100%;
	padding: 0.5em;
	background-color: var(--btn);
	color: black;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	transform-origin: left top;
	margin-bottom: 1.2vw;
	overflow: hidden;
}

#page > nav > div.active {
	transform: scale(1.09);
	background-color: var(--btnActive);
	background-image: var(--light1);
	letter-spacing: 0.2em;
}

#page > nav > div:not(.active):hover {
	transform: scale(1.04);
	background-color: var(--btnHover);
	letter-spacing: 0.1em;
}

#ini {
	gap: 1rem;
	display: flex;
	flex-wrap: wrap;
}

#ini > section {
	flex: 1;
	background-color: var(--backContent);
	padding: 2rem;
	min-width: 30ch;
	max-width: 90ch;
	width: calc(33.333% - 0.666rem);
}

#ini ul {
	list-style-type: none;
}
#ini ul > li {
	margin-bottom: 0.5em;
	position: relative;
}

#ini ul > li:before {
	position: absolute;
	left: -1.5em;
	margin-top: 0.25em;
	content: ' ';
	display: inline-block;
	height: 1em;
	width: 1em;
	background-image: url('mgdplaca_t_b.svg');
	background-repeat: no-repeat;
	background-position-x: center;
	background-position-y: center;
	background-size: 100%;
}

/* B I O  -  A B O U T */

#bio {
	background-color: var(--backContent);
	padding: 1rem;
	line-height: 1.5rem;
	position: relative;
	min-height: 13rem;
}

#bio ul {
	list-style-type: square;
}

#bio h1,
#bio h3,
#bio h4 {
	margin-bottom: 0.4em;
}
#bio li > h5 {
	margin-bottom: 0;
}

#biofoto {
	float: right;
	width: clamp(60px, 24%, 180px);
	transition: all 0.3s ease-in-out;
	transform-origin: top right;
	margin-left: 1em;
	margin-bottom: 1em;
}

#biofoto > img {
	width: 100%;
}

#bio h2 {
	margin-bottom: 0;
}

.bioexpander {
	cursor: pointer;
	transition: all 0.3s ease-in-out;
	padding-bottom: 1em;
}

.bioexpander h3 {
	font-weight: bold;
	font-size: 1rem;
}

.bioexpander:hover {
	transition: all 0.3s ease-in-out;
	background-image: var(--light2);
}

#bio article {
	overflow: hidden;
	padding-bottom: 4px;
	/* font-size: 1.4px;
	line-height: 1.4px;*/
	transition: all 0.3s ease-in-out;
	height: 0;
}

#bio article.expand {
	/* font-size: initial;
	line-height: initial; */
	height: initial;
}

#bio ul {
	width: auto;
	margin-top: 1em;
	margin-left: 1em;
}
#bio li {
	margin-bottom: 0.4em;
}

/* C O N T A C T */
#cntcnt {
	display: flex;
	flex-direction: column;
	align-items: center;
}

#cnt {
	background-color: #ddd4;
	padding: 2rem;
	display: inline-flex;
	flex-direction: column;
	gap: 1rem;
	align-items: stretch;
}

#cnt > div {
	background-color: var(--backContent);
	padding: 1rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}
#cnt > div > img {
	width: 2rem;
}
#cnt > div > h3 {
	margin: 0;
}

/* G A L L E R Y */

#collage > div {
	cursor: pointer;
	display: flex;
	align-items: flex-end;
	flex-direction: column-reverse;
}
#collage > div > span {
	color: #eeea;
	background-color: #222a;
	padding: 0 0.5em;
}

.linkfoto {
	cursor: pointer;
	text-decoration: underline;
	background-color: rgb(203, 203, 203);
}

.galnav {
	width: 12vw;
	max-width: 100px;
	height: 20px;
	position: absolute;
	bottom: 0;
	z-index: 111;
	transition: all 0.3s linear;
	overflow: hidden;
	font-size: 20px;
	color: #ccc9;
	text-align: center;
	background-color: #ccc4;
}

.galnav:hover {
	height: 40vh;
}

#centerlogo {
	transform-origin: center;
	transition: all 1s linear;
	width: 100vw;
	height: 100vh;
	position: fixed;
	background-image: url('mgdlogo.svg');
	background-repeat: no-repeat;
	background-size: 40%;
	background-position: center;
	cursor: pointer;
	z-index: 199;
}

.celu {
	display: none;
}

#about {
	display: flex;
	/* justify-content: space-between; */
	align-items: flex-start;
	gap: 1rem;
}

.abouttext {
	background-color: var(--backContent);
	padding: 4vw;
	line-height: 1.5em;
	width: calc(66.666% - 0.5rem);
}

.aboutfoto {
	/* flex: 1 1 auto; */
	background-color: var(--backContent);
	width: calc(33.333% - 0.5rem);
	max-width: 240px;
	padding: 0.5rem;
	display: block;
}
.aboutfoto > img {
	width: 100%;
}
.moreinfo {
	display: inline-block;
	font-size: 0.7rem;
	margin-top: 1rem;
	padding: 0.5rem;
	background-color: var(--btn);
	cursor: pointer;
	width: auto;
	text-align: center;
}

.construction {
	display: flex;
	justify-content: center;
	align-items: center;
	color: #888888;
	font-size: 2rem;
	font-weight: bolder;
	min-height: 400px;
	background-color: #3635358c;
}

@media only screen and (max-width: 640px) {
	#page {
		margin: 0;
		width: 100vw;
		height: 100vh;
		grid-template-areas:
			'header topbar'
			'header nav'
			'main  main';
		grid-template-rows: 20px 20px 1fr;
		grid-template-columns: calc(48px + 0.4em) 1fr;
		gap: 0.4rem;
	}
	#page > nav {
		display: flex;
	}
	#page > nav > div {
		height: 20px;
		flex: 1;
		text-align: center;
		letter-spacing: 0em;
		padding: 0;
		font-size: 0.9rem;
	}
	#page > nav > div.active,
	#page > nav > div:hover {
		transform: scale(1);
		letter-spacing: 0em;
	}

	#lang {
		right: 0;
	}
	#lang > div {
		height: 0.8em;
		width: 1.2em;
	}
	#ini {
		flex-direction: column;
	}
	#ini > section {
		flex: 1;
		padding: 2rem;
		width: auto;
	}
	.celu {
		display: block;
		float: right;
		width: 40%;
	}
	.aboutfoto {
		display: none;
	}
	.abouttext {
		width: 100%;
	}
}
