html,
body {
	max-width: 100%;
	overflow-x: hidden;
}

body.theme-warm-graphite {
	--rb-ink: #4a4036;
	--rb-ink-soft: #5d5248;
	--rb-ink-muted: #85796d;
	--rb-accent: #8a5846;
}

body.theme-forest-ink {
	--rb-ink: #26352f;
	--rb-ink-soft: #3c4b44;
	--rb-ink-muted: #69766f;
	--rb-accent: #7b6a3f;
}

body.theme-walnut {
	--rb-ink: #3d3129;
	--rb-ink-soft: #56463a;
	--rb-ink-muted: #7b6b5d;
	--rb-accent: #8a4f3d;
}

body.theme-moonlit-blue {
	--rb-ink: #2e3740;
	--rb-ink-soft: #45515c;
	--rb-ink-muted: #6d7882;
	--rb-accent: #6f5d45;
}

body[class*="theme-"] {
	color: var(--rb-ink-soft);
}

body[class*="theme-"] #main {
	color: var(--rb-ink-soft);
}

body[class*="theme-"] #main h1,
body[class*="theme-"] #main h2,
body[class*="theme-"] #main h3,
body[class*="theme-"] #main h4,
body[class*="theme-"] #main h5,
body[class*="theme-"] #main h6,
body[class*="theme-"] #main strong,
body[class*="theme-"] #main b {
	color: var(--rb-ink);
}

body[class*="theme-"] #main a {
	color: var(--rb-ink);
	border-bottom-color: color-mix(in srgb, var(--rb-ink) 35%, transparent);
}

body[class*="theme-"] #main a:hover {
	color: var(--rb-accent) !important;
	border-bottom-color: transparent;
}

body[class*="theme-"] #main header.major .date,
body[class*="theme-"] #main > .post header.major > .date {
	color: var(--rb-ink-muted);
}

body[class*="theme-"] input[type="submit"],
body[class*="theme-"] input[type="reset"],
body[class*="theme-"] input[type="button"],
body[class*="theme-"] button,
body[class*="theme-"] .button {
	box-shadow: inset 0 0 0 2px var(--rb-ink-soft);
	color: var(--rb-ink) !important;
}

body[class*="theme-"] input[type="submit"]:hover,
body[class*="theme-"] input[type="reset"]:hover,
body[class*="theme-"] input[type="button"]:hover,
body[class*="theme-"] button:hover,
body[class*="theme-"] .button:hover {
	box-shadow: inset 0 0 0 2px var(--rb-accent);
	color: var(--rb-accent) !important;
}

body[class*="theme-"] input[type="submit"].primary,
body[class*="theme-"] input[type="reset"].primary,
body[class*="theme-"] input[type="button"].primary,
body[class*="theme-"] button.primary,
body[class*="theme-"] .button.primary {
	background-color: var(--rb-ink);
	color: #ffffff !important;
}

img,
video,
iframe,
object,
embed {
	max-width: 100%;
}

#nav {
	height: auto;
	min-height: 4rem;
	line-height: 1;
	overflow: visible;
	padding: 0;
}

#nav ul.links {
	align-items: stretch;
	flex-wrap: wrap;
	justify-content: center;
	min-width: 0;
	min-height: 4rem;
	width: 100%;
}

#nav ul.links li {
	display: flex;
}

#nav ul.links li a {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 4rem;
	padding: 0 1.05rem;
	line-height: 1.15;
	white-space: normal;
	text-transform: none !important;
}

#navPanel .links li a {
	letter-spacing: 0;
	text-transform: none;
}

@media screen and (max-width: 1200px) {
	#nav ul.links li a {
		padding: 0 0.75rem;
		font-size: 0.72rem;
	}
}

#main h1,
#main h2,
#main h1 a,
#main h2 a {
	text-transform: none !important;
}

.home-intro .panorama {
	display: block;
	width: min(800px, 92vw);
	height: auto;
	margin: 0 auto 2rem auto;
	box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.28);
}

#main > .post p,
#main > .posts p {
	text-align: left;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

#main > .post a,
#main > .posts a,
.contact-block p {
	overflow-wrap: anywhere;
}

.post .image.main img,
.posts .image.fit img {
	max-height: 34rem;
	object-fit: cover;
	object-position: center;
}

.posts article .image.fit img {
	height: 18rem;
}

.content-image {
	display: block;
	width: min(100%, 48rem);
	max-width: calc(100vw - 4rem);
	height: auto;
	margin: 0 auto 2rem auto;
}

.content-image.small {
	width: min(100%, 28rem);
}

.signature-image {
	display: block;
	width: 100%;
	max-width: min(36rem, calc(100vw - 4rem));
	height: auto;
	margin: 0 auto 2rem auto;
	object-fit: contain;
}

.image-pair {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	margin: 0 0 2rem 0;
}

.image-pair img {
	width: auto;
	max-height: 7rem;
}

.memorial {
	color: #8b0000;
	font-weight: 700;
	text-align: center;
}

.inline-smiley {
	width: 15px;
	height: 15px;
	vertical-align: -2px;
}

.embed-wrap,
.album-frame {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-top: solid 2px #eeeeee;
}

.embed-wrap {
	aspect-ratio: 16 / 9;
}

.album-frame {
	min-height: 70vh;
}

.embed-wrap iframe,
.album-frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.album-frame iframe {
	min-height: 70vh;
}

.jalbum-embed {
	margin-top: 2.5rem;
	color: var(--rb-ink);
	text-align: left;
}

.jalbum-embed article.main {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.jalbum-embed header {
	margin: 0 0 1.5rem 0;
	text-align: center;
}

.jalbum-embed .page-title {
	margin: 0;
	color: var(--rb-ink);
	font-size: 1.35rem;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
}

.jalbum-embed .main-cont {
	width: 100%;
}

.jalbum-embed .items {
	width: 100%;
	padding: 0;
}

.jalbum-embed .bunchof.thumbnails {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 0;
}

.jalbum-embed .image.card {
	display: block;
	max-width: 100%;
	margin: 0;
	padding: 3px;
	border: solid 1px #e4ddd5;
	background: #ffffff;
	box-shadow: 0 0.2rem 0.8rem rgba(74, 64, 54, 0.09);
}

.jalbum-embed .thumb {
	display: block;
	overflow: hidden;
	border-bottom: 0;
	line-height: 0;
}

.jalbum-embed .thumb img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: cover;
}

.jalbum-embed footer {
	margin-top: 1.5rem;
	text-align: center;
}

.jalbum-embed .creditlink {
	color: var(--rb-ink-muted);
	font-size: 0.85rem;
}

.jalbum-embed .creditlink a {
	color: inherit;
}

audio:not(.hidden-audio) {
	display: block;
	width: min(100%, 34rem);
	margin: 0 auto 2rem auto;
}

.hidden-audio {
	display: none;
}

.contact-block h2 {
	margin-top: 2rem;
}

.impressum-page {
	color: var(--rb-ink-soft);
}

.impressum-card {
	margin: 0 auto 2.5rem auto;
	padding: 2rem;
	border-top: solid 2px #eeeeee;
	border-bottom: solid 2px #eeeeee;
	background: rgba(74, 64, 54, 0.025);
}

.impressum-card h2 {
	margin: 0 0 0.65rem 0;
}

.impressum-card p {
	margin-bottom: 1.5rem;
}

.contact-lines {
	margin: 0;
}

.contact-lines > div {
	display: grid;
	grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
	gap: 1rem;
	padding: 1rem 0;
	border-top: solid 1px #eeeeee;
}

.contact-lines dt {
	color: var(--rb-ink);
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-size: 0.8rem;
	font-weight: 900;
	letter-spacing: 0.075em;
	text-transform: uppercase;
}

.contact-lines dd {
	margin: 0;
}

#footer {
	display: flex;
	justify-content: center;
}

#footer > .split.contact {
	width: 100%;
}

#footer > .home-contact-card {
	width: min(100%, 46rem);
	padding: 3rem 2.5rem;
	text-align: center;
}

.home-contact-card .contact-kicker {
	margin: 0 0 0.75rem 0;
	color: var(--rb-ink-muted);
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-size: 0.8rem;
	font-weight: 900;
	letter-spacing: 0.075em;
	text-align: center;
	text-transform: uppercase;
}

.home-contact-card h2 {
	margin: 0 0 1rem 0;
	color: var(--rb-ink);
	font-size: 1.6rem;
	letter-spacing: 0;
	text-transform: none;
}

.home-contact-card > p:not(.contact-kicker) {
	max-width: 34rem;
	margin: 0 auto 1.75rem auto;
	color: var(--rb-ink-soft);
	text-align: center;
}

.contact-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-actions li {
	margin: 0;
	padding: 0;
}

.contact-actions a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.7rem 1rem;
	border: solid 1px rgba(74, 64, 54, 0.22);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.42);
	color: var(--rb-ink);
	font-size: 0.95rem;
	line-height: 1.2;
}

.contact-actions a:hover {
	border-color: var(--rb-accent);
	color: var(--rb-accent) !important;
}

@media screen and (max-width: 736px) {
	#intro {
		min-height: 58vh;
		padding: 3.5rem 1.5rem 1.75rem 1.5rem;
	}

	#intro + #header {
		margin-top: -8rem;
	}

	#header {
		height: 8rem;
		padding-bottom: 1.75rem;
	}

	#header .logo {
		font-size: 1.35rem;
		padding: 0.8rem 1rem;
	}

	#intro h1 {
		font-size: 2.5rem;
		line-height: 1.1;
	}

	#nav ul.links {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#nav ul.links li,
	#nav ul.links li.active {
		border-left: 0;
	}

	#nav ul.links li a {
		height: auto;
		min-height: 3.25rem;
		padding: 0.85rem 0.65rem;
		font-size: 0.72rem;
		line-height: 1.15;
	}

	#navPanel .links li a {
		letter-spacing: 0;
		text-transform: none;
	}

	.posts article .image.fit img {
		height: auto;
		max-height: none;
	}

	#main > .post {
		overflow: hidden;
	}

	.signature-image,
	.content-image {
		max-width: calc(100vw - 4rem);
	}

	.album-frame,
	.album-frame iframe {
		min-height: 78vh;
	}

	.jalbum-embed .bunchof.thumbnails {
		gap: 6px;
	}

	.jalbum-embed .image.card {
		width: 100% !important;
	}

	.jalbum-embed .thumb {
		height: auto !important;
	}

	.jalbum-embed .thumb img {
		height: auto;
	}

	.impressum-card {
		padding: 1.25rem;
	}

	.contact-lines > div {
		display: block;
	}

	.contact-lines dt {
		margin-bottom: 0.25rem;
	}

	#footer > .home-contact-card {
		padding: 2.25rem 1.5rem;
	}

	.home-contact-card h2 {
		font-size: 1.35rem;
	}

	.contact-actions {
		display: block;
	}

	.contact-actions li + li {
		margin-top: 0.75rem;
	}

	.contact-actions a {
		justify-content: center;
		width: 100%;
	}
}

@media screen and (max-width: 980px) {
	#main,
	#main > .post {
		max-width: 100vw;
	}

	#main > .post p,
	#main > .posts p {
		word-break: normal;
		hyphens: none;
	}
}
