#msp-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.72);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease;
	padding: 12px;
	box-sizing: border-box;
}
#msp-lightbox-overlay.msp-lightbox-open {
	opacity: 1;
	visibility: visible;
}
.msp-lightbox-inner {
	position: relative;
	width: min(460px, 86vw);
	max-width: 100%;
	max-height: calc(100vh - 32px);
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0,0,0,.3);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	box-sizing: border-box;
}
.msp-lightbox-img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 96px);
	width: auto;
	height: auto;
	object-fit: contain;
}
.msp-lightbox-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #ddd;
	box-shadow: 0 2px 10px rgba(0,0,0,.18);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	z-index: 10;
}
.msp-lightbox-close svg {
	width: 18px;
	height: 18px;
	color: #222;
}
.msp-lightbox-close:hover {
	background: #f2f2f2;
}