.kh-gallery-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.kh-gallery-category-badge {
	display: inline-block;
	padding: 0.25rem 0.85rem;
	border-radius: 999px;
	background: #ab1917;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.kh-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
}

.kh-gallery-item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 4px;
	aspect-ratio: 1 / 1;
}

.kh-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.kh-gallery-item:hover img,
.kh-gallery-item:focus img {
	transform: scale(1.08);
}

.kh-gallery-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1rem;
	text-align: center;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.kh-gallery-item:hover .kh-gallery-overlay,
.kh-gallery-item:focus .kh-gallery-overlay {
	opacity: 1;
}

.kh-gallery-zoom-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1.5px solid #fff;
	color: #fff;
	flex-shrink: 0;
	transform: scale(0.8);
	transition: transform 0.25s ease;
}

.kh-gallery-item:hover .kh-gallery-zoom-icon,
.kh-gallery-item:focus .kh-gallery-zoom-icon {
	transform: scale(1);
}

.kh-gallery-caption {
	color: #fff;
	font-size: 0.85rem;
	line-height: 1.35;
	max-height: 100%;
	overflow: hidden;
}
