.wm-filter-gallery {
	--wm-columns: 3;
	width: 100%;
}

.wm-filter-gallery__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 28px;
}

.wm-filter-gallery__tab {
	appearance: none;
	border: 1px solid #d7d7d7;
	background: #ffffff;
	color: #111111;
	border-radius: 999px;
	padding: 10px 22px;
	font: inherit;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.wm-filter-gallery__tab:hover,
.wm-filter-gallery__tab:focus-visible {
	transform: translateY(-1px);
	outline: none;
}

.wm-filter-gallery__tab.is-active {
	color: #ffffff;
	background: #111111;
	border-color: #111111;
}

.wm-filter-gallery__grid {
	display: grid;
	grid-template-columns: repeat(var(--wm-columns), minmax(0, 1fr));
	gap: 24px;
}

.wm-filter-gallery__item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 18px;
	background: #f5f5f5;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
	transition: opacity .22s ease, transform .22s ease;
}

.wm-filter-gallery__item:hover {
	transform: translateY(-3px);
}

.wm-filter-gallery__item.is-hidden {
	display: none;
}

.wm-filter-gallery__image {
	display: block;
	aspect-ratio: 4 / 3;
}

.wm-filter-gallery__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.wm-filter-gallery__item:hover .wm-filter-gallery__image img {
	transform: scale(1.04);
}

@media (max-width: 767px) {
	.wm-filter-gallery {
		--wm-columns: 1;
	}

	.wm-filter-gallery__tabs {
		justify-content: flex-start;
	}
}
