.vida {
    scroll-margin-top: var(--header-h);
    overflow-x: clip;
    background: var(--paper-2);
    color: var(--ink);
}

.vida__wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 4.2rem 1.15rem 4.8rem;
}

.vida__masthead {
    max-width: 34rem;
    margin-bottom: 2.4rem;
}

.vida__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 0.9rem;
    color: var(--navy);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vida__kicker::before {
    content: "";
    width: 2rem;
    height: 1px;
    background: var(--gold);
}

.vida h2 {
    margin: 0 0 0.85rem;
    color: var(--navy-ink);
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 5.2vw, 3.8rem);
    font-weight: 520;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.vida h2 em {
    display: block;
    font-style: italic;
    color: var(--navy);
}

.vida__lead {
    margin: 0;
    color: var(--muted);
}

.vida__mosaic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.vida__cell {
    min-width: 0;
    margin: 0;
}

.vida__shot {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.vida__shot:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

.vida__shot picture,
.vida__shot img,
.vida__ph {
    display: block;
    width: 100%;
    height: 100%;
}

.vida__shot img {
    object-fit: cover;
}

.vida__cell figcaption {
    margin: 0.55rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.vida__cell.is-hero.vida__ph,
.vida__cell.is-hero .vida__shot {
    min-height: 17rem;
}

.vida__ph {
    min-height: 11.5rem;
    background: var(--navy);
    color: rgba(255, 253, 248, 0.48);
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 520;
    letter-spacing: 0.08em;
}

.vida__ph span {
    display: flex;
    align-items: flex-end;
    height: 100%;
    min-height: inherit;
    padding: 1rem 1.1rem;
}

.vida__mosaic > :nth-child(2).vida__ph { background: #03574b; }
.vida__mosaic > :nth-child(3).vida__ph { background: #2e6faf; }
.vida__mosaic > :nth-child(4).vida__ph { background: #0b3a6e; }
.vida__mosaic > :nth-child(5).vida__ph { background: #9a7416; }
.vida__mosaic > :nth-child(6).vida__ph { background: #046e5f; }
.vida__mosaic > :nth-child(7).vida__ph { background: #07284c; }
.vida__mosaic > :nth-child(8).vida__ph { background: #1d5a90; }

.vida--resumen .vida__mosaic {
    grid-template-columns: 1fr;
}

.vida__close {
    position: relative;
    display: grid;
    justify-items: start;
    margin-top: 3rem;
    padding: 0.2rem 0 0.6rem;
}

.vida--resumen .vida__close {
    padding-right: 0;
}

.vida__tag {
    margin: 0 0 0.45rem;
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.vida__motto {
    margin: 0;
    max-width: 14ch;
    color: var(--navy-ink);
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 520;
    line-height: 1.08;
}

.vida__more {
    margin: 1.1rem 0 0;
}

.vida__more a {
    color: var(--teal);
    font-weight: 750;
}

.vida__more a:hover {
    color: var(--navy);
}

.vida__motto em {
    display: block;
    font-style: italic;
    color: var(--navy);
}

.vida__ambassador {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 5.4rem;
    height: auto;
    pointer-events: none;
}

.vida__facebook {
    display: inline-flex;
    margin-top: 1.1rem;
    color: var(--teal);
    font-weight: 750;
}

.lightbox[hidden] {
    display: none;
}

.lightbox:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 1.2rem;
}

.lightbox__scrim {
    position: absolute;
    inset: 0;
    background: rgba(6, 30, 57, 0.86);
}

.lightbox__stage {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: min(92vw, 1080px);
}

.lightbox__stage img {
    display: block;
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
}

.lightbox__caption {
    margin: 0.7rem 0 0;
    color: var(--paper-2);
    font-size: 0.92rem;
}

.lightbox__x,
.lightbox__nav {
    min-height: 2.6rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 253, 248, 0.28);
    border-radius: 999px;
    background: var(--navy);
    color: var(--paper-2);
    font-weight: 700;
}

.lightbox__x {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__nav.is-prev { left: 0.7rem; }
.lightbox__nav.is-next { right: 0.7rem; }

.lightbox__x:focus-visible,
.lightbox__nav:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 3px;
}

html.is-lightbox,
body.is-lightbox {
    overflow: hidden;
}

body.is-lightbox {
    position: fixed;
    width: 100%;
}

@media (min-width: 760px) {
    .vida__wrap {
        padding: 5rem 1.4rem 5.6rem;
    }

    .vida__mosaic {
        grid-template-columns: 1.15fr 1fr;
        grid-auto-rows: 14.5rem;
        gap: 0.95rem;
    }

    .vida--resumen .vida__mosaic {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 15rem;
    }

    .vida--resumen .vida__cell.is-hero,
    .vida--resumen .vida__cell.is-tall,
    .vida--resumen .vida__cell.is-wide {
        grid-row: auto;
        grid-column: auto;
    }

    .vida__cell.is-hero {
        grid-row: span 2;
    }

    .vida__ph,
    .vida__cell.is-hero.vida__ph,
    .vida__cell.is-hero .vida__shot {
        min-height: 0;
    }

    .vida__ambassador {
        width: 6.6rem;
    }

    .vida__close {
        padding-right: 8rem;
    }
}

@media (min-width: 1100px) {
    .vida__masthead {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.7fr);
        align-items: end;
        max-width: none;
        margin-bottom: 3rem;
        column-gap: 3.4rem;
    }

    .vida__kicker,
    .vida h2 {
        grid-column: 1;
    }

    .vida__lead {
        grid-column: 2;
        padding-bottom: 0.3rem;
    }

    .vida__mosaic {
        grid-template-columns: 1.45fr 0.95fr 0.85fr;
        grid-auto-rows: 14rem;
        gap: 1.05rem;
    }

    .vida--resumen .vida__mosaic {
        grid-template-columns: 1fr 1fr 1fr;
        grid-auto-rows: 16rem;
    }

    .vida__cell.is-hero,
    .vida__cell.is-tall {
        grid-row: span 2;
    }

    .vida__cell.is-wide:nth-child(n + 5) {
        grid-column: span 2;
    }

    .vida__ambassador {
        width: 7.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vida__shot img {
        transition: none;
    }
}
