/*
 * LNK Hero - structure « cote a cote » (texte et image, rendu de la 2.x).
 * Chargee seulement sur une page qui affiche une banniere de cette structure,
 * apres hero.css.
 *
 * @author    LNKBOOT
 * @copyright LNKBOOT
 * @license   Proprietaire
 */

.lnk-hero__inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.lnk-hero--img-left .lnk-hero__inner {
    flex-direction: row-reverse;
}

/* Video hebergee : l'image (affiche) dessous, la video par-dessus ; sur mobile et en mouvement
   reduit, l'image seule. */
.lnk-hero__visual > .lnk-hero__media--video { position: relative; display: block; max-width: 100%; min-width: 0; }
.lnk-hero__media--video > picture, .lnk-hero__media--video > .lnk-hero__image { display: block; }
.lnk-hero__media--video > .lnk-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
@media (prefers-reduced-motion: reduce) {
    .lnk-hero__media--video > .lnk-hero__video { display: none; }
}

/* Alignement vertical du texte dans sa colonne ; colonnes empilees sous 992 px : sans objet. */
@media (min-width: 992px) {
    .lnk-hero--va-top .lnk-hero__content { align-self: flex-start; }
    .lnk-hero--va-bottom .lnk-hero__content { align-self: flex-end; }
}

.lnk-hero__content {
    flex: 1 1 55%;
    min-width: 0;
}

.lnk-hero--no-image .lnk-hero__content {
    flex-basis: 100%;
}

.lnk-hero__visual {
    flex: 1 1 45%;
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lnk-hero__visual > picture {
    display: block;
    max-width: 100%;
    min-width: 0;
}

.lnk-hero__image {
    display: block;
    max-width: 100%;
    height: auto;
}

.lnk-hero__visual--badge-only {
    flex: 0 0 140px;
    min-height: 140px;
}

@media (max-width: 991px) {
    .lnk-hero__inner,
    .lnk-hero--img-left .lnk-hero__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
    }

    .lnk-hero__visual {
        order: 2;
    }
}
/* Fond « module » : le widget d'un autre module a la place de l'image ; le theme l'habille. */
.lnk-hero__visual.lnk-hero__aside { flex-direction: column; align-items: stretch; justify-content: center; }
