/*
Theme Name:		Ceny Paměti národa
Theme URI:		https://www.cenypametinaroda.cz
Author:			Petr Šabach
Author URI:		https://sabach.studio
Version:		2026
*/

html {
	scroll-behavior: smooth;
}

body {
	font-family: abril-text, serif;
	font-weight: 400;
	font-size: 1em;
	line-height: 1.5;
	color: #1D1D1B;
}

a {
	color: inherit;
	text-decoration: none;
}
img {
	display: block;
	max-width: 100%;
	height: auto !important;
}
ul, li, dl, dd, dt, figure, figcaption {
	margin: 0;
	padding: 0;
}
button {
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
	display: inline-block;
}
em {
	font-family: tablet-gothic, sans-serif;
	font-weight: 400;
}
strong {
	font-family: tablet-gothic, sans-serif;
	font-weight: 700;
}

.wrap {
	margin: auto;
	max-width: 75rem;
	padding: 0 1.5rem;
}
#thanks {
	background: #CDEAED;
	height: 36vh;	
}
#footer {
	background: #263238;
	height: 48vh;
}

.hl {
	font-family: abril-text, serif;
	font-weight: 400;
	font-size: 4rem;
	color: #263238;
	line-height: 1.125;
}
.st {
	color: #263238;
	font-size: 1.5rem;
}
.ic {
	color: #263238;
	font-family: tablet-gothic, sans-serif;
	font-weight: 700;
	font-size: 0.875rem;
}
.btn {
	display: inline-block;
	background-color: #FF0022;
	color: #F5F7F8;
	padding: 20px 24px;
	line-height: 1;
}
.btn:hover {
	color: #FFF;
}

#header .menu a,
#main .link a,
.btn {
	font-family: tablet-gothic, sans-serif;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	font-size: 1rem;
}

#nav {
	display: grid;
	align-items: center;
	grid-template-columns: 200px auto 115px;
}
#nav * {
	margin: 0;
	padding: 0;
	list-style: none;
}
#nav .menu {
	margin-left: auto;
}
#nav .menu li {
	display: inline-block;
	padding-right: 3em;
}

a {
	color: #263238;
}
.menu a:hover,
.link a:hover,
.link .active a {
	position: relative;
	color: #1D1D1B;
}
.menu a:hover::after, 
.link a:hover::after,
.link .active a::after {
	content: '';
	position: absolute;
	background: #FF0022;
	height: 1px;
	left: 0;
	right: 0;
	bottom: -3px;
}

.link li {
	list-style: none;
	display: inline-block;
	padding: 0 1rem;
}

.head, .copy {
	max-width: 53.25rem;
	margin: auto;
}
.full {
	max-width: none;
}

#main .head {
	padding: 12vh 0 0;
	text-align: center;
}
#main .head * {
	margin: 0;
}
#main .head .st {
	margin-top: .5em;
}
#main .link {
	margin: 4rem;
}
#main .body {
	margin: 0 0 24vh 0;
}

.copy {
	color: #263238;
	font-size: 1.25rem;
}
.copy p {
	margin: 1.5em 0;
}
.copy blockquote {
	background-image: url(img/bg_dot.svg);
	background-position: left top, left bottom;
    background-repeat: repeat-x, repeat-x;
	font-family: abril-text, serif;
	font-weight: 600;
	font-style: italic;
	font-size: 3rem;
	line-height: 1.125;
	margin: 0;
	padding: .75em 2em .75em 0;
}
.copy blockquote p:first-child::before {
	content: open-quote;
	display: inline;
}
.copy blockquote p:last-child::after {
	content: close-quote;
	display: inline;
}
.copy blockquote p {
	margin: 0;
}
.copy figure img {
	aspect-ratio: 1.5;
}
.copy .single {
	 margin: 4.5rem 0;
}
.copy figcaption {
	padding: .75em 0;
}
.copy .more {
	padding: 4.5rem 0 0;
	text-align: center;
}

.list {
	margin: 12vh 0;
}
.list .item {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 2.25rem;
}
.list .item:first-child ul {
	background-image: url(img/bg_dot.svg), url(img/bg_dot.svg);
	background-position: left top, left bottom;
    background-repeat: repeat-x, repeat-x;
}
.list .hl {
	margin: 0;
	line-height: 1;
}
.list ul {
	background-image: url(img/bg_dot.svg);
	background-position: left bottom;
    background-repeat: repeat-x;
	padding: 1em 0;
	font-family: abril-text, serif;
	font-weight: 600;
	font-style: italic;
	font-size: 1.875rem;
	list-style: none;
	grid-column: span 2;
}
.list a:hover {
	color: #FF0022;
}

#main.grid .item {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 65vh;
}
#main.grid .txt {
	display: flex;
	align-items: center;
	padding: 5vw;
	font-size: 1.875rem;
	color: #263238;
	background: #F5F7F8;
}
#main.grid .txt p {
	margin: 0;
}
#main.grid .item:nth-child(2) .txt {
	background: #004499;
	color: #F5F7F8;
}
#main.grid .item:nth-child(3) .txt {
	background: #FF0022;
	color: #F5F7F8;
}
#main.grid .item .img {
	background: #1D1D1B;
	order: 1;
}
#main.grid .item:nth-child(odd) .img {
	order: 0;
}
#main.grid .item .img img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
}

#main .head.hr {
	padding: 0;
}
#main .head.hr p {
	margin: 0;
	padding: 12vh 0;
}
#main .head.hr .hl {
	background-image: url(img/bg_dot.svg);
	background-position: left top;
    background-repeat: repeat-x;
	padding: 1em 0;
}

#hero {
	height: 100vh;
	background: url(img/hero.jpg) center/cover;
	display: grid;
	align-content: center;
}
#hero .wrap {
	text-align: center;
}
#hero .hl {
	color: #F5F7F8;
	font-weight: 600;
	font-style: italic;
	max-width: 12em;
}

.gallery {
	margin: 12vh 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1rem;
}
.gallery .item,
.archive .item .img {
	position: relative;
	overflow: hidden;
	padding-bottom: 75%;
}
.gallery img,
.archive img {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform .5s;
	will-change: transform;
	transform: scale(108%);
}
.gallery a:hover img,
.archive .item:hover img {
	transform: scale(100%);
}

.archive {
	margin: 12vh 0;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1.5rem;
}
.archive .item {
	position: relative;
}
.archive .item a::after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}
.archive .item .hl {
	font-size: 2.25rem;
	margin: 1rem 0;
}
.archive .item:hover a {
	color: #FF0022;
}