/* FERRO font */

/* Copyright (c) 2023 by Gayane Bagdasaryan, Vyacheslav Kirilenko. All rights reserved. */
@font-face {
	font-family: 'FerroGroteskRegular';
	src:
	     url('/static/fonts/FerroGrotesk-regular.woff2') format('woff2'),
	     url('/static/fonts/FerroGrotesk-regular.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}
/* Copyright (c) 2023 by Gayane Bagdasaryan, Vyacheslav Kirilenko. All rights reserved. */
@font-face {
	font-family: 'FerroGroteskBold';
	src:
	     url('/static/fonts/FerroGrotesk-bold.woff2') format('woff2'),
	     url('/static/fonts/FerroGrotesk-bold.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

/*LAYOUT*/

body {
	/* TODO: decrease body padding; increase side padding; align first header with side photo */
	padding: 1rem 1rem 0 1rem;
	font-family: 
		"FerroGroteskRegular",
		-apple-system, 
		BlinkMacSystemFont, 
		"Helvetica", 
		sans-serif;
	background: #FFFCFC;
	height: 1px;
	color: #222;
}

aside {
	display: flex;
	margin: 0 0 3rem 0;
	justify-content: start;
	align-items: baseline;
	/*padding-left: 5rem;*/
}


.zlata-praha {
	padding-left: 3rem;
	padding-top: 3rem;
	margin-top: 3rem;
}

hr {
	height: 2px;
	background: #222;
	border: none;
}

.item {
	margin: 0 0 88px 0;
	position: relative;
}

.item:last-child {
	margin-bottom: 0;
}

.container {
	font-size: 0.8rem;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	flex-grow: 1;
	align-items: flex-start;
}

.item__cover {
	margin: 12px 0 0 0;
	max-width: 100%;
	height: auto;
}

.item__cover-decoration {
	/* border-radius: 4px; */
	border:rgba(0, 0, 0, 0.08) 1px solid;
}

.project {
	font-size: 10px;
	margin: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-bottom: 64px;
}

.project__image {
	max-width: 100%;
	height: auto;
	margin-bottom: 4em;
}

.project__image--bounded {
	border:rgba(0, 0, 0, 0.08) 1px solid;
	max-width: 100%;
	height: auto;
	margin-bottom: 4em;
}

.project__image:has(+ .pic__caption),
.project__image--bounded:has(+ .pic__caption) {
  margin-bottom: 8px;
}

.pic__caption {
	max-width: 720px;
	text-align: center;
	font-size: 14px;
	line-height: 20px;
}

.project__image--browser {
	border-radius: 10px;
}

.project-details {
	/* maybe position: relative; ???*/
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	flex-wrap: wrap;
}

/* ----- TEXT ----- */

html {
	font-size: 12px;
}
strong {
	font-family: 
		"FerroGroteskBold",
		-apple-system, 
		BlinkMacSystemFont, 
		"Helvetica", 
		sans-serif;
	font-weight: normal;
}

h1, h2, h3, h4 {
	font-family: 
		"FerroGroteskBold",
		-apple-system, 
		BlinkMacSystemFont, 
		"Helvetica", 
		sans-serif;
	font-style: normal;
	font-weight: normal;
}

h1 {
	font-size: 4em;
	line-height: 1.3;
	cursor: default;
	text-align: center;
	margin: 20px 0 0.3em 0;
}

h2 {
	font-size: 24px;
	line-height: 1.3;

	margin-top: 2em;
}

.aside__header, .project__footer {
	/* max-width: 10rem; */
	font-size: 1.25rem;
	line-height: 1.8rem;
	font-weight: 600;
	margin-top: 0;
}

.project__footer {
	padding-top: 80px;
}

.aside__text {
	font-size: 1.25rem;
	line-height: 1.8rem;
}

.aside__text a, 
.project__text a, 
.aside__header a,
.item__info a,
.pic__caption a,
.project__footer a {
	border-bottom: 1px solid;
}

.aside__left-hand-path {
	color: rgba(6,6,6,0);
}

.aside__left-hand-path::selection {
	color: rgba(6,6,6,1);
}

.item__caption {
	font-size: 2em;
}

p.item__info {
	margin: 8px 0 0 0;
	color: #222;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	max-width: 800px;
}

.project__text {
	font-size: 18px;
	line-height: 1.5;
	max-width: 960px;
	align-items: flex-start;
}

.project__text p {
	margin: 20px 0;
}

.project__text li::marker {
  content: "— ";
}

/* ----- LINKS ----- */

a:link, a:visited, a:hover, a:active {
	text-decoration: none;
}

a:link {
	color: #004794;
	border-color: rgba(0, 71, 148, 0.32);
	transition-property: color, border-color;
	transition-duration: .15s;
	transition-timing-function: ease-in;
}

a:visited {
	color: #55224c;
  	border-color: rgba(85, 34, 76, 0.32);
	transition-property: color, border-color;
	transition-duration: 0s;
	transition-timing-function: ease-in;
}

a:hover {
	color: #FF5141;
  	border-color: rgba(255, 81, 65, 0.32);
	transition-property: color, border-color;
	transition-duration: 0s;
	transition-timing-function: ease-in;
}

.item > a {
	border: none;
}

.item__caption {
	display: inline;
	color: #004794;
	/* border-bottom: 1px solid rgba(0, 71, 148, 0.32); */
	text-decoration: underline;
	text-decoration-color: rgba(0, 71, 148, 0.5);
	text-decoration-thickness: 1px;
	text-underline-offset: 8px;
	transition-property: color, border-color, text-decoration-color;
	transition-duration: .3s;
	transition-timing-function: ease-in;
	z-index: 23;
}

a:visited .item__caption {
	color: #55224c;
    /* border-color: rgba(85, 34, 76, 0.32); */
	/* text-decoration: none; */
	text-decoration-color: rgba(85, 34, 76, 0.5);
	transition-property: color, border-color, text-decoration-color;
	transition-duration: 0s;
}

a:hover .item__caption {
	color: #FF5141;
    /* border-color: rgba(255, 81, 65, 0.32); */
	/* text-decoration: none; */
	text-decoration-color: rgba(255, 81, 65, 0.5);
	transition-property: color, border-color, text-decoration-color;
	transition-duration: 0s;
}

.item__caption.no-link {
	color: #222;
	text-decoration: none;
}



/* ----- VIDEOS ----- */
#filters-1 {
  width: 1196px;
  height: 598px;
  object-fit: cover;
  object-position: center top;
  background-color: #fff;
}


/* BREAKPOINTS */

.aside__bio {
	display: none;
}

@media (min-width: 400px) {
	body {
		padding: 2rem;
	}

	.aside__text {
		padding-left: 24px;
	}
}

@media (min-width: 550px) {
	.container {
		font-size: 1rem;
	}
}

@media (min-width: 760px) {
	.aside__bio {
		display: block;
	}
}

@media (min-width: 960px) {
	.project {
		font-size: 12px;
	}
	body {
		padding: 2rem;
	}
	.container {
		padding-left: 22rem;
		padding-bottom: 4rem;
	}
	aside {
		background: url('/static/img/gleb.jpg') no-repeat left top;
		background-size: 64px 64px;
		position: fixed;
		/* width: 10rem; */
		display: block;
		padding-top: 6rem;
		padding-left: 0;
		max-width: 200px;
	}

	/* .aside__header:after {
	content: " →";
	} */

	.aside__text {
		padding-left: 0;
	}
	.rainy-sp {
		bottom: 0;
	}
	.item {
		position: relative;
	}
	.item__caption.xl {
		font-size: 36px;
	}
	.item__header--top {
		max-width: 254px;
		position: absolute;
		top: 0;
		left: 0;
	}
	.item__header--bottom {
		max-width: 160px;
		position: absolute;
		bottom: 0;
		left: 0;
	}
	.item__cover {
		margin: 20px 0 0 0;
	}
	.item__cover.he {
		margin: 8px 0 -2% -2%;
	}
	.item__cover.drums {
		margin-top: 0;
		padding-left: 66px;
		padding-bottom: 38px;
	}
	.item__cover.checkin {
		margin-top: 0;
		padding-bottom: 88px;
	}
}

@media (min-width: 1441px) {
	.container {
		padding-left: 280px;
		max-width: 1720px;
	}
	.item {
		margin-bottom: 100px;
	}
}
