.card_gallery {
	position: relative;
	--icon-text-gap: 8px; /* ← adjust this one value to control icon-to-text spacing */
}

.card_gallery .card_inner {
	border-radius: 6px;
	overflow: hidden;
	padding: 26px 20px;
	position: relative;
	white-space: normal;
	height: 100%;
}

.card_gallery .icon_box .icon_inner {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	font-size: calc(80px - 10px);
	margin-bottom: var(--icon-text-gap);
}

.card_gallery .icon_box svg {
	width: 1em;
	height: 1em;
	display: block;
	vertical-align: middle;
}

.card_gallery .icon_box.bgAdded .icon_inner {
	border-radius: 100%;
	overflow: hidden;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	font-size: 40px;
	text-align: center;
}

.card_gallery .icon_box.small_sz .icon_inner {
	width: 50px;
	height: 50px;
	font-size: calc(50px - 10px);
}

.card_gallery .icon_box.small_sz.bgAdded .icon_inner {
	font-size: calc(40px - 10px);
}

/* === LARGE SIZE === */
.card_gallery .icon_box.large_sz .icon_inner {
	width: 200px;
	height: auto;
	font-size: calc(200px - 15px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-bottom: var(--icon-text-gap);
	margin-left: auto;
	margin-right: auto;
}

.card_gallery .icon_box.large_sz .icon_inner img {
	width: 200px;
	height: auto;
	object-fit: contain;
}

.card_gallery .icon_box.large_sz span.icon_img.icon_sp {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.card_gallery .icon_box.large_sz span.icon_img img {
	width: 200px !important;
	max-width: 200px !important;
	height: auto !important;
	object-fit: contain !important;
}

.card_gallery .icon_box.large_sz.bgAdded .icon_inner {
	font-size: calc(80px - 15px);
}

.card_gallery .icon_box.large_sz.bgAdded img {
	width: 200px !important;
}
/* === END LARGE SIZE === */

.card_gallery .icon_box.medium_sz .icon_inner {
	width: 70px;
	height: 70px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.four-col-wrpp.card_gallery .icon_box.medium_sz .icon_inner img {
	max-height: 70px !important;
}

.card_gallery .icon_box.bgAdded img,
.card_gallery .icon_box.medium_sz.bgAdded img {
	width: 40px;
}

.card_gallery .icon_box.small_sz.bgAdded img {
	width: 30px;
}

.card_gallery .icon_box span.icon_img.icon_sp {
	line-height: 0;
}

.card_gallery .card_item.text_center .icon_inner {
	margin-left: auto;
	margin-right: auto;
}

.card_gallery .card_item.text_left .btn_row {
	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;
}

.card_gallery .card_item.text_right .icon_inner {
	margin-left: auto;
}

.card_gallery .card_item.text_right .btn_row {
	-webkit-box-pack: end;
	-ms-flex-pack: end;
	justify-content: flex-end;
}

.card_gallery .card_item.text_center .btn_row {
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
}

.card_gallery .card_box {
	position: relative;
	z-index: 5;
}

.card_gallery .card_item.hoverAdde .card_inner:hover .overlay_bg {
	visibility: visible;
	pointer-events: auto;
}

.card_gallery .card_inner:hover .overlay_bg.custom {
	opacity: 1;
}

.card_gallery .card_item .overlay_bg {
	opacity: 0;
	pointer-events: none;
	-webkit-transition: all 0.2s ease;
	-o-transition: all 0.2s ease;
	transition: all 0.2s ease;
}

.card_gallery .hover_img.bg_el {
	opacity: 0;
	-webkit-transition: all 0.2s ease;
	-o-transition: all 0.2s ease;
	transition: all 0.2s ease;
	z-index: 0;
}

.card_gallery .card_item.hoverAdde .card_inner:hover .hover_img.bg_el {
	opacity: 1;
}

.card_gallery .card_item.shadowAdded .card_inner {
	-webkit-box-shadow: 0px 2px 10px rgb(22 22 22 / 10%);
	box-shadow: 0px 2px 10px rgb(22 22 22 / 10%);
}

.card_gallery .card_content > *:last-child {
	margin-bottom: 0;
}

.card_gallery .card_content + .btn_row {
	margin-top: 24px;
}

.card_gallery .card_item .main_overlay_bg {
	-webkit-transition: all all 0.2s ease;
	-o-transition: all all 0.2s ease;
	transition: all all 0.2s ease;
}

.card_gallery .card_item.hoverAdde .card_inner:hover .main_overlay_bg {
	opacity: 0;
}

.card_gallery span.icon_img img {
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
}

@media (min-width: 1025px) and (max-width: 1267px) {
	.card_gallery .card_item {
		flex: 1 1 400px;
	}
}

.card_gallery .card_item {
	cursor: default;
}

.card_gallery .card_item h5 {
	margin-bottom: 10px;
}

.card_gallery .card_box .it_title {
	margin-bottom: 0.6rem;
}

.card_content .it_title {
	min-height: auto;
}

.custom-cards .card_box h5.it_title {
	{#title styles could go here#}
}

.card_gallery .bottom_row.notshadow .rowGap15 {
	row-gap: 45px;
}

.card_gallery .bottom_row.masonadded .card_item {
	margin-bottom: 20px;
}

.card_gallery a.ovelar_link_add.bg_el {
	z-index: 10;
}

.card_gallery .icon_box span.icon_img.icon_sp {
	/*height: 100%;*/
}

.card_gallery .icon_box.bgAdded span.icon_img.icon_sp {
	height: auto;
}

.card_gallery .icon_box.bgAdded img {
	height: auto;
}

.card_content ul {
	padding-left: 40px !important;
	padding-bottom: 15px !important;
}

.card_content {
	padding-bottom: 20px;
	padding-top: var(--icon-text-gap);
}

/* Custom hover on cards */
.card_inner.theme {
	border: 1px solid #626469;
	transition:
		border-color 0.25s ease,
		box-shadow 0.25s ease,
		transform 0.25s ease;
	border-radius: 24px !important;
}

.card_inner.theme:hover {
	border-color: #CC0201;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

@media (max-width: 767px) {
	.card_gallery .bottom_row.notshadow .rowGap15 {
		row-gap: 20px;
	}
}

@media (min-width: 981px) {
	.card_gallery.cardiac-wrpp .flex_row .card_item {
		margin-right: 12px !important;
		width: 47% !important;
	}
}