/*
 * Hero slider – wygląd Ludzie Tego Miasta (jak hero na onepage'u):
 * tytuł fontem Zakład, treść Cyrulikiem, napisy bez tła z cieniem,
 * złote kropki. Tło pod napisami można włączyć w ustawieniach bloku
 * lub osobno dla slajdu.
 */
.ltm-hero-wrap {
	width: 100%;
	margin: 0;
}

.ltm-hero-slider {
	position: relative;
	width: 100%;
	background: var( --ltm-black, #111 );
}

.ltm-hero-viewport {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: var( --ltm-hero-height, 70vh );
	min-height: 420px;
	user-select: none;
	-webkit-user-select: none;
}

/* Slajdy leżą jeden na drugim; widoczny jest tylko aktywny. */
.ltm-hero-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: var( --ltm-ink, #1c1b19 );
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 120px;
	opacity: 0;
	visibility: hidden;
	transform: scale( 1.04 );
	transition: opacity 0.9s ease, transform 6s ease, visibility 0s linear 0.9s;
	pointer-events: none;
	z-index: 0;
}

.ltm-hero-slide.ltm-hero-slide--active {
	opacity: 1;
	visibility: visible;
	transform: scale( 1 );
	transition: opacity 0.9s ease, transform 6s ease, visibility 0s;
	pointer-events: auto;
	z-index: 1;
}

/* Przyciemnienie zdjęcia (ustawiane osobno dla slajdu, 0–80%). */
.ltm-hero-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #000;
	opacity: var( --ltm-hero-dim, 0 );
	pointer-events: none;
}

.ltm-hero-caption {
	position: relative;
	width: 100%;
	max-width: 1180px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin: 0 auto;
	color: var( --ltm-hero-caption-color, #fff );
	text-shadow: 0 2px 12px rgba( 0, 0, 0, 0.75 ), 0 1px 3px rgba( 0, 0, 0, 0.6 );
}

.ltm-hero-slide[data-align="left"] .ltm-hero-caption {
	align-items: flex-start;
	text-align: left;
}

.ltm-hero-slide[data-align="right"] .ltm-hero-caption {
	align-items: flex-end;
	text-align: right;
}

.ltm-hero-title {
	display: inline-block;
	max-width: 14ch;
	font-family: var( --ltm-font-display ) !important;
	font-weight: 400 !important;
	font-size: clamp( 2.6rem, 6.5vw, 5.6rem );
	line-height: 1;
	color: inherit;
	text-decoration: none;
	margin: 0 0 14px;
	opacity: 0;
	transform: translateY( 24px );
}

.ltm-hero-content {
	display: inline-block;
	max-width: 40ch;
	font-family: var( --ltm-font-text ) !important;
	font-weight: 400 !important;
	font-size: clamp( 1.05rem, 1.6vw, 1.35rem );
	line-height: 1.5;
	color: inherit;
	text-decoration: none;
	opacity: 0;
	transform: translateY( 24px );
}

a.ltm-hero-title,
a.ltm-hero-content {
	cursor: pointer;
}

a.ltm-hero-title:hover {
	color: var( --ltm-gold, #b8975a );
}

/* Tło pod napisami – tylko gdy wybrano kolor (blok lub slajd). */
.has-caption-bg .ltm-hero-title,
.has-caption-bg .ltm-hero-content {
	background: var( --ltm-hero-caption-bg );
	text-shadow: none;
	padding: 12px 24px;
	margin-bottom: 4px;
}

@keyframes ltm-hero-fade-up {
	from {
		opacity: 0;
		transform: translateY( 24px );
	}
	to {
		opacity: 1;
		transform: translateY( 0 );
	}
}

.ltm-hero-slide.ltm-hero-slide--active .ltm-hero-title {
	animation: ltm-hero-fade-up 0.7s ease forwards;
	animation-delay: 0.15s;
}

.ltm-hero-slide.ltm-hero-slide--active .ltm-hero-content {
	animation: ltm-hero-fade-up 0.7s ease forwards;
	animation-delay: 0.4s;
}

.ltm-hero-button {
	display: inline-block;
	margin-top: 22px;
	padding: 12px 26px;
	border: 2px solid var( --ltm-gold, #b8975a );
	background: var( --ltm-gold, #b8975a );
	color: var( --ltm-black, #111 );
	font-family: var( --ltm-font-text ) !important;
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	text-shadow: none;
	opacity: 0;
	transform: translateY( 24px );
	transition: background 0.2s ease, color 0.2s ease;
}

.ltm-hero-button:hover {
	background: transparent;
	color: var( --ltm-gold, #b8975a );
}

.ltm-hero-slide.ltm-hero-slide--active .ltm-hero-button {
	animation: ltm-hero-fade-up 0.7s ease forwards;
	animation-delay: 0.65s;
}

.ltm-hero-dots {
	position: absolute;
	left: 50%;
	bottom: 22px;
	transform: translateX( -50% );
	z-index: 3;
	display: flex;
	gap: 10px;
}

.ltm-hero-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	border: 2px solid #fff;
	padding: 0;
	background: transparent;
	cursor: pointer;
	filter: drop-shadow( 0 1px 4px rgba( 0, 0, 0, 0.4 ) );
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ltm-hero-dot:hover {
	transform: scale( 1.15 );
}

.ltm-hero-dot.is-active {
	background: var( --ltm-gold, #b8975a );
	border-color: var( --ltm-gold, #b8975a );
}

.ltm-hero-nav {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	z-index: 3;
	width: 56px;
	height: 56px;
	border: none;
	background: transparent;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	filter: drop-shadow( 0 1px 6px rgba( 0, 0, 0, 0.5 ) );
	transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.ltm-hero-nav svg {
	width: 42px;
	height: 42px;
	display: block;
}

.ltm-hero-nav:hover:not( :disabled ) {
	color: var( --ltm-gold, #b8975a );
	transform: translateY( -50% ) scale( 1.1 );
}

.ltm-hero-nav:disabled {
	opacity: 0.3;
	cursor: default;
}

.ltm-hero-prev {
	left: 16px;
}

.ltm-hero-next {
	right: 16px;
}

@media ( prefers-reduced-motion: reduce ) {
	.ltm-hero-slide,
	.ltm-hero-slide.ltm-hero-slide--active {
		transform: none;
		transition: opacity 0.3s ease, visibility 0s;
	}
}

/* Tablet */
@media ( max-width: 900px ) {
	.ltm-hero-slide {
		padding: 0 72px;
	}
}

/* Mobile */
@media ( max-width: 600px ) {
	.ltm-hero-viewport {
		min-height: 380px;
	}
	.ltm-hero-slide {
		padding: 0 20px 40px;
	}
	.ltm-hero-nav {
		display: none;
	}
	.has-caption-bg .ltm-hero-title,
	.has-caption-bg .ltm-hero-content {
		padding: 8px 14px;
	}
}
