.ds-filterable-gallery-grid {
	--ds-filterable-gallery-grid-image-height: 160px;
	--ds-filterable-gallery-grid-row-gap: 28px;
	--ds-filterable-gallery-grid-column-gap: 28px;
	--ds-filterable-gallery-grid-tablet-columns: 2;
	--ds-filterable-gallery-grid-mobile-columns: 1;
	--ds-filterable-gallery-grid-hover-scale: 1.04;
	--ds-filterable-gallery-grid-hover-opacity: 0.92;
	--ds-filterable-gallery-grid-transition-duration: 300ms;
	--ds-filterable-gallery-grid-tabs-align: center;
	--ds-filterable-gallery-grid-tabs-gap: 64px;
	--ds-filterable-gallery-grid-tabs-margin-bottom: 72px;
	--ds-filterable-gallery-grid-tab-underline-height: 1px;
	--ds-filterable-gallery-grid-load-more-align: center;
	--ds-filterable-gallery-grid-load-more-spacing: 64px;
	width: 100%;
}

.ds-filterable-gallery-grid__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: var(--ds-filterable-gallery-grid-tabs-align);
	gap: 14px var(--ds-filterable-gallery-grid-tabs-gap);
	margin: 0 0 var(--ds-filterable-gallery-grid-tabs-margin-bottom);
	width: 100%;
}

.ds-filterable-gallery-grid__tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 0 0 4px;
	border: 0;
	border-radius: 0;
	background: transparent !important;
	background-color: transparent !important;
	color: #747873;
	font: inherit;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	appearance: none;
	transition: color 180ms ease, opacity 180ms ease;
}

.ds-filterable-gallery-grid__tab::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: var(--ds-filterable-gallery-grid-tab-underline-height);
	background: currentColor;
	content: "";
	opacity: 0;
	transform: scaleX(0.72);
	transform-origin: center;
	transition: opacity 180ms ease, transform 180ms ease;
}

.ds-filterable-gallery-grid__tab:hover,
.ds-filterable-gallery-grid__tab:focus-visible,
.ds-filterable-gallery-grid__tab.is-active {
	background: transparent !important;
	background-color: transparent !important;
	color: #4b514b;
}

.ds-filterable-gallery-grid__tab:active,
.ds-filterable-gallery-grid__tab:focus {
	background: transparent !important;
	background-color: transparent !important;
}

.ds-filterable-gallery-grid__tab.is-active::after {
	opacity: 1;
	transform: scaleX(1);
}

.ds-filterable-gallery-grid__tab:focus {
	outline: none;
}

.ds-filterable-gallery-grid__tab:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 5px;
}

.ds-filterable-gallery-grid.is-loading .ds-filterable-gallery-grid__tab,
.ds-filterable-gallery-grid.is-loading .ds-filterable-gallery-grid__load-more {
	pointer-events: none;
}

.ds-filterable-gallery-grid__panel {
	width: 100%;
}

.ds-filterable-gallery-grid__grid {
	display: flex;
	flex-direction: column;
	gap: var(--ds-filterable-gallery-grid-row-gap);
	width: 100%;
	opacity: 1;
	transform: translateY(0);
	transition: opacity 220ms ease, transform 220ms ease;
}

.ds-filterable-gallery-grid.is-transitioning .ds-filterable-gallery-grid__grid {
	opacity: 0;
	transform: translateY(12px);
}

.ds-filterable-gallery-grid__row {
	--ds-filterable-gallery-grid-row-columns: 3;
	--ds-filterable-gallery-grid-row-height: var(--ds-filterable-gallery-grid-image-height);
	display: grid;
	grid-template-columns: repeat(var(--ds-filterable-gallery-grid-row-columns), minmax(0, 1fr));
	gap: var(--ds-filterable-gallery-grid-column-gap);
	width: 100%;
}

.ds-filterable-gallery-grid__item {
	position: relative;
	display: block;
	width: 100%;
	height: var(--ds-filterable-gallery-grid-row-height);
	margin: 0;
	overflow: hidden;
	background: #f5f5f3;
}

.elementor-widget-ds-filterable-gallery-grid .ds-filterable-gallery-grid__link,
.ds-filterable-gallery-grid__link {
	display: block;
	width: 100%;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.ds-filterable-gallery-grid__link:hover,
.ds-filterable-gallery-grid__link:focus,
.ds-filterable-gallery-grid__link:focus-visible {
	color: inherit;
	text-decoration: none;
}

.ds-filterable-gallery-grid__link:focus {
	outline: none;
}

.ds-filterable-gallery-grid__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.elementor-widget-ds-filterable-gallery-grid .ds-filterable-gallery-grid .ds-filterable-gallery-grid__image,
.elementor-widget-ds-filterable-gallery-grid .ds-filterable-gallery-grid__image,
.ds-filterable-gallery-grid__image {
	display: block;
	width: 100% !important;
	max-width: none;
	height: 100% !important;
	object-fit: cover;
	object-position: center center;
	transform: scale(1);
	transition: transform var(--ds-filterable-gallery-grid-transition-duration) ease, opacity var(--ds-filterable-gallery-grid-transition-duration) ease;
}

.ds-filterable-gallery-grid__item:hover .ds-filterable-gallery-grid__image,
.ds-filterable-gallery-grid__item:focus-within .ds-filterable-gallery-grid__image {
	opacity: var(--ds-filterable-gallery-grid-hover-opacity);
	transform: scale(var(--ds-filterable-gallery-grid-hover-scale));
}

.ds-filterable-gallery-grid__load-more-wrap {
	display: flex;
	justify-content: var(--ds-filterable-gallery-grid-load-more-align);
	margin-top: var(--ds-filterable-gallery-grid-load-more-spacing);
	width: 100%;
}

.ds-filterable-gallery-grid__load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 14px 26px;
	border: 1px solid currentColor;
	border-radius: 0;
	background: transparent;
	color: #b8b6ac;
	font: inherit;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	appearance: none;
	transition: color 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.ds-filterable-gallery-grid__load-more[hidden] {
	display: none;
}

.ds-filterable-gallery-grid__load-more:hover,
.ds-filterable-gallery-grid__load-more:focus-visible {
	color: #4b514b;
}

.ds-filterable-gallery-grid__load-more:focus {
	outline: none;
}

.ds-filterable-gallery-grid__load-more:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 4px;
}

.ds-filterable-gallery-grid__empty {
	padding: 16px;
	border: 1px dashed #c3c4c7;
	color: #646970;
	background: #f6f7f7;
	font-size: 13px;
	line-height: 1.4;
}

@media (max-width: 1024px) {
	.ds-filterable-gallery-grid__tabs {
		gap: 12px min(var(--ds-filterable-gallery-grid-tabs-gap), 36px);
	}

	.ds-filterable-gallery-grid__row {
		grid-template-columns: repeat(var(--ds-filterable-gallery-grid-tablet-columns), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ds-filterable-gallery-grid__tabs {
		justify-content: center;
		gap: 10px 24px;
	}

	.ds-filterable-gallery-grid__row {
		grid-template-columns: repeat(var(--ds-filterable-gallery-grid-mobile-columns), minmax(0, 1fr));
	}
}
