/* =====================================================================
   Pavlína za foťákem – doplňkové styly šablony (Kubis Studio, 11/2026)
   Animace při scrollu, záložky, formulář, galerie portfolia, lightbox.
   ===================================================================== */

/* ---------- Animace při scrollu (dříve Elementor Interactions) ---------- */
[data-reveal] {
	transition-property: opacity, transform;
	transition-duration: 1300ms;
	transition-timing-function: cubic-bezier(0, 0, .58, 1);
}
html.js [data-reveal]:not(.is-revealed) {
	opacity: 0;
	transform: translateY(24px);
}
@media (prefers-reduced-motion: reduce) {
	html.js [data-reveal]:not(.is-revealed) { opacity: 1; transform: none; }
	[data-reveal] { transition: none; }
}

/* ---------- Záložky ve formuláři ---------- */
.e-tabs-base [role="tabpanel"]:not(.e--selected) { display: none !important; }

/* ---------- Formulář ---------- */
.e-form-base .message-success,
.e-form-base .message-error { display: none; }
.e-form-base.form-state-success .message-success,
.e-form-base.form-state-error .message-error { display: block; }
.e-form-base.form-state-sending [type="submit"] { opacity: .6; pointer-events: none; }
.pz-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px; height: 1px;
	overflow: hidden;
}

/* ---------- Galerie portfolia (zarovnané řady) ---------- */
.pz-widget-gallery { width: 100%; }
.pz-gallery {
	--h: var(--pz-h, 270px);
	--g: var(--pz-gap, 12px);
	display: flex;
	flex-wrap: wrap;
	gap: var(--g);
}
.pz-gallery::after { content: ""; flex-grow: 999999; }
.pz-gallery__item {
	position: relative;
	display: block;
	overflow: hidden;
	flex-basis: calc(var(--r) * var(--h));
	aspect-ratio: var(--r);
	background: #f2f2f2;
	cursor: zoom-in;
}
.pz-gallery__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 2000ms;
}
.pz-gallery__item:hover .pz-gallery__img,
.pz-gallery__item:focus-visible .pz-gallery__img { transform: scale(1.1); }
.pz-gallery.is-justified { display: block; position: relative; }
.pz-gallery.is-justified::after { content: none; }
.pz-gallery.is-justified > .pz-gallery__item { position: absolute; aspect-ratio: auto; }
@media (max-width: 1024px) {
	.pz-gallery { --h: var(--pz-h-t, 200px); --g: var(--pz-gap-t, 12px); }
}
@media (max-width: 767px) {
	.pz-gallery { --h: var(--pz-h-m, 160px); --g: var(--pz-gap-m, 7px); }
}

/* ---------- Lightbox ---------- */
.pz-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(255, 255, 255, .96);
	color: #111;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
	-webkit-user-select: none;
	touch-action: pan-y;
}
.pz-lightbox[hidden] { display: none; }
.pz-lightbox__stage {
	margin: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 70px;
	box-sizing: border-box;
	overflow: hidden;
}
.pz-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 0 30px rgba(0, 0, 0, .3), 0 0 8px -5px rgba(0, 0, 0, .3);
	transition: transform .3s, opacity .25s;
	cursor: zoom-in;
}
.pz-lightbox.is-loading .pz-lightbox__img { opacity: .3; }
.pz-lightbox.is-zoomed .pz-lightbox__img { transform: scale(2); cursor: zoom-out; }
.pz-lightbox__bar {
	position: absolute;
	top: 0; left: 0; right: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	padding: 10px 12px;
	z-index: 2;
}
.pz-lightbox__counter {
	margin-right: auto;
	padding-left: 12px;
	color: #6f6f6f;
	font-family: "Manrope","Manrope Fallback", sans-serif;
	font-size: 14px;
	letter-spacing: .05em;
}
.pz-lightbox button {
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 10px;
	margin: 0;
	color: #111;
	cursor: pointer;
	line-height: 0;
	transition: color .2s;
}
.pz-lightbox button:hover,
.pz-lightbox button:focus { background: transparent; color: #6f6f6f; }
.pz-lightbox button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pz-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
}
.pz-lightbox__nav svg { width: 34px !important; height: 34px !important; }
.pz-lightbox__prev { left: 10px; }
.pz-lightbox__next { right: 10px; }
html.pz-lightbox-open { overflow: hidden; }
@media (max-width: 767px) {
	.pz-lightbox__stage { padding: 56px 0; }
	.pz-lightbox__nav { top: auto; bottom: 8px; transform: none; }
}
/* ---------- Podmenu ve vodorovném menu (rozměry jako dříve SmartMenus) ---------- */
.pz-nav-menu--main .pz-nav-menu ul.sub-menu { width: auto; min-width: 10em; max-width: 1000px; top: auto; left: 0; margin-left: 0; z-index: 3; }
