/*-------------------------------------------------------
Theme Name: Eye webdesign Divi child
Theme URI: https://www.eyewebdesign.be
Description: A child theme template for Divi
Author: Eye webdesign
Author URI: https://www.eyewebdesign.be
Template: Divi
Version: 1.0.2
----------------- ADDITIONAL CSS HERE ------------------*/

:root {
	--inblik-slider-height: 180px;
	--inblik-slider-bg: #0d0d0d;
}

@keyframes inblik-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

body:has(.inblik-poster-slider) #page-container,
body:has(.inblik-poster-slider) #et-main-area,
body:has(.inblik-poster-slider) #main-content,
body:has(.inblik-poster-slider) #main-content > article,
body:has(.inblik-poster-slider) #main-content .entry-content,
body:has(.inblik-poster-slider) #et-boc,
body:has(.inblik-poster-slider) #et-boc .et-l,
body:has(.inblik-poster-slider) #et-boc .et-l--body,
body:has(.inblik-poster-slider) .et_builder_inner_content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

body:has(.inblik-poster-slider) #page-container {
	min-height: 100vh;
	min-height: 100dvh;
}

.et_pb_section:has(.inblik-poster-slider) {
	margin-top: auto !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

.inblik-poster-slider {
	position: relative;
	overflow: hidden;
	width: 100%;
	background: var(--inblik-slider-bg);
	border-top: 1px solid rgba(255, 0, 0, 0.15);
}

.inblik-poster-slider__label {
	position: absolute;
	top: 10px;
	left: 16px;
	z-index: 2;
	font-family: "DM Mono", ui-monospace, monospace;
	font-size: 9px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.2);
	pointer-events: none;
}

.inblik-poster-slider__fade {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 80px;
	z-index: 2;
	pointer-events: none;
}

.inblik-poster-slider__fade--left {
	left: 0;
	background: linear-gradient(to right, var(--inblik-slider-bg), transparent);
}

.inblik-poster-slider__fade--right {
	right: 0;
	background: linear-gradient(to left, var(--inblik-slider-bg), transparent);
}

.inblik-poster-slider__track {
	display: flex;
	width: max-content;
	gap: 0;
	animation: inblik-marquee 40s linear infinite;
}

.inblik-poster-slider__track img {
	display: block;
	height: var(--inblik-slider-height);
	width: auto;
	max-width: none;
	flex-shrink: 0;
	filter: brightness(0.88) contrast(1.05);
	user-select: none;
	pointer-events: none;
}

@media (hover: hover) {
	.inblik-poster-slider:hover .inblik-poster-slider__track {
		animation-play-state: paused;
	}
}

.et_pb_module:has(.inblik-poster-slider),
.et_pb_text:has(.inblik-poster-slider) .et_pb_text_inner,
.et_pb_code:has(.inblik-poster-slider) .et_pb_code_inner {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

@media (max-width: 980px) {
	:root {
		--inblik-slider-height: 140px;
	}

	.inblik-poster-slider__fade {
		width: 56px;
	}
}

@media (max-width: 767px) {
	:root {
		--inblik-slider-height: 110px;
	}

	.inblik-poster-slider__fade {
		width: 40px;
	}

	.inblik-poster-slider__label {
		left: 12px;
		top: 8px;
		font-size: 8px;
		letter-spacing: 0.22em;
	}

	.inblik-poster-slider__track {
		animation-duration: 32s;
	}
}

@media (max-width: 479px) {
	:root {
		--inblik-slider-height: 88px;
	}

	.inblik-poster-slider__fade {
		width: 28px;
	}

	.inblik-poster-slider__track {
		animation-duration: 26s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.inblik-poster-slider__track {
		animation: none;
	}
}