:root {
	--ben-heft-ink: #211e1a;
	--ben-heft-muted: #746e65;
	--ben-heft-paper: #fffdf7;
	--ben-heft-white: #f8f8f6;
}

body.ben-heft-standalone {
	margin: 0 !important;
	padding: 0 !important;
	background: var(--ben-heft-white) !important;
	overflow: hidden;
}

body.ben-heft-has-reader .post-thumbnail,
body.ben-heft-has-reader .entry-thumbnail,
body.ben-heft-has-reader .featured-image,
body.ben-heft-has-reader .post-featured-image,
body.ben-heft-has-reader figure.wp-block-post-featured-image,
body.ben-heft-has-reader .entry-header > img.wp-post-image {
	display: none !important;
}

.admin-bar .ben-heft-reader--standalone {
	height: calc(100svh - 32px);
}

.ben-heft-main {
	margin: 0;
	padding: 0;
}

.ben-heft-reader,
.ben-heft-reader * {
	box-sizing: border-box;
}

.ben-heft-reader button,
.ben-heft-reader a {
	font: inherit;
}

.ben-heft-reader {
	--ben-spread-width: min(97vw, calc((100svh - 102px) * .92), 1150px);
	--ben-page-ratio: .92;
	--ben-book-max-height: calc(100svh - 102px);
	position: relative;
	isolation: isolate;
	width: 100%;
	min-height: 680px;
	height: 100svh;
	overflow: hidden;
	background:
		radial-gradient(ellipse at 48% 44%, rgba(80, 70, 58, .035), transparent 35%),
		repeating-linear-gradient(94deg, rgba(85, 76, 65, .012) 0 1px, transparent 1px 8px),
		linear-gradient(180deg, #fff 0%, #f6f5f1 100%);
	color: var(--ben-heft-ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ben-heft-reader:fullscreen,
.ben-heft-reader.is-pseudo-fullscreen,
.ben-heft-reader.is-media-open {
	position: fixed;
	inset: 0;
	z-index: 999999;
	width: 100vw;
	height: 100svh;
}

.ben-heft-reader__topbar {
	position: relative;
	z-index: 20;
	display: grid;
	grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr) minmax(120px, 1fr);
	align-items: center;
	height: 58px;
	padding: 0 clamp(16px, 3vw, 44px);
	border-bottom: 1px solid rgba(30, 28, 25, .08);
	background: rgba(255, 255, 255, .8);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.ben-heft-reader__home,
.ben-heft-reader__fullscreen {
	color: #35312c;
	font-size: 13px;
	font-weight: 650;
	letter-spacing: .035em;
	text-decoration: none;
}

.ben-heft-reader__home {
	justify-self: start;
}

.ben-heft-reader__home:hover {
	color: var(--ben-cover-color);
}

.ben-heft-reader__mini-title {
	overflow: hidden;
	color: #6e6860;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 14px;
	font-style: italic;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ben-heft-reader__fullscreen {
	justify-self: end;
	padding: 7px 12px;
	border: 1px solid rgba(33, 30, 26, .18);
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
}

.ben-heft-reader__fullscreen:hover {
	border-color: var(--ben-cover-color);
	color: var(--ben-cover-color);
}

.ben-heft-reader__fullscreen-close {
	display: none;
}

.ben-heft-reader:fullscreen .ben-heft-reader__fullscreen-open,
.ben-heft-reader.is-pseudo-fullscreen .ben-heft-reader__fullscreen-open {
	display: none;
}

.ben-heft-reader:fullscreen .ben-heft-reader__fullscreen-close,
.ben-heft-reader.is-pseudo-fullscreen .ben-heft-reader__fullscreen-close {
	display: inline;
}

.ben-heft-reader__stage {
	position: relative;
	display: grid;
	place-items: center;
	height: calc(100% - 58px);
	min-height: 622px;
	padding: 10px 0 56px;
	overflow: hidden;
	perspective: 1700px;
}

.ben-heft-reader__stage::before {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(ellipse at 23% 72%, rgba(63, 55, 46, .035), transparent 18%),
		radial-gradient(ellipse at 82% 25%, rgba(63, 55, 46, .025), transparent 16%),
		linear-gradient(104deg, transparent 0 48%, rgba(80, 70, 58, .018) 49%, transparent 50% 100%);
	content: "";
	pointer-events: none;
}

.ben-heft-reader__book-wrap {
	position: relative;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: var(--ben-spread-width);
}

.ben-heft-reader__book {
	position: relative;
	width: var(--ben-spread-width);
	height: auto;
	max-height: var(--ben-book-max-height);
	aspect-ratio: var(--ben-page-ratio);
	perspective: 1800px;
	filter: drop-shadow(0 22px 28px rgba(30, 24, 18, .16));
	transform-origin: center center;
	transition: transform .82s cubic-bezier(.18, .8, .2, 1), filter .55s ease;
	will-change: transform;
}

.ben-heft-reader:not(.is-open) .ben-heft-reader__book {
	filter: drop-shadow(13px 25px 19px rgba(48, 39, 30, .28));
	transform: translate(-8vw, 3.2vh) scale(.61) rotate(-5.5deg);
}

.ben-heft-reader.is-open .ben-heft-reader__book {
	filter: drop-shadow(0 22px 28px rgba(30, 24, 18, .16));
	transform: translate(0, 0) scale(1) rotate(0deg);
}

.ben-heft-cover {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 8;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transform-origin: left center;
	transition: transform .75s cubic-bezier(.2, .72, .18, 1), opacity .28s ease .34s;
	transform-style: preserve-3d;
}

.ben-heft-cover::before {
	position: absolute;
	top: 1.8%;
	right: -10px;
	bottom: 1.1%;
	left: 7px;
	z-index: -1;
	border-radius: 2px 10px 13px 3px;
	background:
		repeating-linear-gradient(90deg, #d8d0be 0 1px, #fff9e9 1px 3px),
		#eee6d4;
	box-shadow: 11px 18px 28px rgba(30, 24, 18, .24);
	clip-path: polygon(0 1%, 17% 0, 34% .8%, 55% .2%, 72% .9%, 100% 0, 99.2% 18%, 100% 39%, 99.4% 61%, 100% 82%, 98.8% 100%, 76% 99.1%, 56% 100%, 33% 99.2%, 12% 100%, 0 98.6%);
	content: "";
}

.ben-heft-cover::after {
	position: absolute;
	top: -.2%;
	right: -.4%;
	z-index: 12;
	width: 18%;
	height: 11%;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, .24), transparent 48%),
		linear-gradient(225deg, color-mix(in srgb, var(--ben-cover-color), #20150d 24%) 0 49%, #d7cbb5 50% 56%, transparent 57%);
	clip-path: polygon(0 0, 100% 0, 100% 100%);
	filter: drop-shadow(-5px 7px 4px rgba(33, 25, 17, .26));
	content: "";
	pointer-events: none;
	transform: rotate(1.4deg);
}

.ben-heft-cover__surface {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: clamp(30px, 5vw, 76px) clamp(24px, 4vw, 62px);
	overflow: hidden;
	border: 1px solid rgba(255, 243, 218, .2);
	border-radius: 3px 8px 10px 3px;
	background-color: var(--ben-cover-color);
	background-image:
		linear-gradient(145deg, rgba(255, 255, 255, .12), transparent 35%),
		radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .13), transparent 22%),
		linear-gradient(180deg, color-mix(in srgb, var(--ben-cover-color), #fff 7%), var(--ben-cover-color));
	background-position: center;
	background-size: cover;
	box-shadow:
		inset 11px 0 16px rgba(0, 0, 0, .22),
		inset -1px 0 rgba(255, 255, 255, .15),
		0 18px 30px rgba(30, 24, 18, .22);
	color: #fff9ec;
	text-align: center;
	clip-path: polygon(.6% .3%, 11% 1%, 25% .2%, 39% .8%, 57% .2%, 72% .9%, 88% .25%, 100% 1.1%, 99.4% 17%, 100% 33%, 99.3% 50%, 100% 67%, 99.5% 83%, 100% 99%, 84% 99.4%, 68% 100%, 51% 99.3%, 33% 100%, 17% 99.25%, .5% 100%, 0 82%, .6% 65%, 0 48%, .5% 29%, 0 12%);
}

.ben-heft-cover__surface::before {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(74deg, transparent 0 20%, rgba(255, 246, 222, .25) 20.4%, rgba(54, 36, 27, .19) 20.9%, transparent 21.5% 100%),
		linear-gradient(112deg, transparent 0 63%, rgba(255, 246, 222, .22) 63.4%, rgba(47, 31, 23, .16) 64%, transparent 64.7% 100%),
		linear-gradient(166deg, transparent 0 44%, rgba(38, 25, 18, .15) 44.4%, rgba(255, 244, 217, .18) 45%, transparent 45.7% 100%),
		radial-gradient(ellipse at 13% 14%, rgba(255, 246, 220, .2), transparent 17%),
		radial-gradient(ellipse at 86% 78%, rgba(44, 29, 21, .16), transparent 20%),
		repeating-linear-gradient(3deg, rgba(255, 255, 255, .018) 0 2px, rgba(20, 12, 8, .025) 2px 3px, transparent 3px 7px);
	content: "";
	mix-blend-mode: multiply;
	opacity: .72;
	pointer-events: none;
}

.ben-heft-cover__surface::after {
	position: absolute;
	inset: 12px 10px 11px 12px;
	z-index: 2;
	border: 1px solid rgba(255, 249, 236, .34);
	border-radius: 2px 6px 6px 2px;
	box-shadow:
		inset 0 0 0 1px rgba(32, 19, 13, .08),
		13px 17px 0 -14px rgba(255, 249, 236, .38),
		-8px -11px 0 -9px rgba(31, 20, 14, .2);
	content: "";
	pointer-events: none;
}

.ben-heft-cover__surface > span {
	z-index: 3;
}

.ben-heft-cover__eyebrow {
	margin-bottom: clamp(20px, 4vh, 48px);
	padding: .48em .72em .42em;
	border: 1px solid currentColor;
	background: rgba(32, 19, 13, .13);
	font-size: clamp(10px, .82vw, 13px);
	font-weight: 800;
	letter-spacing: .15em;
	text-transform: uppercase;
	transform: rotate(-1.5deg);
}

.ben-heft-cover__title {
	display: block;
	max-width: 95%;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(29px, 3.35vw, 54px);
	font-weight: 700;
	letter-spacing: -.025em;
	line-height: 1;
	text-wrap: balance;
	text-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.ben-heft-cover__subtitle {
	max-width: 90%;
	margin-top: clamp(14px, 2.2vh, 24px);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(14px, 1.2vw, 19px);
	font-style: italic;
	line-height: 1.35;
}

.ben-heft-cover__rule {
	width: 44px;
	height: 1px;
	margin: clamp(22px, 4vh, 42px) 0 18px;
	background: currentColor;
	opacity: .65;
}

.ben-heft-cover__author {
	font-size: clamp(12px, 1vw, 15px);
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.ben-heft-cover__open {
	position: absolute;
	right: 26px;
	bottom: 22px;
	padding: .5em .7em .42em;
	border: 1px solid currentColor;
	background: rgba(34, 21, 14, .16);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	opacity: .9;
	transform: rotate(1.4deg);
}

.ben-heft-reader.is-open .ben-heft-cover {
	opacity: 0;
	pointer-events: none;
	transform: translateX(-2%) rotateY(-104deg);
}

.ben-heft-pages {
	position: absolute;
	inset: 0;
	display: grid;
	z-index: 4;
	grid-template-columns: 1fr;
	visibility: hidden;
	opacity: 0;
	transform: scale(.985);
	transition: opacity .35s ease .24s, transform .5s ease .2s, visibility 0s linear .55s;
}

.ben-heft-reader.is-open .ben-heft-pages {
	visibility: visible;
	opacity: 1;
	transform: scale(1);
	transition-delay: .22s, .18s, 0s;
}

.ben-heft-reader.is-open .ben-heft-pages::after {
	display: none;
}

.ben-heft-page {
	position: relative;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	background:
		linear-gradient(90deg, rgba(50, 44, 35, .04), transparent 5%),
		radial-gradient(circle at 50% 15%, #fffef9, var(--ben-heft-paper) 72%);
	color: var(--ben-heft-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(15.5px, 1.15vw, 19px);
	line-height: 1.46;
	text-align: left;
	transform-style: preserve-3d;
	backface-visibility: hidden;
}

.ben-heft-page--left {
	border-radius: 8px;
	box-shadow: inset 7px 0 16px rgba(45, 37, 27, .05), 0 14px 28px rgba(30, 24, 18, .17);
}

.ben-heft-page--right {
	display: none;
}

.ben-heft-page.is-empty {
	visibility: hidden;
}

.ben-heft-page__inner {
	height: 100%;
	padding: clamp(30px, 3.1vw, 48px) clamp(32px, 3.4vw, 54px) clamp(36px, 3.7vw, 52px);
	overflow: hidden;
}

.ben-heft-page p,
.ben-heft-page blockquote,
.ben-heft-page h2,
.ben-heft-page h3,
.ben-heft-page ul,
.ben-heft-page ol {
	margin: 0 0 .9em;
}

.ben-heft-page p:last-child,
.ben-heft-page blockquote:last-child {
	margin-bottom: 0;
}

.ben-heft-page .ben-heft-lead {
	margin-bottom: 1.4em;
	font-size: 1.22em;
	font-style: italic;
	line-height: 1.4;
}

.ben-heft-page blockquote {
	padding: .25em 0 .25em 1.15em;
	border-left: 2px solid color-mix(in srgb, var(--ben-cover-color), #fff 25%);
	color: #48423a;
	font-style: italic;
}

.ben-heft-page blockquote p {
	margin-bottom: .65em;
}

.ben-heft-page__number {
	position: absolute;
	right: 30px;
	bottom: 17px;
	color: #918a7f;
	font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 10px;
	font-variant-numeric: tabular-nums;
	letter-spacing: .08em;
}

.ben-heft-page--left .ben-heft-page__number {
	right: auto;
	left: 30px;
}

.ben-heft-reader.is-turning-next .ben-heft-page--left {
	animation: ben-heft-turn-next .48s cubic-bezier(.4, 0, .2, 1);
	transform-origin: left center;
}

.ben-heft-reader.is-turning-prev .ben-heft-page--left {
	animation: ben-heft-turn-prev .48s cubic-bezier(.4, 0, .2, 1);
	transform-origin: right center;
}

@keyframes ben-heft-turn-next {
	0% { transform: rotateY(0deg); filter: brightness(1); }
	50% { transform: rotateY(-58deg); filter: brightness(.86); }
	100% { transform: rotateY(0deg); filter: brightness(1); }
}

@keyframes ben-heft-turn-prev {
	0% { transform: rotateY(0deg); filter: brightness(1); }
	50% { transform: rotateY(58deg); filter: brightness(.86); }
	100% { transform: rotateY(0deg); filter: brightness(1); }
}

.ben-heft-reader__controls {
	display: grid;
	grid-template-columns: 42px minmax(110px, auto) 42px;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	opacity: 0;
	pointer-events: none;
	transform: translateY(5px);
	transition: opacity .3s ease, transform .3s ease;
}

.ben-heft-reader.is-open .ben-heft-reader__controls {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.ben-heft-reader__prev,
.ben-heft-reader__next {
	display: grid;
	place-items: center;
	width: 42px;
	height: 36px;
	padding: 0;
	border: 1px solid rgba(30, 28, 25, .16);
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: #2c2823;
	font-size: 19px;
	cursor: pointer;
}

.ben-heft-reader__prev:hover,
.ben-heft-reader__next:hover {
	border-color: var(--ben-cover-color);
	color: var(--ben-cover-color);
}

.ben-heft-reader__prev:disabled,
.ben-heft-reader__next:disabled {
	opacity: .28;
	cursor: default;
}

.ben-heft-reader__counter {
	color: var(--ben-heft-muted);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	letter-spacing: .09em;
	text-align: center;
	text-transform: uppercase;
}

.ben-heft-reader__memories {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.ben-heft-memory {
	position: absolute;
	width: clamp(120px, 13.5vw, 220px);
	margin: 0;
	padding: clamp(5px, .55vw, 9px) clamp(5px, .55vw, 9px) clamp(18px, 2.1vw, 34px);
	background: #fff;
	box-shadow: 0 14px 28px rgba(29, 24, 19, .18), 0 2px 5px rgba(29, 24, 19, .12);
	transition: opacity .35s ease, filter .2s ease;
	pointer-events: auto;
}

.ben-heft-memory:hover {
	z-index: 2;
	filter: drop-shadow(0 7px 9px rgba(35, 29, 23, .18));
}

.ben-heft-memory__open {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.ben-heft-memory img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	filter: saturate(.92) contrast(1.02);
}

.ben-heft-memory--1 { top: 7%; right: 4%; transform: rotate(7deg); }
.ben-heft-memory--2 { bottom: 7%; left: 3%; transform: rotate(-7deg); }
.ben-heft-memory--3 { top: 9%; left: 2%; transform: rotate(-5deg); }
.ben-heft-memory--4 { right: 19%; bottom: 3%; transform: rotate(5deg); }
.ben-heft-memory--5 { top: 40%; left: -2.5%; transform: rotate(-2deg); }
.ben-heft-memory--6 { top: 42%; right: -2.2%; transform: rotate(3deg); }
.ben-heft-memory--7 { bottom: -4%; left: 14%; transform: rotate(-8deg); }
.ben-heft-memory--8 { right: 14%; bottom: -5%; transform: rotate(7deg); }

.ben-heft-reader.is-open .ben-heft-memory,
.ben-heft-reader.is-open .ben-heft-tablet,
.ben-heft-reader.is-open .ben-heft-audio {
	opacity: .14;
}

.ben-heft-tablet {
	position: absolute;
	width: clamp(170px, 17vw, 265px);
	margin: 0;
	padding: 9px 9px 7px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(145deg, #242424, #080808);
	box-shadow: 0 18px 34px rgba(18, 15, 12, .28), inset 0 0 0 1px rgba(255, 255, 255, .13);
	color: #fff;
	cursor: pointer;
	transition: opacity .3s ease, transform .2s ease;
	pointer-events: auto;
}

.ben-heft-tablet:hover {
	transform: scale(1.025) rotate(0deg);
}

.ben-heft-tablet--1 {
	right: 3.5%;
	bottom: 16%;
	transform: rotate(-6deg);
}

.ben-heft-tablet--2 {
	top: 38%;
	left: 2.5%;
	transform: rotate(5deg);
}

.ben-heft-tablet__screen {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 9px;
	background: #090909;
	aspect-ratio: 16 / 10;
}

.ben-heft-tablet__screen video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ben-heft-tablet__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding-left: 3px;
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: 50%;
	background: rgba(0, 0, 0, .58);
	font-size: 16px;
	transform: translate(-50%, -50%);
}

.ben-heft-tablet__label {
	display: block;
	overflow: hidden;
	margin: 6px 8px 1px;
	font-size: 10px;
	font-weight: 650;
	letter-spacing: .035em;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ben-heft-audio {
	position: absolute;
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	grid-template-rows: auto auto;
	gap: 5px 12px;
	align-items: center;
	width: clamp(190px, 18vw, 285px);
	min-height: 92px;
	padding: 13px 15px;
	border: 1px solid rgba(55, 42, 29, .24);
	border-radius: 7px;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, .55), transparent 32%),
		linear-gradient(145deg, #d8c4a6, #9d8264);
	box-shadow: 0 16px 28px rgba(30, 24, 18, .22), inset 0 0 0 2px rgba(255, 250, 235, .28);
	color: #2e251d;
	cursor: pointer;
	transition: opacity .3s ease, transform .2s ease;
	pointer-events: auto;
}

.ben-heft-audio:hover {
	transform: scale(1.025) rotate(0deg);
}

.ben-heft-audio--1 {
	bottom: 17%;
	left: 3.5%;
	transform: rotate(5deg);
}

.ben-heft-audio--2 {
	top: 16%;
	right: 3.5%;
	transform: rotate(-4deg);
}

.ben-heft-audio__speaker {
	display: grid;
	grid-row: 1 / 3;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 4px double rgba(48, 39, 30, .78);
	border-radius: 50%;
	background: repeating-radial-gradient(circle, #4a3e33 0 2px, #766453 3px 5px);
	color: #f3e4c7;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 22px;
}

.ben-heft-audio__lines {
	display: flex;
	align-items: end;
	gap: 4px;
	height: 25px;
}

.ben-heft-audio__lines i {
	display: block;
	width: 5px;
	border-radius: 3px;
	background: #4d3e30;
}

.ben-heft-audio__lines i:nth-child(1) { height: 45%; }
.ben-heft-audio__lines i:nth-child(2) { height: 100%; }
.ben-heft-audio__lines i:nth-child(3) { height: 68%; }

.ben-heft-audio__label {
	display: block;
	overflow: hidden;
	font-size: 10px;
	font-weight: 750;
	letter-spacing: .045em;
	text-align: left;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.ben-heft-lightbox[hidden] {
	display: none !important;
}

.ben-heft-lightbox__image[hidden],
.ben-heft-lightbox__video[hidden],
.ben-heft-lightbox__audio[hidden] {
	display: none !important;
}

.ben-heft-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	place-items: center;
	padding: 0;
	background: #050505;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.ben-heft-lightbox__content {
	display: grid;
	place-items: center;
	width: 100vw;
	height: 100svh;
	overflow: hidden;
}

.ben-heft-lightbox__image,
.ben-heft-lightbox__video {
	display: block;
	width: 100vw;
	height: 100svh;
	max-width: none;
	max-height: none;
	border-radius: 0;
	box-shadow: none;
	object-fit: contain;
}

.ben-heft-lightbox__video {
	background: #000;
	aspect-ratio: auto;
}

.ben-heft-lightbox__audio {
	display: flex;
	flex-direction: column;
	gap: 22px;
	width: min(720px, 90vw);
	padding: clamp(28px, 5vw, 58px);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 18px;
	background: linear-gradient(145deg, #3e332a, #171310);
	box-shadow: 0 28px 80px rgba(0, 0, 0, .5);
	color: #fff;
}

.ben-heft-lightbox__audio-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(22px, 4vw, 38px);
	line-height: 1.2;
	text-align: center;
}

.ben-heft-lightbox__audio-player {
	display: block;
	width: 100%;
}

.ben-heft-lightbox__close {
	position: absolute;
	top: max(14px, env(safe-area-inset-top));
	right: max(16px, env(safe-area-inset-right));
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .52);
	border-radius: 50%;
	background: rgba(0, 0, 0, .35);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.ben-heft-measure {
	position: fixed !important;
	top: 0 !important;
	left: -100000px !important;
	z-index: -100 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.ben-heft-noscript {
	max-width: 760px;
	margin: 30px auto;
	padding: 40px;
	background: #fff;
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.65;
}

@media (max-width: 1180px) {
	.ben-heft-reader {
		--ben-spread-width: min(95vw, calc((100svh - 108px) * .86), 980px);
		--ben-page-ratio: .86;
		--ben-book-max-height: calc(100svh - 108px);
	}

	.ben-heft-memory {
		width: 116px;
	}

	.ben-heft-memory--1 { top: 3%; right: 3%; left: auto; }
	.ben-heft-memory--2 { top: auto; bottom: 2%; left: 2%; }
	.ben-heft-memory--3 { top: 3%; left: 3%; }
	.ben-heft-memory--4 { right: 18%; bottom: 2%; }
	.ben-heft-memory:nth-child(n+5) { display: none; }

	.ben-heft-tablet {
		width: 170px;
	}

	.ben-heft-audio {
		width: 185px;
	}
}

@media (max-width: 900px) {
	.ben-heft-reader {
		--ben-spread-width: min(94vw, calc((100svh - 106px) * .82), 780px);
		--ben-page-ratio: .82;
		--ben-book-max-height: calc(100svh - 106px);
	}

	.ben-heft-reader__stage {
		padding-top: 8px;
	}

	.ben-heft-reader:not(.is-open) .ben-heft-reader__book {
		transform: translate(-3vw, 3vh) scale(.66) rotate(-5deg);
	}

	.ben-heft-cover {
		left: 0;
		width: 100%;
	}

	.ben-heft-pages {
		grid-template-columns: 1fr;
	}

	.ben-heft-reader.is-open .ben-heft-pages::after,
	.ben-heft-page--right {
		display: none;
	}

	.ben-heft-page--left {
		border-radius: 7px;
		box-shadow: 0 12px 25px rgba(30, 24, 18, .16), inset 7px 0 14px rgba(45, 37, 27, .05);
	}

	.ben-heft-page__inner {
		padding: clamp(28px, 5vw, 40px) clamp(24px, 5.5vw, 42px) clamp(36px, 6vw, 46px);
	}

	.ben-heft-page {
		font-size: clamp(14px, 2.1vw, 17px);
		line-height: 1.43;
	}

	.ben-heft-cover__title {
		font-size: clamp(32px, 7vw, 52px);
	}

	.ben-heft-reader__book-wrap {
		transform: none;
	}

	.ben-heft-memory {
		width: 92px;
		padding: 4px 4px 14px;
	}

	.ben-heft-memory--1 { top: 3%; right: 3%; left: auto; transform: rotate(6deg); }
	.ben-heft-memory--2 { top: auto; right: auto; bottom: 3%; left: 2%; transform: rotate(-6deg); }
	.ben-heft-memory--3,
	.ben-heft-memory--4 { display: none; }

	.ben-heft-tablet {
		width: 138px;
		padding: 6px 6px 5px;
		border-radius: 11px;
	}

	.ben-heft-tablet--1 {
		top: auto;
		right: 1.5%;
		bottom: 12%;
		left: auto;
	}

	.ben-heft-tablet--2 {
		top: 19%;
		right: auto;
		bottom: auto;
		left: 1.5%;
	}

	.ben-heft-audio {
		grid-template-columns: 42px minmax(0, 1fr);
		width: 162px;
		min-height: 76px;
		padding: 9px 10px;
	}

	.ben-heft-audio__speaker {
		width: 42px;
		height: 42px;
	}

	.ben-heft-audio--1 {
		bottom: 4%;
		left: 16%;
	}

	.ben-heft-audio--2 {
		display: none;
	}
}

@media (max-width: 680px) {
	.ben-heft-reader {
		--ben-spread-width: min(95vw, calc((100svh - 104px) * .78), 640px);
		--ben-page-ratio: .78;
		--ben-book-max-height: calc(100svh - 104px);
		min-height: 560px;
	}

	.ben-heft-reader__topbar {
		grid-template-columns: 44px minmax(0, 1fr) 44px;
		height: 52px;
		padding: 0 10px;
	}

	.ben-heft-reader__home,
	.ben-heft-reader__fullscreen {
		display: grid;
		place-items: center;
		width: 38px;
		height: 34px;
		padding: 0;
		border-radius: 50%;
	}

	.ben-heft-reader__home span,
	.ben-heft-reader__fullscreen span {
		font-size: 0;
	}

	.ben-heft-reader__fullscreen::before {
		content: "⛶";
		font-size: 18px;
	}

	.ben-heft-reader__home {
		font-size: 18px;
	}

	.ben-heft-reader__stage {
		height: calc(100% - 52px);
		min-height: 508px;
		padding-top: 10px;
		padding-bottom: 54px;
	}

	.ben-heft-reader__book-wrap {
		transform: none;
	}

	.ben-heft-reader__memories {
		display: block;
	}

	.ben-heft-reader:not(.is-open) .ben-heft-reader__book {
		transform: translate(0, 2.5vh) scale(.67) rotate(-4.5deg);
	}

	.ben-heft-memory {
		display: none;
		width: 84px;
		padding: 4px 4px 13px;
	}

	.ben-heft-memory--1 {
		top: 3%;
		right: auto;
		bottom: auto;
		left: 2%;
		display: block;
		transform: rotate(-7deg);
	}

	.ben-heft-tablet {
		display: none;
		width: 124px;
	}

	.ben-heft-tablet--1 {
		top: auto;
		right: 2%;
		bottom: 4%;
		left: auto;
		display: block;
		transform: rotate(6deg);
	}

	.ben-heft-audio {
		display: none;
		width: 142px;
	}

	.ben-heft-audio--1 {
		top: 4%;
		right: 2%;
		bottom: auto;
		left: auto;
		display: grid;
		transform: rotate(5deg);
	}

	.ben-heft-page {
		font-size: clamp(13.5px, 3.7vw, 15.5px);
		line-height: 1.42;
	}

	.ben-heft-page__inner {
		padding: 27px 22px 36px;
	}

	.ben-heft-cover__surface {
		padding: 42px 28px;
	}

	.ben-heft-cover__open {
		right: 20px;
		bottom: 19px;
	}

	.ben-heft-reader__controls {
		margin-top: 9px;
	}
}

@media (max-width: 782px) {
	.admin-bar .ben-heft-reader--standalone {
		height: calc(100svh - 46px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ben-heft-reader *,
	.ben-heft-reader *::before,
	.ben-heft-reader *::after {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
