#fullscreen-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.9);
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: var(--transition);
}
#fullscreen-lightbox.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

#fullscreen-img {
	max-width: 90%;
	max-height: 70vh;
	border-radius: var(--tabulka_radius);
	box-shadow: 0 0 0.9375rem rgba(255,255,255,0.5); /* 15px */
}

#slideshow-progress {
	width: 60%;
	height: 0.25rem; /* 4px */
	background: rgba(255, 255, 255, 0.3);
	border-radius: 0.125rem; /* 2px */
	overflow: hidden;
	margin-top: 0.625rem; /* 10px */
}

#slideshow-progress-bar {
	height: 100%;
	width: 0%;
	background: #fff;
	border-radius: 0.125rem; /* 2px */
	transition: width linear;
}

#fullscreen-toolbar {
	margin-top: 0.75rem; /* 12px */
	color: var(--farba_textu);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1.25rem; /* 20px */
	opacity: 1;
	transition: opacity 0.5s ease;
	pointer-events: auto;
	position: absolute;
	bottom: 1.875rem; /* 30px */
	left: 50%;
	transform: translateX(-50%);
}

#fullscreen-toolbar.hidden {
	opacity: 0;
	pointer-events: none;
}

#fullscreen-toolbar button,
#fullscreen-toolbar select {
	background: none;
	border: none;
	color: var(--farba_textu);
	font-size: 1.2rem;
	cursor: pointer;
}

#fullscreen-toolbar select {
	background-color: #000;
	color: var(--farba_textu);
	font-size: 1rem;
	padding: 0.125rem 0.375rem; /* 2px 6px */
	border-radius: 0.25rem; /* 4px */
}

#fullscreen-close {
	position: fixed;
	top: 1.25rem; /* 20px */
	right: 1.875rem; /* 30px */
	font-size: 3rem;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 10001;
	transition: var(--transition);
	color: var(--farba_textu);
}
#fullscreen-close:hover {
	color: var(--farba_zelena);
}

/* Animácia pri prechode na ďalší obrázok */
#fullscreen-img.fade {
	opacity: 0;
	transition: var(--transition);
}
#fullscreen-img.fade.show {
	opacity: 1;
}



#lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: var(--transition);
}
#lightbox.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

#lightbox-tabulka {
	background-color: var(--farba_pozadia);
	color: var(--farba_textu);
	border-radius: var(--tabulka_radius);
	border: var(--tabulka);
	box-shadow: var(--box_tien);
	max-width: min(90%, 500px);
	max-height: 90vh;              /* 🔹 dôležité – obmedzi výšku na 90 % viewportu */
	overflow-y: auto;              /* 🔹 zobrazí scrollbar ak treba */
	transform: translateY(20px);
	transition: var(--transition);
	overflow-x: hidden;            /* voliteľné: ak chceš zabrániť vodorovnému scrollu */
/*	scrollbar-gutter: stable;*/     /* voliteľné: zabráni poskakovaniu layoutu pri zobrazení scrollbarov */
}

#lightbox.active #lightbox-tabulka {
	transform: translateY(0);
}

#lightbox-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	border-bottom: var(--tabulka);
}

#lightbox-header h2 {
	margin: 0;
	color: var(--farba_textu);
}

#lightbox-close {
	background: none;
	border: none;
	font-size: 1.2rem;
	color: var(--farba_textu);
	cursor: pointer;
	transition: var(--transition);
}
#lightbox-close:hover {
	color: var(--farba_zelena);
}

#lightbox-content {
	padding: 1rem;
}

#lightbox-content p {
	margin-bottom: 1rem;
	color: var(--farba_textu);
}



@media (max-width: 600px) {
	#fullscreen-toolbar button,
	#fullscreen-toolbar select {
		font-size: 1.5rem;
		padding: 0.5rem 0.75rem; /* 8px 12px */
	}
	#fullscreen-close {
		font-size: 2.5rem;
		top: 0.625rem; /* 10px */
		right: 0.9375rem; /* 15px */
	}
}

/* Lightbox fullscreen - mobil */
@media (max-width: 30rem) { /* 480px */
	#fullscreen-img {
		max-width: 95%;
		max-height: 60vh;
	}
	#slideshow-progress {
		width: 80%;
	}
	#fullscreen-toolbar {
		flex-direction: column;
		gap: 0.625rem; /* 10px */
	}
	#fullscreen-toolbar button,
	#fullscreen-toolbar select {
		font-size: 1rem;
		padding: 0.375rem 0.625rem; /* 6px 10px */
	}
}

/* Lightbox modal - mobil */
@media (max-width: 30rem) { /* 480px */
	#lightbox-tabulka {
		max-width: 95%;
		max-height: 90%;
		padding: 0.9375rem; /* 15px */
	}
	#lightbox-close {
		font-size: 1.2rem;
		top: 0.5rem; /* 8px */
		right: 0.5rem;
	}
	#lightbox-content h2 {
		font-size: 1.25rem;
	}
	#lightbox-content p {
		font-size: 0.95rem;
	}
}