/* wrapper */
.mn-grid-boxes-wrapper {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin: 0;
	width: 100%;
	position: relative;
}

/* box */
.mn-box {
	display: block;
	text-decoration: none;
	box-sizing: border-box;
	position: relative;
	width: 100%;
}

/* inner */
.mn-box-inner {
	position: relative;
	width: 100%;
	height: 300px;
	/* desktop height */
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

/* overlay */
.mn-box-inner::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .45);
	opacity: 0;
	transition: opacity .45s ease-in-out;
	z-index: 1;
}

/* title */
.mn-box-title {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	padding: 8px 18px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-weight: 600;
	letter-spacing: 1px;
	font-size: 24px;
	white-space: nowrap;
	transition: transform .4s ease;
	z-index: 2;
}

/* hover effects */
.mn-box-inner:hover::after {
	opacity: 1;
}

.mn-box-inner:hover .mn-box-title {
	transform: translate(-50%, -50%) translateY(-10px);
}

/* mobile */
@media (max-width:767px) {
	.mn-box-inner {
		height: 200px;
	}

	.mn-box-title {
		font-size: 18px;
		padding: 6px 12px;
	}
}