/* Hora: mockups sit on the real page background (banner / sections).
   No extra card — PNG alpha shows through to whatever is behind it. */

figure.hora-mockup {
	margin: 0;
	display: inline-block;
	line-height: 0;
	background: transparent;
	border: none;
	padding: 0;
	box-shadow: none;
	border-radius: 0;
}

figure.hora-mockup img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 0;
	background: transparent;
	/* drop-shadow respects PNG alpha — reads as depth under the device */
	filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.42)) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.28));
	transition: filter 0.35s ease;
}

/*
 * Hero mockup: size from column (100% + rem max), not vw — vw tracks full viewport so
 * a 3840px screen looked “different” from 1080p even inside the same max-width container.
 */
#banner.banner figure.hora-mockup,
#banner.banner .lqd-imggrp-img-container,
#banner.banner .lqd-imggrp-single {
	overflow: visible;
}

/*
 * Hero phone column: template ships .module-img.pt-20percent (padding-top: 20% of column width) and
 * slight translateY / transform-origin tweaks for optical “float”. That pushes the device down vs the
 * headline column. From md up, center the mockup stack in the hero row.
 */
@media (min-width: 768px) {
	#banner.banner .module-img.pt-20percent {
		padding-top: 0 !important;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		min-height: 0;
	}

	#banner.banner .module-img > .lqd-imggrp-container {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
	}

	#banner.banner .module-img .lqd-imggrp-inner {
		justify-content: center !important;
	}

	#banner.banner .lqd-imggrp-single.-mb-10percent {
		margin-bottom: 0 !important;
	}

	#banner.banner figure.hora-mockup:has(> img.hora-hero-device) {
		transform-origin: center center;
	}

	#banner.banner figure.hora-mockup img.hora-hero-device {
		transform: translateY(0);
		transform-origin: center center;
	}
}

/* Hero only: column width often caps img max-width — scaling the figure still reads on-screen (+10% vs template 1.12) */
#banner.banner figure.hora-mockup:has(> img.hora-hero-device) {
	transform: scale(1.232);
	transform-origin: center center;
}

figure.hora-mockup img.hora-hero-device {
	display: block;
	width: auto;
	max-width: min(100%, 25rem);
	max-height: min(66vh, 440px);
	height: auto;
	object-fit: contain;
	transform: translateY(-4%);
	transform-origin: top center;
}

@media (min-width: 992px) {
	figure.hora-mockup img.hora-hero-device {
		max-width: min(100%, 28rem);
		max-height: min(74vh, 520px);
	}
}

@media (min-width: 1200px) {
	figure.hora-mockup img.hora-hero-device {
		max-width: min(100%, 31rem);
		max-height: min(78vh, 580px);
	}
}

@media (max-width: 991px) {
	#banner.banner figure.hora-mockup:has(> img.hora-hero-device) {
		transform: scale(1.166);
	}

	figure.hora-mockup img.hora-hero-device {
		max-width: min(100%, 22rem);
		max-height: min(62vh, 400px);
		transform: translateY(-2%);
	}
}

@media (max-width: 767px) {
	#banner.banner .module-img.pt-20percent {
		padding-top: 0 !important;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
	}

	#banner.banner .module-img > .lqd-imggrp-container,
	#banner.banner .module-img .lqd-imggrp-inner {
		display: flex;
		align-items: center;
		justify-content: center !important;
		width: 100%;
	}

	#banner.banner .module-img .lqd-imggrp-single {
		display: flex;
		justify-content: center;
		width: 100%;
	}

	#banner.banner figure.hora-mockup:has(> img.hora-hero-device) {
		position: relative;
		left: 50%;
		transform: translateX(-50%) scale(1.08);
		margin-left: auto;
		margin-right: auto;
	}
}

body[data-theme="light"] figure.hora-mockup img {
	filter: drop-shadow(0 18px 42px rgba(15, 23, 42, 0.14)) drop-shadow(0 8px 20px rgba(15, 23, 42, 0.1));
}

body[data-theme="light"] figure.hora-mockup img.hora-hero-device {
	filter: drop-shadow(0 0 32px rgba(15, 23, 42, 0.08)) drop-shadow(0 20px 48px rgba(15, 23, 42, 0.12))
		drop-shadow(0 8px 20px rgba(15, 23, 42, 0.1));
}

body[data-theme="dark"] figure.hora-mockup img {
	filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.12)) drop-shadow(0 16px 40px rgba(0, 0, 0, 0.62))
		drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}

body[data-theme="dark"] figure.hora-mockup img.hora-hero-device {
	filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.1)) drop-shadow(0 0 34px rgba(255, 255, 255, 0.045))
		drop-shadow(0 16px 40px rgba(0, 0, 0, 0.58)) drop-shadow(0 7px 16px rgba(0, 0, 0, 0.42));
}

/* Gallery — carousel: two mockups per “page”, large chevron nav */
section.hora-gallery {
	overflow-x: visible;
	overflow-y: visible;
}

.hora-gallery__carousel {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(6px, 2vw, 18px);
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding: 8px clamp(2px, 1.5vw, 12px);
}

.hora-gallery__viewport {
	flex: 0 0 auto;
	min-width: 0;
	overflow: hidden;
	margin-inline: auto;
	/* Exact width set in JS: two slides + gap — never shows a third screen */
	border-radius: 0;
}

.hora-gallery__track {
	display: flex;
	align-items: flex-start;
	gap: var(--hora-gallery-gap, 24px);
	opacity: 1;
	/* Page change: crossfade only — translate updates while opacity is 0 */
	transition: opacity 0.32s ease;
	will-change: opacity;
}

@media (prefers-reduced-motion: reduce) {
	.hora-gallery__track {
		transition: none !important;
	}

	#lqd-particles-banner {
		display: none !important;
	}
}

/* Chevron-only controls (no pill / glass container) */
.hora-gallery__nav {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	min-width: 48px;
	min-height: 48px;
	padding: 10px;
	margin: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	color: var(--hora-text, #f8fafc);
	box-shadow: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.hora-gallery__nav:hover:not(:disabled) {
	opacity: 0.88;
}

.hora-gallery__nav:active:not(:disabled) {
	opacity: 0.72;
}

.hora-gallery__nav:disabled {
	opacity: 0.28;
	cursor: not-allowed;
}

.hora-gallery__nav:focus-visible {
	outline: 2px solid var(--hora-text, #f8fafc);
	outline-offset: 4px;
}

.hora-gallery__nav svg {
	display: block;
	width: 52px;
	height: 52px;
	flex-shrink: 0;
}

@media (min-width: 768px) {
	.hora-gallery__nav svg {
		width: 60px;
		height: 60px;
	}
}

/* Light marketing page: chevrons stay slate (template button styles can still read “dark UI”) */
body[data-theme="light"] .hora-gallery__nav {
	color: #0f172a;
}

body[data-theme="light"] .hora-gallery__nav:focus-visible {
	outline-color: #0f172a;
}

.hora-gallery__track .hora-gallery__cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	flex: 0 0 var(--hora-gallery-slide, 280px);
	width: var(--hora-gallery-slide, 280px);
	max-width: var(--hora-gallery-slide, 280px);
	text-decoration: none;
	color: inherit;
	border-radius: 12px;
	padding: 20px 20px 24px;
	border: none;
	box-shadow: none;
	background: transparent;
	box-sizing: border-box;
	transition: transform 0.25s ease;
}

.hora-gallery__cell:hover {
	transform: translateY(-4px);
}

.hora-gallery__cell:focus-visible {
	outline: 2px solid var(--hora-card-outline, rgba(148, 163, 184, 0.55));
	outline-offset: 4px;
}

figure.hora-mockup.hora-gallery__mock {
	width: 100%;
	max-width: 100%;
}

figure.hora-mockup.hora-gallery__mock img.hora-gallery-device {
	width: 100%;
	height: auto;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	transform: none;
	filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.14)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.08));
	transition: filter 0.3s ease;
}

body[data-theme="light"] figure.hora-mockup.hora-gallery__mock img.hora-gallery-device {
	filter: drop-shadow(0 0 10px rgba(15, 23, 42, 0.03)) drop-shadow(0 6px 12px rgba(15, 23, 42, 0.045))
		drop-shadow(0 2px 5px rgba(15, 23, 42, 0.03));
}

body[data-theme="dark"] figure.hora-mockup.hora-gallery__mock img.hora-gallery-device {
	filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.04)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.02))
		drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.12));
}

.hora-gallery__cell:hover figure.hora-mockup.hora-gallery__mock img.hora-gallery-device {
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18)) drop-shadow(0 3px 7px rgba(0, 0, 0, 0.11));
}

body[data-theme="dark"] .hora-gallery__cell:hover figure.hora-mockup.hora-gallery__mock img.hora-gallery-device {
	filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.05)) drop-shadow(0 0 24px rgba(255, 255, 255, 0.025))
		drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22)) drop-shadow(0 3px 7px rgba(0, 0, 0, 0.14));
}

body[data-theme="light"] .hora-gallery__cell:hover figure.hora-mockup.hora-gallery__mock img.hora-gallery-device {
	filter: drop-shadow(0 0 14px rgba(15, 23, 42, 0.04)) drop-shadow(0 8px 16px rgba(15, 23, 42, 0.06))
		drop-shadow(0 3px 7px rgba(15, 23, 42, 0.045));
}

.hora-gallery__caption {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hora-subtle, rgba(248, 250, 252, 0.72));
}

body[data-theme="light"] .hora-gallery__caption {
	color: var(--hora-subtle, rgba(15, 23, 42, 0.72));
}

/* In-page mockup lightbox viewer */
.hora-image-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(18px, 4vw, 40px);
	background: rgba(0, 0, 0, 0.84);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.24s ease, visibility 0.24s ease;
}

.hora-image-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.hora-image-lightbox__close {
	position: absolute;
	top: clamp(12px, 2.4vw, 24px);
	right: clamp(12px, 2.4vw, 24px);
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.hora-image-lightbox__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.hora-image-lightbox__content {
	max-width: min(96vw, 1320px);
	max-height: min(92vh, 1200px);
	transform: scale(0.92);
	opacity: 0;
	transition: transform 0.24s ease, opacity 0.24s ease;
}

.hora-image-lightbox.is-open .hora-image-lightbox__content {
	transform: scale(1);
	opacity: 1;
}

.hora-image-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: min(92vh, 1200px);
	width: auto;
	height: auto;
	object-fit: contain;
}

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

body.hora-lightbox-open .hora-top-bar {
	opacity: 0.48;
	pointer-events: none;
	transition: opacity 0.2s ease;
}
