/* Miodowice lightbox — overlay styling (replaces Firelight/Easy FancyBox). */

html.mlb-lock {
	overflow: hidden;
}

.mlb-overlay {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba( 0, 0, 0, 0.6 ); /* matches the old overlayColor/Opacity */
	z-index: 100000;
	padding: 20px;
	box-sizing: border-box;
}

.mlb-overlay.is-open {
	display: flex;
}

.mlb-figure {
	margin: 0;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.mlb-img {
	max-width: 90vw;
	max-height: 82vh;
	height: auto;
	width: auto;
	border: 6px solid #fff;
	background: #fff;
	box-shadow: 0 4px 30px rgba( 0, 0, 0, 0.5 );
	border-radius: 2px;
	display: block;
}

.mlb-caption {
	margin-top: 10px;
	color: #fff;
	font-size: 14px;
	text-align: center;
	max-width: 80vw;
	text-shadow: 0 1px 2px rgba( 0, 0, 0, 0.8 );
}

.mlb-close,
.mlb-prev,
.mlb-next {
	position: absolute;
	background: rgba( 0, 0, 0, 0.45 );
	color: #fff;
	border: 0;
	cursor: pointer;
	line-height: 1;
	border-radius: 4px;
	transition: background 0.2s ease;
}

.mlb-close:hover,
.mlb-prev:hover,
.mlb-next:hover {
	background: rgba( 0, 0, 0, 0.8 );
}

.mlb-close {
	top: 16px;
	right: 20px;
	width: 42px;
	height: 42px;
	font-size: 28px;
}

.mlb-prev,
.mlb-next {
	top: 50%;
	transform: translateY( -50% );
	width: 48px;
	height: 64px;
	font-size: 26px;
}

.mlb-prev {
	left: 16px;
}

.mlb-next {
	right: 16px;
}

@media ( max-width: 480px ) {
	.mlb-prev,
	.mlb-next {
		width: 38px;
		height: 52px;
		font-size: 20px;
	}
}
