/* Page transitions (assets/js/matea-vt.js). Loaded only where the site has motion. */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
}

/* The header stays put while the page under it changes. */
header.wp-block-template-part { view-transition-name: matea-header; }

::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.3s; }

/* The product photo: from the card into the product page. */
.single-product .woocommerce-product-gallery__image:first-child img { view-transition-name: matea-product-photo; }
::view-transition-group(matea-product-photo) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
::view-transition-old(matea-product-photo),
::view-transition-new(matea-product-photo) { block-size: 100%; object-fit: contain; }
