/**
 * Event pictures in The Events Calendar's List and Day views (/eventi/),
 * framed as set in Nuovo Evento — see includes/event-framing.php.
 *
 * The same rules as the Events List widget and the wizard's preview: a 3:2
 * box, the picture filling it, the crop as object-position plus a scale
 * around that same point. Selectors carry the class twice to win over TEC's
 * own `.tribe-common … img { height: auto }` without !important.
 */

.frantoio-framed.frantoio-framed {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    height: auto;
}

.frantoio-framed.frantoio-framed img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: var(--frantoio-x, 50%) var(--frantoio-y, 50%);
    transform-origin: var(--frantoio-x, 50%) var(--frantoio-y, 50%);
    transform: scale(var(--frantoio-zoom, 1));
}

.frantoio-framed.frantoio-framed.is-contain img {
    object-fit: contain;
}

.frantoio-framed.frantoio-framed.is-contain img.frantoio-framed-backdrop {
    object-fit: cover;
    filter: blur(18px) brightness(0.55);
    transform: scale(1.2);
}

.frantoio-framed.frantoio-framed.is-fill img {
    object-fit: fill;
}
