.acf-block-component.acf-block-preview.wp-block-acf-mdigi-category-list {
	margin-left: 0;
	margin-right: 0;
	width: 100%;
}

.list-categories_holder {
	--grid-cols: 3;
	--grid-gap: 1.5rem;

	display: grid;
	grid-template-columns: repeat(var(--grid-cols), 1fr);
	grid-template-rows: repeat(2, 1fr);
	grid-column-gap: var(--grid-gap);
	grid-row-gap: var(--grid-gap);
	width: 100%;
	margin: 2rem 0;
	float: none;
}

.list-categories_holder .category-box {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	background-size: cover;
	background-position: center;
	aspect-ratio: 1;
	border-radius: 0;
	text-decoration: none;
	position: relative;
	overflow: hidden;
	transition: transform 0.3s ease;
}

.list-categories_holder .category-box__title {
	font-family: var(--font-head);
	font-size: var(--text-size-200);
	font-style: italic;
	padding: 0.5rem 1.5rem;
	background: #fff;
	color: var(--global-palette3);
	z-index: 5;
}

.list-categories_holder .category-box::before {
	content: "";
	position: absolute;
	inset: 1rem;
	border: 1px solid #fff;
	z-index: 10;
}
.list-categories_holder .category-box::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: #333;
	opacity: 0.3;
	z-index: 1;
	transition: opacity 0.3s ease;
}

.list-categories_holder .category-box:hover {
	transform: scale(1.01);
}

.list-categories_holder .category-box:hover::after {
	opacity: 0.5;
}

@media screen and (max-width: 768px) {
	.list-categories_holder {
		--grid-cols: 2;
		--grid-gap: 1rem;
	}

	.list-categories_holder .category-box__title {
		font-size: var(--text-size-100);
	}

	.list-categories_holder .category-box::before {
		inset: 0.5rem;
	}
}
