/* Product page card: the photo tilts with the pointer and catches a moving light. assets/js/product-card.js adds these classes. */
.oa-card-photo {
	display: block;
	isolation: isolate;
	position: relative;
	transform: perspective(1100px) rotateX(var(--oa-rx, 0deg)) rotateY(var(--oa-ry, 0deg));
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
	will-change: transform;
}

.oa-card-photo.is-hover {
	transition: transform 0.1s ease-out;
}

/* White light, blended so that it only shows on the metal and leaves the white background as it is. */
.oa-card-light {
	background:
		radial-gradient(circle at var(--oa-lx, 50%) var(--oa-ly, 30%), rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 34%),
		linear-gradient(115deg, rgba(255, 255, 255, 0) calc(var(--oa-s, 0.5) * 100% - 16%), rgba(255, 255, 255, 0.5) calc(var(--oa-s, 0.5) * 100%), rgba(255, 255, 255, 0) calc(var(--oa-s, 0.5) * 100% + 16%));
	inset: 0;
	mix-blend-mode: overlay;
	opacity: 0.9;
	pointer-events: none;
	position: absolute;
}

@media (prefers-reduced-motion: reduce) {
	.oa-card-photo {
		transform: none;
	}

	.oa-card-light {
		display: none;
	}
}
