/*
Theme Name:		Gabriela Kontra
Theme URI:		https://gabriela.divocina.org
Author:			Petr Šabach
Author URI:		https://sabach.studio
Version:		2025
*/

body {
	font-family: gopher, sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: .875em;
	line-height: 1.25;
	color: #1D1D1B;
	background: #fff;
}

a {
	color: inherit;
	text-decoration: none;
}
img {
	display: block;
	max-width: 100%;
	height: auto !important;
}
button {
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}
p {
	margin: 1.5em 0;
}

.btn {
	display: inline-block;
	padding: 1.5rem;
	line-height: normal;
	border: 2px solid;
	text-align: center;
	font-size: inherit;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 18px;
}
.video {
	max-width: 720px;
	margin: auto;
}
.iframe {
	position: relative;
	overflow: hidden;
	padding-top: 56.25%; 
}
.iframe > :first-child {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	width: 100%;
	height: 100%;
}

@keyframes fadeIn {
	0% {
		opacity: 0;
		filter: blur(8px);
	}
	100% {
		filter: blur(0);
		opacity: 1;
	}
}

#nav {
	position: fixed;
	z-index: 100;
	left: 0;
	right: 0;
	top: 0;
}
#nav > :first-child {
	margin: 0;
	padding: 0;
	line-height: normal;
}
#nav ul {
	display: flex;
	justify-content: flex-end;
	background: #fff;
}
#nav li:first-child {
	margin-right: auto;
	margin-left: 1em;
}
#nav li {
	list-style: none;
	margin: 1em 1rem 1em 0;
	line-height: 1;
}

a:hover {
	color: darkgray;
}

h1 {
	font-weight: 400;
	line-height: 1;
	font-size: 2rem;
	margin: .25em 0;
	padding: 0;
}
h3 {
	font-weight: 700;
	margin: 1em 0;
	padding: 0;
	line-height: inherit;
	font-size: 1.1875em;
}

article:first-child {
	margin: 0;
}
article {
	margin-top: 2.5rem;	
}

#main {
	padding: 3em 1em 1em;
}

figure {
	margin: 0 -1em;
	padding: 0;
	width: 100vw;
	height: 100vw;
	display: flex;
	justify-content: center;
	align-items: center;
}
figure img {
	display: block;
	max-width: 80%;
	max-height: 80%;
}

#main h3 + p{
	margin-top: 1em;
}

body.admin-bar #nav {
	top: 32px;
}
body.admin-bar #main > .txt {
	top: calc(4rem + 32px);
}
body.admin-bar #main.flex {
	min-height: calc(100vh - 32px);
}
body.admin-bar #main figure {
	height: calc(100vh - 32px);
}

@media only screen and (min-width: 40em) {
	#nav li {
		margin: 1.5em 4rem 1.5em 0;
	}
	#nav li:first-child {
		margin-left: 4rem;
	}
	
	#main {
		padding: 0;
	}
	
	h1 {
		font-size: 4.5rem;
		margin: 0;
	}
	
	article:first-child {
		margin: 4rem 0;
	}
	article {
		position: relative;
		padding: 0 4rem;
		margin: 0 0 3rem;
	}
	article .img {
		position: fixed;
		z-index: -1;
		right: 0;
		top: 0;
		bottom: 0;
		width: 100vh;
		height: 100vh;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	article .img img {
		width: auto;
		max-width: 80%;
		max-height: 80%;
		opacity: 0;
		filter: blur(8px);
		will-change: opacity, filter;
	}
	article h1:hover + .img img {
		animation: fadeIn .4s ease-out forwards;
	}
	
	#main.flex {
		display: flex;
		justify-content: space-between;
		min-height: 100vh;
	}
	#main > .txt {
		position: sticky;
		top: 4rem;
		align-self: flex-start;
		font-size: 14px;
		line-height: 1.5;
		flex: 1;
		max-width: 40em;
		padding-left: 4rem;
	}
	#main > .img {
		width: 100vh;
	}
	figure {
		margin: 0;
		padding: 0;
		width: 100vh;
		height: 100vh;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	figure img {
		display: block;
		max-width: 80%;
		max-height: 80%;
		width: auto;
	}
}
