.wp-block-gallery figure.wp-block-image img { cursor: zoom-in; }
.wp-block-gallery figure.wp-block-image img:focus-visible { outline: 3px solid #a9812e; outline-offset: 2px; }

html.elida-lb-open { overflow: hidden; }

.elida-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(20, 20, 20, 0.92);
}
.elida-lb[hidden] { display: none; }

.elida-lb__figure {
	margin: 0;
	max-width: min(92vw, 900px);
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.elida-lb__img {
	max-width: 100%;
	max-height: 80vh;
	width: auto;
	height: auto;
	object-fit: contain;
	background: #fff;
}
.elida-lb__cap {
	color: #fff;
	font-size: 20px;
	margin-top: 12px;
	text-align: center;
}
.elida-lb__cap:empty { display: none; }

.elida-lb__btn {
	position: absolute;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: 0;
	cursor: pointer;
	line-height: 1;
	border-radius: 50%;
	width: 52px;
	height: 52px;
	font-size: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.elida-lb__btn[hidden] { display: none; }
.elida-lb__btn:hover,
.elida-lb__btn:focus-visible { background: #a9812e; outline: none; }
.elida-lb__close { top: 16px; right: 16px; font-size: 34px; }
.elida-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.elida-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }

.elida-lb__count {
	position: absolute;
	bottom: 14px;
	left: 0;
	right: 0;
	text-align: center;
	color: #ddd;
	font-size: 16px;
}

@media (max-width: 600px) {
	.elida-lb__btn { width: 44px; height: 44px; }
	.elida-lb__prev { left: 6px; }
	.elida-lb__next { right: 6px; }
}

/* caption block: category label above the model name */
.elida-lb__caption { margin-top: 12px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.elida-lb__cat { color: #d8b56a; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; }
.elida-lb__cap { color: #fff; font-size: 22px; margin-top: 0; }
.elida-lb__cat:empty, .elida-lb__cap:empty { display: none; }
