.filterable-gallery {
	--filterable-gallery-accent: #bc9e6c;
	--filterable-gallery-cream: #faf9f6;
	box-sizing: border-box;
	width: 100%;
}

.filterable-gallery *,
.filterable-gallery *::before,
.filterable-gallery *::after {
	box-sizing: border-box;
}

.filterable-gallery__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0 0 28px;
}

.filterable-gallery__filter {
	appearance: none;
	margin: 0;
	padding: 10px 22px;
	border: 1px solid var(--filterable-gallery-accent);
	border-radius: 4px;
	background: transparent;
	color: var(--filterable-gallery-accent);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filterable-gallery__filter:hover,
.filterable-gallery__filter:focus-visible {
	background-color: var(--filterable-gallery-accent);
	color: #fff;
	outline: none;
}

.filterable-gallery__filter.is-active {
	background-color: var(--filterable-gallery-accent);
	border-color: var(--filterable-gallery-accent);
	color: #fff;
}

.filterable-gallery__layout {
	position: relative;
}

.filterable-gallery__pool {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.filterable-gallery__columns {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.filterable-gallery__col {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.filterable-gallery__item {
	margin: 0;
	overflow: hidden;
	border-radius: 10px;
	background: transparent;
}

.filterable-gallery__item.is-hidden {
	display: none;
}

.filterable-gallery__link {
	display: block;
	line-height: 0;
	text-decoration: none;
}

.filterable-gallery__img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
	border: 0;
}

.filterable-gallery--zoom .filterable-gallery__img {
	transform: scale(1);
	transition: transform 0.45s ease;
}

.filterable-gallery--zoom .filterable-gallery__item:hover .filterable-gallery__img {
	transform: scale(1.04);
}

.filterable-gallery__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background-color: #e8dcc8;
	color: #8a734c;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.filterable-gallery__item--3-4 .filterable-gallery__placeholder {
	aspect-ratio: 3 / 4;
}

.filterable-gallery__item--4-3 .filterable-gallery__placeholder {
	aspect-ratio: 4 / 3;
}

.filterable-gallery__item--16-9 .filterable-gallery__placeholder {
	aspect-ratio: 16 / 9;
}

.filterable-gallery__item--1-1 .filterable-gallery__placeholder {
	aspect-ratio: 1 / 1;
}

@media (prefers-reduced-motion: reduce) {
	.filterable-gallery__filter,
	.filterable-gallery--zoom .filterable-gallery__img {
		transition: none;
	}

	.filterable-gallery--zoom .filterable-gallery__item:hover .filterable-gallery__img {
		transform: none;
	}
}
