.abx-mouseover .abx-text {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	opacity: 0;
	transition: opacity 0.2s ease-in-out;
	background: rgba(0, 0, 0, 0.65);
	padding: 8px;
	overflow-y: auto;
}

.abx-mouseover:hover .abx-text {
	opacity: 1;
}

.abx-same-height .abx-custom-grid {
	width: 100%;
	max-width: 100%;
	flex-wrap: wrap;
	display: flex;
}

.abx-same-height .abx-loop-item {
	flex-grow: 0;
	flex-shrink: 0;
	display: inline-flex;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}

.abx-same-height .abx-loop-item .abx-thumb img {
	min-width: 200px;
}

/* Not apply only we need to set text width based on the image width */
.abx-same-height .abx-loop-item > .abx-mouseover .elementor-widget-post-info,
.abx-same-height .abx-loop-item > .abx-caption-below .elementor-widget-post-info {
	width: 0;
	min-width: 100%;
}

.abx-same-height .abx-caption-right .abx-flex-50 {
	flex-basis: unset;
	flex-shrink: 0;
}

[data-abx-lightbox] {
	cursor: pointer;
}

.abx-filter-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	flex-shrink: 0;
	width: 100%;
}

.abx-fe-filter label {
	display: flex;
	width: 100%;
	cursor: pointer;
	gap: 5px;
	flex-wrap: wrap;
	user-select: none;
}

.abx-labels {
	display: block;
}

.abx-checkbox-item {
	display: flex;
	align-items: center;
	margin-bottom: 5px;
	flex-wrap: nowrap !important;
}

.abx-checkbox-item > input {
	width: 0.9em;
	height: 0.9em;
}

.abx-checkbox-item:last-child {
	margin-bottom: 0;
}

.abx-checkbox-item > span {
	display: block;
	flex-grow: 1;
}

.abx-filter-price {
	display: flex;
	gap: 20px;
}

.abx-filter-form input, .abx-filter-form button {
	outline: none !important;
}

.elementor-widget-abx-items > * {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

.abx-custom-grid {
	flex-grow: 1;
}

/* Justified Layout Styles */
.abx-justified-layout .abx-custom-grid {
	position: relative;
	width: 100%;
}

.abx-justified-layout .abx-loop-item {
	position: absolute;
	transition: all 0.3s ease;
}

.abx-justified-layout .abx-loop-item .abx-thumb {
	width: 100%;
	height: 100%;
	display: block;
}

.abx-justified-layout .abx-loop-item .abx-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.abx-thumb {
	aspect-ratio: 1/1;
	display: block !important;
	line-height: 0;
}

.abx-thumb img {
	width: 100%;
	height: 100%;
	object-position: left center;
}

.abx-flex-50 {
	flex-basis: 50%;
	flex-shrink: 0;
}

/**
	When the user set the columns count to 1, we do not need to set aspect-ratio
 */
@media screen and (min-width: 1024px) {
	.abx-columns-1 .abx-widget-container:not(.abx-same-height):not(.abx-custom-aspect) .abx-thumb{
		width: auto;
		aspect-ratio: unset;
		text-align: left;
	}

	.abx-columns-1 .abx-widget-container:not(.abx-same-height):not(.abx-custom-aspect) .abx-thumb img {
		width: auto;
		height: auto;
	}
}

@media screen and (max-width: 1023px) {
	.abx-columns-tablet-1 .abx-widget-container:not(.abx-same-height):not(.abx-custom-aspect) .abx-thumb {
		width: auto;
		aspect-ratio: unset;
		text-align: left;
	}

	.abx-columns-tablet-1 .abx-widget-container:not(.abx-same-height):not(.abx-custom-aspect) .abx-thumb img {
		width: auto;
		height: auto;
	}
}

@media screen and (max-width: 767px) {
	.abx-columns-mobile-1 .abx-widget-container:not(.abx-same-height):not(.abx-custom-aspect) .abx-thumb {
		width: auto;
		aspect-ratio: unset;
		text-align: left;
	}
	.abx-columns-mobile-1 .abx-widget-container:not(.abx-same-height):not(.abx-custom-aspect) .abx-thumb img {
		width: auto;
		height: auto;
	}
}

.abx-inner-column {
	width: 100%;
	height: 100%;
}

.abx-inner-column--flex-col {
	display: flex;
	flex-direction: column;
	/*TODO: get gap from site settings */
	gap: 20px;
}
