/*
 * Falkorn for Automad — additions to the original Falkorn stylesheet
 * (falkorn.css): site title font, Automad content blocks, image lightbox.
 */

/* Site title: Merienda ExtraBold (800), same size as before (1.625em). */
.site__title {
	font-family: "Merienda", "Hind", "Helvetica Neue", Helvetica, Arial, cursive;
	font-weight: 800;
	font-size: 1.625em;
}

/* Masonry before the script has positioned the cards. */
.loop-container--masonry {
	min-height: 1px;
}

/* ---- Post content (Automad blocks) -------------------------------- */

.entry__content > figure,
.entry__content > am-embed,
.entry__content > am-gallery,
.entry__content > am-quote,
.entry__content > am-list,
.entry__content > am-table,
.entry__content > am-raw {
	display: block;
}

.entry__content > figure {
	margin-top: 0;
	margin-bottom: calc(1.8 * 1rem);
	text-align: center;
}

.entry__content figure am-img-loader,
.entry__content figure > img {
	display: block;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.entry__content figure am-img-loader img {
	display: block;
	width: 100%;
	height: auto;
}

.entry__content figcaption {
	margin: 0;
	padding: 1em 1em 0;
	color: #84858a;
	font-family: "Hind", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: .875rem;
	line-height: 1.5;
	text-align: center;
}

/* Quote block uses the theme's blockquote style. */
.entry__content am-quote figure {
	margin: 2em 0;
	text-align: left;
}

.entry__content am-quote blockquote {
	margin: 0;
}

.entry__content am-quote figcaption {
	padding: .5em 0 0 2em;
	text-align: left;
	font-size: .875em;
}

.entry__content am-quote figcaption:empty {
	display: none;
}

.entry__content am-quote figcaption:not(:empty)::before {
	content: "\2014\00a0";
}

/* Embeds (YouTube / Vimeo). */
.entry__content am-embed figure {
	margin: 0;
}

.entry__content am-embed iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	margin: 0;
	border: 0;
}

/* Lists. */
.entry__content am-list ul,
.entry__content am-list ol {
	margin: 0;
	padding-left: 1.5em;
}

.entry__content am-list li > span {
	display: inline;
}

/* Galleries keep Automad's layout and lightbox; just spacing here. */
.entry__content am-gallery {
	margin-bottom: calc(1.8 * 1rem);
}

/* Self-hosted video. */
.entry__content video {
	display: block;
	width: 100%;
	height: auto;
}

/* Tag index page. */
.page__content ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ---- Lightbox for single images ----------------------------------- */

.fk-zoomable am-img-loader,
.fk-zoomable img {
	cursor: zoom-in;
}

body.fk-lightbox-open {
	overflow: hidden;
}

.fk-lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(23, 24, 30, .95);
	animation: fkFade .25s ease-out;
}

.fk-lightbox-overlay[hidden] {
	display: none;
}

@keyframes fkFade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.fk-lb-figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 3.5rem 1rem 3rem;
	box-sizing: border-box;
}

@media only screen and (min-width: 768px) {
	.fk-lb-figure {
		padding: 3.5rem 5rem 3rem;
	}
}

.fk-lb-figure img {
	display: block;
	max-width: 100%;
	max-height: calc(100% - 3em);
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 0 2rem rgba(0, 0, 0, .4);
	transition: opacity .2s;
}

.fk-lightbox-overlay.is-loading img {
	opacity: .3;
}

.fk-lb-figure figcaption {
	max-width: 50rem;
	padding: 1em 1em 0;
	color: #c8c9cc;
	font-family: "Hind", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: .875rem;
	line-height: 1.5;
	text-align: center;
}

.fk-lb-figure figcaption a {
	color: #ffffff;
}

.fk-lb-close,
.fk-lb-prev,
.fk-lb-next {
	position: absolute;
	z-index: 1;
	padding: 0;
	width: 3rem;
	height: 3rem;
	color: rgba(255, 255, 255, .8);
	font-family: "Hind", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 2.5rem;
	line-height: 3rem;
	text-align: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: color .2s, background-color .2s;
}

.fk-lb-close:hover,
.fk-lb-prev:hover,
.fk-lb-next:hover,
.fk-lb-close:focus,
.fk-lb-prev:focus,
.fk-lb-next:focus {
	color: #ffffff;
	background-color: #d42929;
	outline: 0;
}

.fk-lb-close {
	top: .75rem;
	right: .75rem;
	font-size: 2rem;
}

.fk-lb-prev,
.fk-lb-next {
	top: 50%;
	margin-top: -1.5rem;
	font-size: 3rem;
	line-height: 2.75rem;
}

.fk-lb-prev {
	left: .5rem;
}

.fk-lb-next {
	right: .5rem;
}

.fk-lightbox-overlay.is-single .fk-lb-prev,
.fk-lightbox-overlay.is-single .fk-lb-next {
	display: none;
}

.fk-lb-counter {
	position: absolute;
	top: 1.25rem;
	left: 1.25rem;
	color: rgba(255, 255, 255, .7);
	font-family: "Hind", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: .875rem;
}

/* ---- Buttons (cookie banner, dialog, video placeholders) ---------- */

.fk-btn,
.fk-embed__load {
	display: inline-block;
	padding: .75em 1.5em .625em;
	color: #ffffff;
	font-family: "Hind", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	background-color: #d42929;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background-color .25s ease-in-out, color .25s ease-in-out;
}

.fk-btn:hover,
.fk-btn:focus,
.fk-embed__load:hover,
.fk-embed__load:focus {
	color: #ffffff;
	background-color: #b62323;
}

.fk-btn--link {
	padding-left: .5em;
	padding-right: .5em;
	color: #e8e9ec;
	text-decoration: underline;
	background-color: transparent;
}

.fk-btn--link:hover,
.fk-btn--link:focus {
	color: #ffffff;
	background-color: transparent;
}

.entry__content a.fk-btn {
	color: #ffffff;
	text-decoration: none;
}

/* ---- Cookie banner ------------------------------------------------- */

.fk-consent-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1500;
	color: #c8c9cc;
	font-family: "Hind", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: .9375rem;
	line-height: 1.5;
	background-color: #17181e;
	box-shadow: 0 -0.25rem 1.5rem rgba(0, 0, 0, .2);
	animation: fkFade .4s ease-out;
}

.fk-consent-banner[hidden] {
	display: none;
}

.fk-consent-banner__inner {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 76rem;
	margin: 0 auto;
	padding: 1.25rem 1.5rem;
}

@media only screen and (min-width: 960px) {
	.fk-consent-banner__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 2.5rem;
		padding: 1.5rem 2.5rem;
	}
}

.fk-consent-banner__text {
	flex: 1 1 auto;
	max-width: 52rem;
}

.fk-consent-banner p {
	margin: 0;
}

.fk-consent-banner__title {
	margin-bottom: .25em !important;
	color: #ffffff;
	font-size: 1.0625rem;
	font-weight: 600;
}

.fk-consent-banner a {
	color: #ffffff;
}

.fk-consent-banner__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .625rem;
	flex-shrink: 0;
}

/* Keep the scroll-to-top button above the banner. */
body.fk-consent-banner-open .button--scroll-to-top {
	bottom: 13rem;
}

@media only screen and (min-width: 960px) {
	body.fk-consent-banner-open .button--scroll-to-top {
		bottom: 7.5rem;
	}
}

/* ---- Cookie settings dialog --------------------------------------- */

body.fk-consent-dialog-open {
	overflow: hidden;
}

.fk-consent-dialog {
	position: fixed;
	inset: 0;
	z-index: 2100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background-color: rgba(23, 24, 30, .75);
	animation: fkFade .25s ease-out;
}

.fk-consent-dialog[hidden] {
	display: none;
}

.fk-consent-dialog__box {
	position: relative;
	width: 100%;
	max-width: 38rem;
	max-height: calc(100vh - 2rem);
	overflow: auto;
	padding: 2rem 1.5rem 1.5rem;
	color: #17181e;
	font-size: .9375rem;
	line-height: 1.6;
	background-color: #ffffff;
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, .3);
}

@media only screen and (min-width: 600px) {
	.fk-consent-dialog__box {
		padding: 2.5rem;
	}
}

.fk-consent-dialog__title {
	margin: 0 0 .75em;
	font-size: 1.5em;
}

.fk-consent-dialog__close {
	position: absolute;
	top: .5rem;
	right: .5rem;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	color: #84858a;
	font-size: 1.75rem;
	line-height: 2.5rem;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.fk-consent-dialog__close:hover,
.fk-consent-dialog__close:focus {
	color: #d42929;
	background: transparent;
}

.fk-consent-option {
	margin-top: 1.25rem;
	padding: 1rem 1.25rem;
	background-color: #f7f8fa;
	border-left: 4px solid #e8e9ec;
}

.fk-consent-option p {
	margin: .5em 0 0;
	color: #4a4b51;
	font-size: .875rem;
	line-height: 1.55;
}

.fk-consent-option__label {
	display: flex;
	align-items: center;
	gap: .625rem;
	font-family: "Hind", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.fk-consent-option__label input {
	width: 1.125rem;
	height: 1.125rem;
	margin: 0;
	accent-color: #d42929;
}

.fk-consent-option__label input:disabled {
	cursor: not-allowed;
}

.fk-consent-option__label em {
	margin-left: auto;
	color: #84858a;
	font-size: .8125rem;
	font-style: normal;
	font-weight: 500;
}

.fk-consent-dialog__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .625rem;
	margin-top: 1.5rem;
}

.fk-consent-dialog__privacy {
	margin-left: auto;
	color: #84858a;
	font-family: "Hind", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: .875rem;
}

/* ---- Video placeholders -------------------------------------------- */

.entry__content .fk-embed {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 16 / 9;
	color: #c8c9cc;
	font-family: "Hind", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: .9375rem;
	line-height: 1.5;
	text-align: center;
	background-color: #17181e;
}

.entry__content .fk-embed--loaded {
	display: block;
	background-color: #000000;
}

.entry__content .fk-embed iframe {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
}

.fk-embed__notice {
	max-width: 32rem;
	padding: 1.5rem;
}

.fk-embed__notice p {
	margin: 0 0 1em;
}

.fk-embed__title {
	color: #ffffff;
	font-size: 1.25rem;
	font-weight: 600;
}

.entry__content .fk-embed a {
	color: #ffffff;
}

.fk-embed__always,
.entry__content .fk-embed__always {
	color: #c8c9cc;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.fk-embed__always {
	display: block;
	margin-bottom: .75em;
	font-size: .8125rem;
	cursor: pointer;
}

.fk-embed__always input {
	margin-right: .375em;
	vertical-align: -2px;
	accent-color: #d42929;
}

.fk-embed__open {
	font-size: .8125rem;
}

@media only screen and (max-width: 599px) {
	.entry__content .fk-embed {
		aspect-ratio: auto;
		min-height: 14rem;
	}

	.fk-embed__notice {
		padding: 1.25rem 1rem;
	}

	.fk-embed__text {
		font-size: .8125rem;
	}
}

/* Privacy policy page */
.privacy-contact {
	padding: 1rem 1.25rem;
	background-color: #f7f8fa;
}
