/* Ludwig Favre — Mockup Animation (Ken Burns CSS pur) */

/* Wrap optionnel pour clipper le débordement quand le JS arrive à wrapper */
.lfv-anim-wrap {
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

.lfv-anim-wrap > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animation auto-déclenchée — aucune dépendance JS pour le démarrage.
   Lecture UNIQUE : iteration-count: 1 + fill-mode forwards. */
img[data-lfv-animate] {
    animation-name: lfv-kenburns;
    animation-duration: 6s;
    animation-timing-function: linear;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-direction: normal;
    transform-origin: 50% 46%;
    will-change: transform;
}

/* Si l'image a déjà joué (marqueur posé par JS sur animationend), on stoppe
   tout — nécessaire si WoodMart re-rend l'élément ou recharge la galerie. */
img[data-lfv-animate].lfv-played {
    animation: none !important;
    transform: scale(1.3);
}

@keyframes lfv-kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.3); }
}

@media (prefers-reduced-motion: reduce) {
    img[data-lfv-animate] {
        animation: none;
        transform: scale(1);
    }
}
