.dh-etsy-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(18px, 2.5vw, 46px);
	width: 100%;
}

.dh-etsy-item {
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.dh-etsy-item:hover,
.dh-etsy-item:focus-visible {
	color: inherit;
	text-decoration: none;
}

.dh-etsy-image-wrap {
	position: relative;
	display: block;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: rgba(255, 255, 255, 0.1);
}

.dh-etsy-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease, filter 220ms ease;
}

.dh-etsy-item:hover .dh-etsy-image,
.dh-etsy-item:focus-visible .dh-etsy-image {
	transform: scale(1.025);
	filter: brightness(1.025);
}

.dh-etsy-favorites {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 30px;
	padding: 4px 8px;
	border: 1px solid rgba(38, 58, 45, 0.16);
	border-radius: 999px;
	background: rgba(247, 242, 226, 0.92);
	box-shadow: 0 2px 7px rgba(20, 25, 16, 0.1);
	backdrop-filter: blur(4px);
	color: #263024;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1;
}

.dh-etsy-favorites > span {
	font-size: 1.2em;
	font-weight: 400;
	line-height: 1;
}

.dh-etsy-title,
.dh-etsy-price {
	display: block;
}

.dh-etsy-title {
	overflow: hidden;
	margin-top: 10px;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: clamp(0.96rem, 1.15vw, 1.08rem);
	line-height: 1.25;
}

.dh-etsy-price {
	margin-top: 3px;
	font-size: clamp(1rem, 1.25vw, 1.15rem);
	font-weight: 700;
	line-height: 1.25;
}

.dh-etsy-message {
	margin: 0;
}

.dh-etsy-grid + .wp-block-spacer {
	height: 18px !important;
}

@media (max-width: 700px) {
	.dh-etsy-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 14px;
	}

	.dh-etsy-item:nth-child(n + 5) {
		display: none;
	}

	.dh-etsy-title {
		display: -webkit-box;
		min-height: 2.5em;
		white-space: normal;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.dh-etsy-favorites {
		top: 7px;
		right: 7px;
		min-height: 27px;
		padding: 3px 7px;
		font-size: 0.72rem;
	}
}
