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

.ffv-item {
	margin: 0;
	text-align: center;
	transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ffv-media {
	display: block;
	overflow: hidden;
}

.ffv-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.ffv-hover-zoom-yes .ffv-item:hover .ffv-media img {
	transform: scale(1.05);
}

.ffv-title {
	margin: 12px 0 0;
}

.ffv-title a {
	color: inherit;
	text-decoration: none;
}

.ffv-count {
	display: block;
	margin-top: 4px;
	font-size: 0.875em;
	opacity: 0.7;
}

/* Flower with no photo at all: keep the box the same height as the others. */
.ffv-no-image {
	display: block;
	aspect-ratio: 1 / 1;
	background: #f0f0f1;
}

.ffv-empty {
	padding: 24px;
	border: 1px dashed #c3c4c7;
	text-align: center;
	color: #646970;
}

@media (max-width: 1024px) {
	.ffv-grid {
		grid-template-columns: repeat(var(--ffv-columns-tablet, 3), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ffv-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}
