#assembly-slider {
	position: relative;
	width: 100%;
	height: 500px;
	overflow: hidden;
	background-color: #000;
	z-index: 100;
}

#assembly-slider .more-link { display: none; }

/* Admin placeholder, amikor még nincs slide */
#assembly-slider.slider-empty {
	height: auto;
	min-height: 240px;
	background: repeating-linear-gradient(
		45deg,
		#1a1a1a,
		#1a1a1a 10px,
		#222 10px,
		#222 20px
	);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px 0;
}
#assembly-slider.slider-empty h2 { color: #fff; margin-top: 0; }
#assembly-slider.slider-empty p  { color: rgba(255, 255, 255, .8); }

#le {
	position: absolute;
	bottom: 0;
	left: calc(50% - 40px);
	width: 80px;
	z-index: 1;
	opacity: .2;
}
#le img { width: 100%; height: auto; }

.grayback {
	position: absolute;
	inset: 0;
	background-color: #000;
	opacity: 0.3;
}

#slidecont {
	position: absolute;
	left: 0;
	width: 100%;
	height: 100%;
	font-size: 0;
	perspective: 1000px;
	z-index: 10;
}

.slide {
	position: absolute;
	inset: 0;
	overflow: hidden;
	width: 100%; height: 100%;
	display: inline-block;
	opacity: 0;
	transform: scale(1);
}

.slide .button {
	position: absolute;
	right: 20px;
	top: 20px;
	width: 40px;
	height: 40px;
	padding: 0;
	line-height: 40px;
	text-align: center;
	font-size: 15px;
	color: #fff !important;
	background-color: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	z-index: 30; /* a .slide-link (z:5) és .textlayer fölé, hogy kattintható legyen */
	transition: opacity var(--transition-mid, 250ms ease), background-color var(--transition-fast, 150ms ease);
}
.slide .button:hover {
	background-color: rgba(255, 255, 255, 0.28);
	border-color: rgba(255, 255, 255, 0.45);
	transform: none; /* globális .button:hover translateY(-1px) kikapcsolása itt */
}
.slide:hover .button,
.slide .button:focus { opacity: 1; }

.slide .slide-link {
	position: absolute;
	inset: 0;
	z-index: 5;
	text-decoration: none;
}

.layer:hover > .wrapper .padding .button { opacity: 1; }

.slide:nth-child(1) { opacity: 1; }

.action-in  { animation: SlideIn  2s both ease; z-index: 20 !important; }
.action-out { animation: SlideOut 2s both ease; z-index: 10; }

@keyframes SlideIn {
	0%   { opacity: 0; transform: scale(1.1); }
	100% { opacity: 1; transform: scale(1); }
}

@keyframes SlideOut {
	0%   { opacity: 1; transform: scale(1); }
	100% { opacity: 1; transform: scale(1.1); }
}

.backtext {
	position: absolute;
	top: 12%; left: 3%;
	font-size: 17vw;
	font-weight: 800;
	letter-spacing: -0.04em;
	color: #fff;
	opacity: .2;
	line-height: 0;
	transform: translateX(-100px);
	transition: transform 13.3s ease;
}
.action-in .backtext { transform: translateX(0); }

.layer {
	position: absolute;
	top: 50%; left: 50%;
	min-width: 100%; height: 100%;
	transform: translate(-50%, -50%);
	background-size: cover;
	background-position: center;
	perspective: 1000px;
}
.backlayer img { min-width: 100%; height: auto; }

.textlayer {
	position: absolute;
	top: 50%;
	width: 100%;
	height: auto;
	opacity: 0;
	transform: translateZ(-100px) translateY(-50%);
	transition: opacity 1s ease, transform 1s ease;
	text-align: center;
}

.slidetitle {
	font-size: 46px;
	color: #fff;
	line-height: 1.1;
	font-weight: bold;
	letter-spacing: -0.03em;
	text-transform: uppercase;
}

.decorline {
	margin: 10px auto 0;
	width: 91px;
	height: 6px;
	background-color: #b53a2b;
}

.slidecontent {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 80px;
	font-size: 22px;
	color: #fff;
}
.slidecontent p { margin-top: 5px; }
.slidecontent a {
	display: inline-block;
	min-width: 113px;
	padding: 15px 33px;
	background-color: rgba(0, 0, 0, .3);
	color: #fff;
	text-decoration: none;
	text-align: center;
	font-size: 16px;
	font-weight: bold;
	text-transform: uppercase;
	border: 4px solid #fff;
	border-radius: 50px;
}
.slidecontent a:hover { background-color: #000; }

.slidein {
	opacity: .8;
	transform: translateZ(0) translateY(-50%);
}

.textlayer img { width: 100%; height: auto; }

.editslide {
	position: absolute;
	top: 2px;
	font-size: 9px;
}
.editslide a { color: #ccc; }

#paginate {
	position: absolute;
	bottom: 10px; left: 0;
	width: 100%;
	margin-bottom: 0;
	text-align: center;
	z-index: 10;
}

.pagedot {
	display: inline-block;
	position: relative;
	width: 10px; height: 10px;
	margin-right: 15px;
	background-color: rgba(255, 255, 255, .3);
	border-radius: 50%;
	opacity: 1;
	cursor: pointer;
	transition: all 1s ease;
}
.aktiv { background-color: #fff; }

#prev, #next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px; height: 50px;
	border-radius: 50%;
	background-repeat: no-repeat;
	background-position: center;
	font-size: 50px;
	line-height: 50px;
	color: #fff;
	opacity: .1;
	cursor: pointer;
	z-index: 20;
}
#assembly-slider:hover > #prev { opacity: 1; left: 20px; }
#assembly-slider:hover > #next { opacity: 1; right: 20px; }
#prev { left: -80px; }
#next { right: -80px; }
#next:hover, #prev:hover {
	background-color: rgba(0, 0, 0, .3);
	opacity: 1;
}

#progressbar {
	position: absolute;
	bottom: 0;
	width: 0%;
	height: 5px;
	background-color: #fff;
	opacity: .2;
	overflow: hidden;
}

@media (max-width: 1000px) {
	.slidetitle   { font-size: 42px; }
	.slidecontent { font-size: 20px; padding: 0; }
	#prev, #next  { visibility: hidden; }
}

@media (max-width: 800px) {
	.slidetitle   { font-size: 32px; }
	.slidecontent { font-size: 17px; }
}

@media (max-width: 500px) {
	.slidetitle   { font-size: 26px; }
	.slidecontent { font-size: 15px; }
	#prev, #next  { top: auto; bottom: 25px; transform: none; opacity: .9; }
}

@media (prefers-reduced-motion: reduce) {
	.action-in, .action-out, .slide, .backtext, .textlayer {
		animation: none !important;
		transition: none !important;
	}
}
