/* Full-width hero / slideshow (one slide visible). */
.dlp-hero {
	position: relative;
	width: 100%;
	overflow: hidden;
	--dlp-hero-frame-height: min(70vh, 520px);
}

.dlp-hero-viewport {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.dlp-hero-viewport ul,
.dlp-hero-track {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.dlp-hero-track {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	transition: transform 0.5s ease;
}

.dlp-hero-track .dlp-item {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: none !important;
	background: transparent !important;
	border-radius: 0;
}

/* Fixed frame: same size per slide, full image (no crop) */
.dlp-hero .dlp-item > a,
.dlp-hero .dlp-hero-media,
.dlp-hero .dlp-item .dlp-img-container {
	aspect-ratio: unset !important;
	flex: 0 0 auto !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: var(--dlp-hero-frame-height);
	max-height: var(--dlp-hero-frame-height);
	overflow: hidden;
	line-height: 0;
	background: color-mix(in srgb, var(--dh-surface, var(--lp-surface, #111)) 12%, transparent);
}

.dlp-hero .dlp-item .dlp-img-container {
	position: relative;
	width: 100%;
	height: 100%;
}

.dlp-hero .dlp-item img,
.dlp-hero .dlp-item .dlp-image {
	aspect-ratio: unset !important;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: center center;
	margin: 0 auto;
	border-radius: 0;
	transition: transform 0.35s ease;
	transform: scale(1);
	will-change: transform;
}

.dlp-hero .dlp-hero-media:hover .dlp-image,
.dlp-hero .dlp-item > a:hover .dlp-image,
.dlp-hero .dlp-item > a:hover .dlp-img-container .dlp-image {
	transform: scale(1.03);
}

.dlp-hero .dlp-item > a:hover .dlp-img-container {
	transform: scale(1.03);
	transition: transform 0.35s ease;
}

.dlp-hero .dlp-item > a .dlp-img-container .dlp-image {
	position: relative;
	top: auto;
	left: auto;
}

.dlp-hero-slide {
	position: relative;
	display: block;
	width: 100%;
	min-height: var(--dlp-hero-frame-height);
	overflow: hidden;
}

.dlp-hero-slide--media-only {
	min-height: var(--dlp-hero-frame-height);
}

.dlp-hero-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: var(--dlp-hero-frame-height);
	text-decoration: none;
}

.dlp-hero-media::before {
	content: none;
}

.dlp-hero-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1rem 1.25rem 1.35rem;
	background: color-mix(in srgb, var(--dh-surface, var(--lp-surface, #111)) 78%, transparent);
	color: var(--dh-text, var(--lp-text, #fff));
	text-align: left;
	pointer-events: none;
	z-index: 2;
}

.dlp-hero-caption .dlp-heading,
.dlp-hero-caption h2,
.dlp-hero-caption h3,
.dlp-hero-caption p {
	margin: 0 0 0.35rem;
	padding: 0;
	color: inherit;
	pointer-events: auto;
}

.dlp-hero-caption h3 a {
	color: inherit;
	text-decoration: none;
}

.dlp-hero-caption h3 a:hover {
	text-decoration: underline;
}

.dlp-hero-caption .dlp-link {
	display: none;
}

.dlp-hero-prev,
.dlp-hero-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	color: var(--dh-text, var(--lp-text, #fff));
	border: none;
	box-shadow: none;
	width: auto;
	height: auto;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0.25rem 0.5rem;
	cursor: pointer;
	z-index: 12;
	font-size: 2.5rem;
	line-height: 1;
	display: none;
	align-items: center;
	justify-content: center;
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

.dlp-hero.dlp-nav-2 .dlp-hero-prev,
.dlp-hero.dlp-nav-2 .dlp-hero-next {
	display: flex;
}

@media (min-width: 801px) {
	.dlp-hero.dlp-nav-1 .dlp-hero-prev,
	.dlp-hero.dlp-nav-1 .dlp-hero-next,
	.dlp-hero.dlp-nav-2 .dlp-hero-prev,
	.dlp-hero.dlp-nav-2 .dlp-hero-next {
		display: flex;
	}
}

.dlp-hero-prev {
	left: 0.5rem;
}

.dlp-hero-next {
	right: 0.5rem;
}

.dlp-hero-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none !important;
}

.dlp-hero-dots button {
	width: 0.55rem;
	height: 0.55rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: color-mix(in srgb, var(--dh-text, var(--lp-text, #333)) 35%, transparent);
	cursor: pointer;
}

.dlp-hero-dots button.is-active {
	background: var(--dh-accent, var(--lp-accent, #2ea3f2));
	transform: scale(1.25);
}

.dlp-hero-dots button:hover,
.dlp-hero-dots button:focus {
	opacity: 0.9;
	outline: none;
}

.dlp-hero.dirschl-lp-culoca-gallery .dlp-hero-media::before {
	display: none;
}

/* Nested [dirschl_link_preview] in hero */
.dlp-hero-track > .dlp-item {
	position: relative;
	min-height: var(--dlp-hero-frame-height);
}

.dlp-hero-track > .dlp-item > a {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.dlp-hero-track > .dlp-item > .dlp-heading,
.dlp-hero-track > .dlp-item > h2,
.dlp-hero-track > .dlp-item > h3,
.dlp-hero-track > .dlp-item > p:not(.dlp-link):not(.dlp-info) {
	position: absolute;
	left: 0;
	right: 0;
	margin: 0;
	padding: 0 1.25rem;
	background: color-mix(in srgb, var(--dh-surface, var(--lp-surface, #111)) 78%, transparent);
	color: var(--dh-text, var(--lp-text, #fff));
	pointer-events: auto;
	z-index: 2;
}

.dlp-hero-track > .dlp-item > .dlp-heading,
.dlp-hero-track > .dlp-item > h2 {
	bottom: 4.5rem;
}

.dlp-hero-track > .dlp-item > h3 {
	bottom: 2.5rem;
}

.dlp-hero-track > .dlp-item > p:not(.dlp-link):not(.dlp-info) {
	bottom: 0.75rem;
	padding-bottom: 1rem;
}

.dlp-hero-track > .dlp-item > .dlp-link,
.dlp-hero-track > .dlp-item > .dlp-info {
	display: none;
}

/* Mobile: no fixed 70vh frame — image defines height (contain without letterboxing bands) */
@media (max-width: 800px) {
	.dlp-hero {
		--dlp-hero-frame-height: auto;
	}

	.dlp-hero .dlp-item > a,
	.dlp-hero .dlp-hero-media,
	.dlp-hero .dlp-item .dlp-img-container,
	.dlp-hero-media {
		height: auto;
		max-height: none;
		min-height: 0;
		background: transparent;
	}

	.dlp-hero .dlp-item img,
	.dlp-hero .dlp-item .dlp-image {
		width: 100% !important;
		height: auto !important;
		max-height: min(55vh, 420px);
		object-fit: contain !important;
	}

	.dlp-hero-slide,
	.dlp-hero-slide--media-only,
	.dlp-hero-track > .dlp-item {
		min-height: 0;
	}

	.dlp-hero-viewport {
		height: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dlp-hero .dlp-item img,
	.dlp-hero .dlp-item .dlp-image,
	.dlp-hero .dlp-item > a .dlp-img-container {
		transition: none;
	}

	.dlp-hero .dlp-hero-media:hover .dlp-image,
	.dlp-hero .dlp-item > a:hover .dlp-image,
	.dlp-hero .dlp-item > a:hover .dlp-img-container,
	.dlp-hero .dlp-item > a:hover .dlp-img-container .dlp-image {
		transform: none;
	}
}
