/* Выше панели WordPress (99999): оверлей закрывает экран целиком,
   поэтому про её положение сверху или снизу знать не нужно. */
.lexlb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	background: rgba(0, 0, 0, .9);
	color: #fff;
	font: 15px/1.4 Arial, sans-serif;
	cursor: zoom-out;
}

.lexlb[hidden],
.lexlb__img[hidden],
.lexlb__msg[hidden],
.lexlb__btn[hidden],
.lexlb__count[hidden] {
	display: none;
}

.lexlb__img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	cursor: default;
}

.lexlb__btn {
	position: absolute;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font: 30px/48px Arial, sans-serif;
	text-align: center;
	cursor: pointer;
}

.lexlb__btn:hover,
.lexlb__btn:focus-visible {
	background: rgba(255, 255, 255, .25);
	outline: none;
}

.lexlb__close { top: 10px; right: 10px; }
.lexlb__prev  { top: 50%; left: 10px; margin-top: -24px; }
.lexlb__next  { top: 50%; right: 10px; margin-top: -24px; }

.lexlb__count {
	position: absolute;
	top: 22px;
	left: 16px;
	cursor: default;
}

.lexlb__msg {
	cursor: default;
}
