/*
 * THH eBook Library — front end.
 * Everything is scoped under .thh-el / .thh-el-* so it cannot restyle
 * Elementor, Bookly, Hustle or theme elements. Buttons use "button.thh-el-b"
 * selectors so theme / Elementor kit button colours can't leak in.
 */

.thh-el {
	--thh-el-accent: #b05f2d;
	--thh-el-accent-dark: #8f4822;
	--thh-el-ink: #1e221a;
	--thh-el-muted: #6f6a60;
	--thh-el-line: #e6e1d6;
	--thh-el-cream: #faf8f3;
	--thh-el-font-heading: "Epilogue", system-ui, -apple-system, "Segoe UI", sans-serif;
	--thh-el-font-body: "Cormorant Garamond", Georgia, serif;
	--thh-el-reader-bg: #4a4a4a;
	--thh-el-bar-bg: #262626;
	box-sizing: border-box;
}
.thh-el *,
.thh-el *::before,
.thh-el *::after { box-sizing: inherit; }

.thh-el[hidden],
.thh-el [hidden] { display: none !important; }

.thh-el .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
	white-space: nowrap;
}

/* Button reset (beats the theme's `button` rules). Layout is reset on the base
   state only; hover/focus only neutralise the theme colours (Hello Elementor:
   button:hover { background-color:#c36; color:#fff }), so a button keeps its size,
   font and border while hovered. Each button below sets its own hover colours. */
.thh-el button.thh-el-b {
	appearance: none;
	margin: 0;
	padding: 0;
	min-height: 0;
	width: auto;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	line-height: 1;
	text-transform: none;
	text-decoration: none;
	white-space: normal;
	transition: none;
	cursor: pointer;
}
.thh-el button.thh-el-b:hover,
.thh-el button.thh-el-b:focus {
	background-color: transparent;
	color: inherit;
	text-decoration: none;
}
.thh-el button.thh-el-b:focus-visible,
.thh-el a:focus-visible {
	outline: 2px solid var(--thh-el-accent);
	outline-offset: 2px;
}
.thh-el svg { display: block; flex: none; }

/* ======================================================================
   Library
   ====================================================================== */

.thh-el-archive {
	max-width: 1760px;
	margin: 0 auto;
	padding: 56px 24px 80px;
}
.thh-el-archive .thh-el-archive__head {
	text-align: center;
	margin: 0 0 36px;
}
.thh-el-archive .thh-el-archive__title {
	margin: 0;
	font-family: "Epilogue", system-ui, sans-serif;
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 600;
	line-height: 1.2;
	color: #1e221a;
}
.thh-el-archive .thh-el-archive__intro {
	max-width: 720px;
	margin: 14px auto 0;
	font-size: 18px;
	color: #6f6a60;
}

.thh-el-library { width: 100%; }

.thh-el .thh-el-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 60px;
}
.thh-el .thh-el-search {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 1 430px;
	min-width: 220px;
	height: 46px;
	padding: 0 16px;
	margin: 0;
	background: #f1efea;
	border-radius: 8px;
	color: var(--thh-el-muted);
	cursor: text;
}
.thh-el .thh-el-search input.thh-el-search__input {
	flex: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	font-family: inherit;
	font-size: 16px;
	color: var(--thh-el-ink);
}
.thh-el .thh-el-filters { display: flex; flex: none; gap: 10px; }
.thh-el select.thh-el-select {
	width: auto;
	max-width: 100%;
	height: 46px;
	min-width: 130px;
	margin: 0;
	padding: 0 38px 0 14px;
	border: 1px solid var(--thh-el-line);
	border-radius: 8px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23555' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 14px center;
	appearance: none;
	font-family: inherit;
	font-size: 15px;
	color: var(--thh-el-ink);
	cursor: pointer;
}

/* Grid: CSS grid without JS, masonry columns once library.js runs. */
.thh-el .thh-el-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
	align-items: start;
}
.thh-el .thh-el-grid.is-masonry {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}
.thh-el .thh-el-grid__col {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.thh-el .thh-el-card {
	margin: 0;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(30, 34, 26, .08), 0 4px 14px rgba(30, 34, 26, .06);
	transition: transform .2s ease, box-shadow .2s ease;
}
.thh-el .thh-el-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 22px rgba(30, 34, 26, .14);
}
.thh-el a.thh-el-card__cover {
	display: block;
	background: var(--thh-el-cream);
}
.thh-el .thh-el-card__cover img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.thh-el .thh-el-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1.414;
	padding: 24px;
	background: linear-gradient(160deg, var(--thh-el-cream), #efe6d8);
	font-family: var(--thh-el-font-heading);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	color: var(--thh-el-accent);
}
.thh-el .thh-el-card__body { padding: 14px 14px 12px; }
.thh-el .thh-el-card__title {
	margin: 0 0 12px;
	padding: 0;
	font-family: var(--thh-el-font-heading);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
}
.thh-el .thh-el-card__title a,
.thh-el .thh-el-card__title a:hover {
	color: var(--thh-el-ink);
	text-decoration: none;
}
.thh-el .thh-el-card__title a:hover { color: var(--thh-el-accent); }
.thh-el .thh-el-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.thh-el .thh-el-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--thh-el-accent);
	color: #fff;
	font-family: var(--thh-el-font-heading);
	font-size: 13px;
	font-weight: 600;
}
.thh-el .thh-el-card__author {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 15px;
	color: var(--thh-el-muted);
}
/* Grid shows only the download icon (right aligned), no avatar / author. */
.thh-el .thh-el-card__meta { justify-content: flex-end; }
.thh-el .thh-el-avatar,
.thh-el .thh-el-card__author { display: none; }
.thh-el a.thh-el-card__dl,
.thh-el a.thh-el-card__dl:hover {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: var(--thh-el-muted);
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.thh-el a.thh-el-card__dl:hover { background: var(--thh-el-cream); color: var(--thh-el-accent); }
.thh-el a.thh-el-card__dl svg { width: 20px; height: 20px; }

.thh-el .thh-el-empty {
	padding: 40px 0;
	text-align: center;
	font-size: 18px;
	color: var(--thh-el-muted);
}

/* ======================================================================
   Book page (reader)
   ====================================================================== */

.thh-el-single {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: var(--thh-el-reader-bg);
}

.thh-el .thh-el-viewer {
	position: relative;
	display: flex;
	flex-direction: column;
	height: calc(100vh - 190px);
	height: calc(100svh - 190px);
	min-height: 460px;
	background: var(--thh-el-reader-bg);
	color: #fff;
	outline: none;
}
.thh-el .thh-el-viewer:fullscreen { height: 100vh; min-height: 0; }
.thh-el .thh-el-viewer:-webkit-full-screen { height: 100vh; min-height: 0; }

.thh-el .thh-el-stage {
	position: relative;
	flex: 1;
	min-height: 0;
	padding: 100px 76px 12px;
	overflow: hidden;
}
.thh-el .thh-el-book-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.thh-el .thh-el-book {
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0 auto;
	transition: transform .35s ease;
}

.thh-el .thh-el-page {
	background: #fff;
	overflow: hidden;
}
.thh-el .thh-el-page__inner {
	position: relative;
	width: 100%;
	height: 100%;
	background: #fff;
}
.thh-el .thh-el-page img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
}
.thh-el .thh-el-page__inner.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 28px;
	height: 28px;
	margin: -14px 0 0 -14px;
	border: 3px solid #e5e5e5;
	border-top-color: var(--thh-el-accent);
	border-radius: 50%;
	animation: thh-el-spin .8s linear infinite;
}

.thh-el button.thh-el-nav {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 120px;
	margin-top: -60px;
	border-radius: 6px;
	color: #fff;
	transition: background-color .15s ease, opacity .15s ease;
}
.thh-el button.thh-el-nav svg { width: 44px; height: 44px; }
.thh-el button.thh-el-nav:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.thh-el button.thh-el-nav:disabled { opacity: .25; cursor: default; background: transparent; }
.thh-el button.thh-el-nav--prev { left: 10px; }
.thh-el button.thh-el-nav--next { right: 10px; }

.thh-el .thh-el-status {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	font-size: 16px;
	color: #eee;
	text-align: center;
	pointer-events: none;
}
.thh-el .thh-el-status a { color: #fff; text-decoration: underline; pointer-events: auto; }
.thh-el .thh-el-spinner {
	width: 38px;
	height: 38px;
	border: 3px solid rgba(255, 255, 255, .25);
	border-top-color: #fff;
	border-radius: 50%;
	animation: thh-el-spin .8s linear infinite;
}
@keyframes thh-el-spin { to { transform: rotate(360deg); } }

.thh-el .thh-el-controls {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 24px 14px;
}
.thh-el .thh-el-counter {
	min-width: 76px;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	color: #fff;
	white-space: nowrap;
}
.thh-el input.thh-el-slider {
	flex: 1;
	height: 4px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	accent-color: #fff;
	cursor: pointer;
}
.thh-el button.thh-el-tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 6px;
	color: #fff;
}
.thh-el button.thh-el-tool:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* Zoom layer */
.thh-el .thh-el-zoom {
	position: absolute;
	inset: 0;
	z-index: 8;
	background: var(--thh-el-reader-bg);
}
.thh-el .thh-el-zoom__scroll {
	width: 100%;
	height: 100%;
	overflow: auto;
	cursor: grab;
}
.thh-el .thh-el-zoom__scroll.is-dragging { cursor: grabbing; }
.thh-el .thh-el-zoom__pages {
	display: flex;
	justify-content: center;
	width: max-content;
	min-width: 100%;
	padding: 24px;
}
.thh-el .thh-el-zoom__pages canvas {
	display: block;
	background: #fff;
	box-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}
.thh-el .thh-el-zoom__tools {
	position: absolute;
	top: 14px;
	right: 18px;
	display: flex;
	gap: 6px;
	padding: 4px;
	border-radius: 8px;
	background: rgba(0, 0, 0, .55);
}

/* Bottom bar */
.thh-el .thh-el-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	padding: 16px 36px;
	background: var(--thh-el-bar-bg);
	color: #fff;
}
.thh-el .thh-el-bar__info { min-width: 0; }
.thh-el .thh-el-bar__title {
	margin: 0;
	padding: 0;
	font-family: var(--thh-el-font-heading);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: #fff;
}
.thh-el .thh-el-bar__date {
	margin: 4px 0 0;
	padding: 0;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 14px;
	line-height: 1.4;
	color: #b8b8b8;
}
.thh-el .thh-el-bar__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}
.thh-el button.thh-el-bar__btn,
.thh-el a.thh-el-bar__btn,
.thh-el a.thh-el-bar__btn:hover {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 18px;
	border-radius: 8px;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	color: #fff;
	text-decoration: none;
	transition: background-color .15s ease;
}
.thh-el button.thh-el-bar__btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.thh-el button.thh-el-bar__btn svg,
.thh-el a.thh-el-bar__btn svg { width: 20px; height: 20px; }
.thh-el a.thh-el-bar__btn--primary,
.thh-el a.thh-el-bar__btn--primary:hover {
	background: var(--thh-el-accent);
	color: #fff;
}
.thh-el a.thh-el-bar__btn--primary:hover { background: var(--thh-el-accent-dark); }

.thh-el .thh-el-about {
	padding: 28px 36px 40px;
	background: #fff;
	font-size: 18px;
	line-height: 1.6;
	color: var(--thh-el-ink);
}
.thh-el .thh-el-about > *:last-child { margin-bottom: 0; }

.thh-el .thh-el-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 100001;
	padding: 10px 18px;
	border-radius: 8px;
	background: #111;
	color: #fff;
	font: 500 14px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
	transform: translateX(-50%);
	pointer-events: none;
}

/* ======================================================================
   Download popup (matches the site's Hustle popup look)
   ====================================================================== */

html.thh-el-modal-open,
html.thh-el-modal-open body { overflow: hidden; }

.thh-el-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.thh-el .thh-el-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(30, 34, 26, .55);
	backdrop-filter: blur(2px);
	animation: thh-el-fade .2s ease;
}
.thh-el .thh-el-modal__box {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 40px 36px 34px;
	background: #fff;
	border: 1px solid var(--thh-el-line);
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(30, 34, 26, .18), 0 4px 14px rgba(30, 34, 26, .08);
	color: #000;
	text-align: center;
	animation: thh-el-pop .22s ease;
}
@keyframes thh-el-fade { from { opacity: 0; } }
@keyframes thh-el-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.thh-el button.thh-el-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--thh-el-line);
	border-radius: 50%;
	background: var(--thh-el-cream);
	color: #000;
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.thh-el button.thh-el-modal__close:hover,
.thh-el button.thh-el-modal__close:focus {
	border-color: var(--thh-el-accent);
	background: var(--thh-el-accent);
	color: #fff;
	transform: rotate(90deg);
}
.thh-el .thh-el-modal__close svg { width: 14px; height: 14px; }

.thh-el .thh-el-modal__cover { margin: 0 auto 18px; }
.thh-el .thh-el-modal__cover img {
	display: block;
	width: 96px;
	height: auto;
	margin: 0 auto;
	border-radius: 4px;
	box-shadow: 0 6px 18px rgba(30, 34, 26, .18);
}
.thh-el .thh-el-modal__title {
	margin: 0 0 6px;
	padding: 0;
	font-family: var(--thh-el-font-heading);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
	color: var(--thh-el-accent);
}
.thh-el .thh-el-modal__book {
	margin: 0 0 10px;
	font-family: var(--thh-el-font-heading);
	font-size: 15px;
	font-weight: 500;
	color: var(--thh-el-ink);
}
.thh-el .thh-el-modal__book:empty { display: none; }
.thh-el .thh-el-modal__text {
	margin: 0;
	font-family: var(--thh-el-font-body);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: .3px;
	color: #000;
}
.thh-el .thh-el-modal__divider {
	display: block;
	width: 42px;
	height: 2px;
	margin: 18px auto 20px;
	background: var(--thh-el-accent);
}

.thh-el .thh-el-form { margin: 0; text-align: left; }
.thh-el .thh-el-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.thh-el .thh-el-field {
	position: relative;
	display: block;
	margin: 0 0 14px;
}
.thh-el .thh-el-field__icon {
	position: absolute;
	top: 50%;
	left: 16px;
	color: #777;
	transform: translateY(-50%);
	pointer-events: none;
}
.thh-el input.thh-el-input {
	display: block;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 16px 0 46px;
	border: 1.5px solid var(--thh-el-line);
	border-radius: 8px;
	background: var(--thh-el-cream);
	box-shadow: none;
	outline: none;
	font-family: var(--thh-el-font-body);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: .5px;
	line-height: normal;
	color: #000;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.thh-el input.thh-el-input::placeholder { color: #777; opacity: 1; }
.thh-el input.thh-el-input:focus {
	border-color: var(--thh-el-accent);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(176, 95, 45, .12);
}
.thh-el input.thh-el-input.is-invalid { border-color: #c0392b; }

.thh-el .thh-el-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 14px;
	font-family: var(--thh-el-font-body);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: #333;
	cursor: pointer;
}
.thh-el .thh-el-consent input {
	flex: none;
	width: 17px;
	height: 17px;
	margin: 2px 0 0;
	accent-color: var(--thh-el-accent);
}
.thh-el .thh-el-captcha { display: flex; justify-content: center; margin: 0 0 12px; }
.thh-el .thh-el-captcha:empty { display: none; }
.thh-el .thh-el-msg {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 6px;
	background: #fdecea;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 14px;
	line-height: 1.4;
	color: #a1271b;
}

.thh-el button.thh-el-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 52px;
	padding: 0 18px;
	border-radius: 8px;
	background: var(--thh-el-accent);
	box-shadow: 0 6px 16px rgba(176, 95, 45, .25);
	color: #fff;
	font-family: var(--thh-el-font-heading);
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: background-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.thh-el button.thh-el-submit:hover,
.thh-el button.thh-el-submit:focus {
	background: var(--thh-el-accent-dark);
	box-shadow: 0 8px 20px rgba(176, 95, 45, .3);
	color: #fff;
}
.thh-el button.thh-el-submit:active { transform: translateY(1px); }
.thh-el button.thh-el-submit:disabled { opacity: .7; cursor: wait; }

.thh-el .thh-el-modal__success { padding: 8px 0 4px; }
.thh-el .thh-el-modal__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 0 16px;
	border: 2px solid var(--thh-el-accent);
	border-radius: 50%;
	color: var(--thh-el-accent);
}
.thh-el .thh-el-modal__success-text {
	margin: 0;
	font-family: var(--thh-el-font-body);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.5;
	color: #000;
}

/* ======================================================================
   Responsive
   ====================================================================== */

@media (max-width: 1024px) {
	.thh-el .thh-el-stage { padding: 18px 60px 10px; }
	.thh-el button.thh-el-nav { width: 44px; }
	.thh-el button.thh-el-nav svg { width: 36px; height: 36px; }
}

@media (max-width: 767px) {
	.thh-el-archive { padding: 36px 16px 56px; }
	.thh-el .thh-el-search { flex: 1 1 100%; }
	.thh-el .thh-el-filters { flex: 1 1 100%; }
	.thh-el select.thh-el-select { flex: 1; min-width: 0; }
	.thh-el .thh-el-grid,
	.thh-el .thh-el-grid.is-masonry,
	.thh-el .thh-el-grid__col { gap: 14px; }
	.thh-el .thh-el-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.thh-el .thh-el-card__body { padding: 10px 10px 8px; }
	.thh-el .thh-el-card__title { font-size: 15px; margin-bottom: 8px; }
	.thh-el .thh-el-card__author { font-size: 13px; }
	.thh-el .thh-el-avatar { width: 22px; height: 22px; font-size: 11px; }

	.thh-el .thh-el-viewer {
		height: calc(100vh - 230px);
		height: calc(100svh - 230px);
		min-height: 380px;
	}
	.thh-el .thh-el-stage { padding: 50px 8px 6px; }
	.thh-el button.thh-el-nav {
		width: 36px;
		height: 64px;
		margin-top: -32px;
		background: rgba(0, 0, 0, .35);
	}
	.thh-el button.thh-el-nav:hover { background: rgba(0, 0, 0, .5); }
	.thh-el button.thh-el-nav svg { width: 28px; height: 28px; }
	.thh-el button.thh-el-nav--prev { left: 4px; }
	.thh-el button.thh-el-nav--next { right: 4px; }
	.thh-el .thh-el-controls { gap: 8px; padding: 6px 12px 10px; }
	.thh-el .thh-el-counter { min-width: 60px; font-size: 13px; }

	.thh-el .thh-el-bar { padding: 50px 16px; }
	.thh-el .thh-el-bar__info { flex: 1 1 100%; }
	.thh-el .thh-el-bar__title { font-size: 18px; }
	.thh-el .thh-el-bar__actions { flex: 1 1 100%; }
	.thh-el a.thh-el-bar__btn--primary { flex: 1; justify-content: center; }
	.thh-el .thh-el-about { padding: 22px 16px 32px; font-size: 16px; }

	.thh-el .thh-el-modal__box { padding: 34px 22px 26px; border-radius: 12px; }
	.thh-el .thh-el-modal__title { font-size: 23px; }
	.thh-el .thh-el-modal__text { font-size: 16px; }
	.thh-el input.thh-el-input { height: 50px; font-size: 16px; }
	.thh-el button.thh-el-submit { height: 50px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.thh-el *,
	.thh-el *::before,
	.thh-el *::after { animation: none !important; transition: none !important; }
}
