.mpg-12401-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.mpg-12401-item {
	cursor: pointer;
	transition: opacity 0.3s;
	display: flex;
	flex-direction: column;
}

.mpg-12401-img-wrapper {
	overflow: hidden;
	border-radius: 4px;
	width: 100%;
	aspect-ratio: 1 / 1;
}

.mpg-12401-item:hover {
	opacity: 0.8;
}

.mpg-12401-img-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mpg-12401-label {
	margin-top: 12px;
	font-size: 16px;
	color: #333;
	text-align: left;
	font-weight: 500;
}

/* Lightbox Styles - appended to body */
.mpg-12401-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	background: rgba(0,0,0,0.1);
}

/* Tightly wrapping the image */
.mpg-12401-lightbox-frame {
	position: relative;
	background: transparent;
	padding: 0;
	pointer-events: auto;
	display: inline-block;
	max-width: 90vw;
	max-height: 90vh;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.mpg-12401-lightbox-img {
	display: block;
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
}

/* Controls */
.mpg-12401-close,
.mpg-12401-prev,
.mpg-12401-next {
	position: absolute;
	color: #fff;
	cursor: pointer;
	background: rgba(0,0,0,0.7);
	border: 1px solid rgba(255,255,255,0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 20px;
	font-weight: bold;
	line-height: 1;
	z-index: 10;
	transition: background 0.2s;
	font-family: sans-serif;
	user-select: none;
}

.mpg-12401-close:hover,
.mpg-12401-prev:hover,
.mpg-12401-next:hover {
	background: rgba(0,0,0,0.9);
}

.mpg-12401-close {
	top: -15px;
	right: -15px;
}

.mpg-12401-prev {
	top: 50%;
	left: -20px;
	transform: translateY(-50%);
}

.mpg-12401-next {
	top: 50%;
	right: -20px;
	transform: translateY(-50%);
}