/*!
 * gallery-lightbox – a gallery-lightbox.js stílusa (#22458 · MIT). Téma-független: csak a saját .gallery-lightbox
 * osztályait stílusozza; a színek egyedi tulajdonságból jönnek, a téma felülírhatja (--gallery-lightbox-*).
 */
.gallery-lightbox {
	--gallery-lightbox-bg: rgba(0, 0, 0, .96);
	--gallery-lightbox-fg: #fff;
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 48px 56px;
	border: 0;
	background: var(--gallery-lightbox-bg);
	color: var(--gallery-lightbox-fg);
	box-sizing: border-box;
	display: none;
	align-items: center;
	justify-content: center;
}
.gallery-lightbox[open] { display: flex; }
.gallery-lightbox::backdrop { background: var(--gallery-lightbox-bg); }
html.gallery-lightbox-open { overflow: hidden; }
.gallery-lightbox__figure {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 100%;
	max-height: 100%;
}
.gallery-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 140px);
	width: auto;
	height: auto;
	object-fit: contain;
}
.gallery-lightbox__caption {
	margin-top: 10px;
	font-size: 15px;
	line-height: 1.4;
	text-align: center;
}
.gallery-lightbox__counter {
	position: absolute;
	top: 12px;
	left: 16px;
	margin: 0;
	font-size: 15px;
}
.gallery-lightbox button {
	position: absolute;
	border: 0;
	background: transparent;
	color: inherit;
	font: 400 44px/1 sans-serif;
	cursor: pointer;
	padding: 4px 12px;
	opacity: .85;
}
.gallery-lightbox button:hover,
.gallery-lightbox button:focus-visible { opacity: 1; }
.gallery-lightbox button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.gallery-lightbox__close { top: 4px; right: 8px; }
.gallery-lightbox__prev { left: 4px; top: 50%; transform: translateY(-50%); }
.gallery-lightbox__next { right: 4px; top: 50%; transform: translateY(-50%); }
.gallery-lightbox--single .gallery-lightbox__prev,
.gallery-lightbox--single .gallery-lightbox__next { display: none; }
@media (max-width: 575px) {
	.gallery-lightbox { padding: 48px 8px; }
	.gallery-lightbox__prev,
	.gallery-lightbox__next { top: auto; bottom: 8px; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
	.gallery-lightbox__image { transition: opacity .15s; }
}
