html.um-lightbox-lock {
	overflow: hidden;
}

.um-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 28px;
}

.um-lightbox.is-open {
	display: flex;
}

.um-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .88);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.um-lightbox-dialog {
	position: relative;
	z-index: 1;
	width: min(1120px, 94vw);
	max-height: 92vh;
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) 54px;
	grid-template-rows: minmax(0, 1fr) auto;
	align-items: center;
}

.um-lightbox-content {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 220px;
	max-height: 80vh;
	overflow: hidden;
	border-radius: 12px;
	background: #050505;
}

.um-lightbox-content img,
.um-lightbox-content video {
	display: block;
	max-width: 100%;
	max-height: 80vh;
	width: auto;
	height: auto;
	object-fit: contain;
}

.um-lightbox-content iframe {
	display: block;
	width: min(100%, 1000px);
	aspect-ratio: 16 / 9;
	border: 0;
	background: #000;
}

/*
 * Hard reset for lightbox controls.
 * Icons are CSS-drawn, so Elementor/theme icon fonts cannot corrupt them.
 */
.um-lightbox-close,
.um-lightbox-nav {
	-webkit-appearance: none !important;
	appearance: none !important;
	position: relative;
	display: grid !important;
	place-items: center;
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	outline: 0;
	box-shadow: none !important;
	text-decoration: none !important;
	text-indent: 0 !important;
	font-size: 0 !important;
	line-height: 1 !important;
	color: #fff !important;
	cursor: pointer;
	overflow: visible;
	z-index: 3;
}

.um-lightbox-close {
	position: absolute;
	right: 0;
	top: -52px;
	width: 44px;
	height: 44px;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .13) !important;
}

.um-lightbox-close::before,
.um-lightbox-close::after {
	content: "" !important;
	position: absolute;
	left: 50%;
	top: 50%;
	width: 20px;
	height: 2px;
	border: 0 !important;
	border-radius: 2px;
	background: currentColor;
	transform-origin: center;
}

.um-lightbox-close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.um-lightbox-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.um-lightbox-nav {
	width: 44px;
	height: 52px;
	border-radius: 9px !important;
	background: rgba(255, 255, 255, .10) !important;
}

.um-lightbox-nav::before {
	content: "" !important;
	display: block;
	box-sizing: border-box;
	width: 13px;
	height: 13px;
	border: 0 !important;
	border-left: 3px solid currentColor !important;
	border-bottom: 3px solid currentColor !important;
	background: transparent !important;
}

.um-lightbox-nav::after {
	content: none !important;
	display: none !important;
}

.um-lightbox-prev {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
}

.um-lightbox-prev::before {
	transform: rotate(45deg);
	margin-left: 5px;
}

.um-lightbox-next {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
}

.um-lightbox-next::before {
	transform: rotate(225deg);
	margin-right: 5px;
}

.um-lightbox-close:hover,
.um-lightbox-nav:hover {
	background: rgba(255, 255, 255, .20) !important;
}

.um-lightbox-close:focus-visible,
.um-lightbox-nav:focus-visible {
	outline: 2px solid #fff !important;
	outline-offset: 3px;
}

.um-lightbox-footer {
	grid-column: 2;
	grid-row: 2;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding-top: 12px;
	color: #fff;
	font-size: 14px;
}

.um-lightbox-counter {
	opacity: .72;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.um-lightbox {
		padding: 18px 10px;
	}

	.um-lightbox-dialog {
		width: 100%;
		grid-template-columns: 42px minmax(0, 1fr) 42px;
	}

	.um-lightbox-nav {
		width: 36px;
		height: 46px;
	}

	.um-lightbox-nav::before {
		width: 11px;
		height: 11px;
		border-left-width: 2px !important;
		border-bottom-width: 2px !important;
	}

	.um-lightbox-close {
		right: 8px;
		top: -50px;
	}

	.um-lightbox-footer {
		grid-column: 1 / 4;
		padding-left: 8px;
		padding-right: 8px;
	}
}
