/* BHI Gallery lightbox (Envira-style) */
.bhi-mm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.9);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.bhi-mm-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.bhi-mm-lightbox__inner {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.bhi-mm-lightbox__context-heading {
	margin: 0 0 0.25rem;
	padding: 0 1rem;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 600;
	text-align: center;
	max-width: 90vw;
}

.bhi-mm-lightbox__context-subline {
	margin: 0 0 0.75rem;
	padding: 0 1rem;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.9rem;
	text-align: center;
	max-width: 90vw;
	line-height: 1.35;
}

.bhi-mm-lightbox__counter {
	margin: 0.5rem 0 0.25rem;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.85rem;
	letter-spacing: 0.02em;
}

.bhi-mm-lightbox__title {
	margin: 0 0 0.35rem;
	padding: 0 1rem;
	color: #fff;
	font-size: 1rem;
	font-weight: 500;
	text-align: center;
	max-width: 90vw;
}

.bhi-mm-lightbox__img-wrap {
	max-width: 90vw;
	max-height: 85vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bhi-mm-lightbox__img {
	max-width: 100%;
	max-height: 85vh;
	width: auto;
	height: auto;
	display: block;
}

.bhi-mm-lightbox__caption {
	margin-top: 0.75rem;
	padding: 0 1rem;
	color: #fff;
	font-size: 0.95rem;
	line-height: 1.4;
	text-align: center;
	max-width: 90vw;
}

.bhi-mm-lightbox__close {
	position: absolute;
	top: -2.5rem;
	right: 0;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: none;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.bhi-mm-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.35);
}

.bhi-mm-lightbox__close::before {
	content: "\00d7";
}

.bhi-mm-lightbox__prev,
.bhi-mm-lightbox__next {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: none;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.bhi-mm-lightbox__prev:hover,
.bhi-mm-lightbox__next:hover {
	background: rgba(255, 255, 255, 0.35);
}

.bhi-mm-lightbox__prev {
	left: 1rem;
}

.bhi-mm-lightbox__next {
	right: 1rem;
}

.bhi-mm-lightbox__prev::before {
	content: "\2039";
}

.bhi-mm-lightbox__next::before {
	content: "\203a";
}

.bhi-mm-lightbox__prev.is-hidden,
.bhi-mm-lightbox__next.is-hidden {
	display: none;
}

/* Cursor on lightbox triggers */
.bhi-media-gallery__link--lightbox {
	cursor: zoom-in;
}
