.et_pb_code_inner:has(.acf_image),
.et_pb_code_inner:has(.acf_image) *,
.et_pb_text_inner:has(.acf_image) *,
.et_pb_text_inner:has(.acf_image) {
    height: inherit;
    max-height: inherit;
}

*:has(>.acf_image) {
    height: inherit;
    max-height: inherit;
}

.acf_image {
    max-width: 100%;
    vertical-align: middle;
    max-height: inherit;

    &.full {
        width: 100%;
    }

    &.cover {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
    }

}

.et_pb_code:has(.acf_image.cover),
.et_pb_text:has(.acf_image.cover),
.et-l--body:has(.acf_image.cover),
.et_pb_code_inner:has(.acf_image.cover),
.et_pb_text_inner:has(.acf_image.cover) {
    position: relative;
    height: 100%;
}

.at-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    display: flex;

    .track {
        display: flex;
        white-space: nowrap;
        will-change: transform;
    }
}


@keyframes at-marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Optionnel : Pause au survol */
/* .at-marquee-wrapper:hover .track {
  animation-play-state: paused;
} */