.af-categories_wrapper {
	display              : grid;
	grid-template-columns: repeat(2, 1fr);
	gap                  : 10px;
}

@media screen and (min-width: 680px) {
	.af-categories_wrapper {
		grid-template-columns: repeat(3, 1fr);
		gap                  : 15px;
	}
}

@media screen and (min-width: 991px) {
	.af-categories_wrapper {
		grid-template-columns: repeat(var(--af-grid-cols, 4), 1fr);
	}
}

.af-category_card {
	position     : relative;
	overflow     : hidden;
	border-radius: 5px;
	height       : 120px;
	z-index      : 1;
}

@media screen and (max-width: 680px) {
	.af-category_card {
		height: 80px !important;
	}
}

.af-category_card img {
	width     : 100%;
	height    : 100%;
	object-fit: cover;
	transition: transform 0.3s ease-in-out;
	display   : block;
}

.af-category_card a {
	position       : absolute;
	inset          : 0;
	display        : flex;
	align-items    : center;
	justify-content: center;
	background     : rgba(0, 0, 0, 0.7);
	text-decoration: none;
	color          : #fff !important;
	font-size      : 18px;
	line-height    : 1.2;
	padding        : 10px;
	text-align     : center;
	transition     : color 0.3s ease;
}

@media screen and (max-width: 991px) {
	.af-category_card a {
		font-size: 16px;
	}
}

@media screen and (max-width: 680px) {
	.af-category_card a {
		font-size: 14px;
	}
}

.af-category_card a h3 {
	color    : inherit !important;
	font-size: inherit !important;
	margin   : 0;
}

.af-category_card:hover img {
	transform: scale(1.1);
}

.af-category_card:hover a {
	color: #FF7D00 !important;
}