/*
 * Visoop — Post Featured Image widget.
 * The wrapper uses flex so the alignment control (justify-content) works
 * regardless of the inner width. Hover variants apply on the wrapper class
 * via prefix_class so they don't bleed between siblings.
 */
.visoop-post-fi {
	display: flex;
	justify-content: center;
	width: 100%;
}
.visoop-post-fi__inner {
	display: inline-block;
	overflow: hidden;
	max-width: 100%;
	position: relative;
	line-height: 0;
}
.visoop-post-fi__inner img,
.visoop-post-fi__img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	/* Harmless while height is auto; when the Height control fixes a height
	   (or an aspect ratio is set) it crops instead of squashing the image. */
	object-fit: cover;
	transition: transform .5s ease, filter .4s ease;
}
.visoop-post-fi__link {
	display: block;
	line-height: 0;
}
.visoop-post-fi__caption {
	display: block;
	margin-top: 10px;
	font-size: 13px;
	font-style: italic;
	color: #6b7280;
	text-align: center;
	line-height: 1.4;
}

/* ── Hover effects (prefix_class on wrapper) ───────────────────────────── */
.visoop-post-fi--hover-zoom .visoop-post-fi__img:hover {
	transform: scale(1.06);
}
.visoop-post-fi--hover-grayscale .visoop-post-fi__img {
	filter: grayscale(100%);
}
.visoop-post-fi--hover-grayscale .visoop-post-fi__img:hover {
	filter: grayscale(0);
}
.visoop-post-fi--hover-lift .visoop-post-fi__inner {
	transition: transform .35s ease, box-shadow .35s ease;
}
.visoop-post-fi--hover-lift .visoop-post-fi__inner:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .25);
}
