.mpg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	width: 100%;
}

.mpg-item {
	position: relative;
	display: block;
	height: 280px;
	overflow: hidden;
	background-color: #222;
	text-decoration: none;
	color: inherit;
	outline: none;
}

.mpg-bg {
	position: absolute;
	inset: 0;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	transform: scale(1);
	transition: transform 0.5s ease;
	z-index: 0;
}

.mpg-overlay {
	position: absolute;
	inset: 0;
	background-color: #e31c23;
	opacity: 0.75;
	transform: translateX(-100%);
	transition: transform 0.4s ease;
	pointer-events: none;
	z-index: 1;
}

.mpg-content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	box-sizing: border-box;
	text-align: center;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
	pointer-events: none;
}

.mpg-logo {
	display: block;
	max-width: 140px;
	width: auto;
	height: auto;
	max-height: 80px;
	object-fit: contain;
}

.mpg-title {
	display: block;
	margin: 0;
	color: #fff;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.3;
}

.mpg-text {
	display: block;
	margin: 0;
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.4;
	max-width: 90%;
}

.mpg-item:hover .mpg-bg,
.mpg-item:focus-within .mpg-bg,
.mpg-item:focus .mpg-bg {
	transform: scale(1.08);
}

.mpg-item:hover .mpg-overlay,
.mpg-item:focus-within .mpg-overlay,
.mpg-item:focus .mpg-overlay {
	transform: translateX(0);
}

.mpg-item:hover .mpg-content,
.mpg-item:focus-within .mpg-content,
.mpg-item:focus .mpg-content {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 1024px) {
	.mpg-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.mpg-grid {
		grid-template-columns: 1fr;
	}

	.mpg-bg {
		transform: scale(1.05);
	}

	.mpg-overlay {
		transform: translateX(0);
	}

	.mpg-content {
		opacity: 1;
		transform: translateY(0);
	}
}
