.wrapper {
	position: relative;
	display: inline-block;
	max-width: 400px;
	max-height: 300px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: var(--background-tertiary);
	line-height: 0;
}

.canvas,
.img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity 0.12s ease;
}

.img {
	position: absolute;
	inset: 0;
}

.badge {
	position: absolute;
	top: 6px;
	left: 6px;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.7);
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	pointer-events: none;
	line-height: 1.2;
}
