/* AOIT Bunny hover preview.
   The static product image stays in place and holds the dimensions; the
   animated WebP is overlaid at the exact same box (width AND height) and fades
   in on hover. The wrap crops any overflow so a larger animated frame never
   spills out or changes the layout. */

.aoit-pvg-hover-wrap {
	position: relative;
	display: block;
	overflow: hidden;
	line-height: 0;       /* removes inline-image whitespace gap */
	width: 100%;
}

/* The wrapped static image defines the box size. */
.aoit-pvg-hover-wrap > img:not(.aoit-pvg-hover-overlay) {
	display: block;
	width: 100%;
	height: auto;
}

.aoit-pvg-hover-wrap > img.aoit-pvg-hover-overlay {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	min-height: 0 !important;
	object-fit: cover !important;     /* fill the box, crop excess */
	object-position: center !important;
	margin: 0 !important;
	padding: 0 !important;
	opacity: 0;
	transition: opacity 0.25s ease-in-out;
	pointer-events: none;
	z-index: 2;
}

.aoit-pvg-hover-wrap > img.aoit-pvg-hover-overlay.is-visible {
	opacity: 1;
}
