/* Location Box — classes/widgets/LocationBox/locationbox.php
   vw on the 1440 canvas like hero.css; px from 1024 down.
   The Columns control writes --lbx-cols-set, never --lbx-cols: Elementor's
   selector carries two classes and would outrank the breakpoints below. */

.lbx {
    --lbx-bg: #1C3244;
    --lbx-glow: rgba(48, 92, 124, .55);
    --lbx-card: #142535;
    --lbx-ink: #ffffff;
    --lbx-body: rgba(255, 255, 255, .72);
    --lbx-gold: #e8b64a;
    --lbx-btn-bg: #e8b64a;
    --lbx-btn-ink: #1c3244;
    --lbx-link: rgba(255, 255, 255, .88);
    --lbx-cols: var(--lbx-cols-set, 2);
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 5.56vw 130px;
    background-color: var(--lbx-bg);
    background-image: radial-gradient(70% 90% at 28% 45%, var(--lbx-glow) 0%, rgba(20, 42, 59, 0) 68%);
    color: var(--lbx-ink);
}

.lbx *,
.lbx *::before,
.lbx *::after {
    box-sizing: border-box;
}

.lbx__head {
    margin: 0 auto 4vw;
    text-align: center;
}

.lbx__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8vw;
    margin: 0 0 1.2vw;
}

.lbx__eyebrow-dash {
    flex: 0 0 auto;
    width: 1.75vw;
    height: max(2px, .14vw);
    background: var(--lbx-gold);
}

.lbx__eyebrow-text {
    font-size: max(12px, .94vw);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lbx-gold);
}

.lbx__title {
    max-width: 46vw;
    margin: 0 auto 1.1vw;
    font-size: max(32px, 4.4vw);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.01em;
    color: var(--lbx-ink);
}

.lbx__lead {
    max-width: 40vw;
    margin: 0 auto;
    font-size: max(15px, 1.35vw);
    line-height: 1.55;
    color: var(--lbx-body);
}

.lbx__lead p {
    margin: 0 0 1em;
}

.lbx__lead p:last-child {
    margin-bottom: 0;
}

.lbx--head-left .lbx__head {
    text-align: left;
}

.lbx--head-left .lbx__eyebrow {
    justify-content: flex-start;
}

.lbx--head-left .lbx__title,
.lbx--head-left .lbx__lead {
    margin-inline: 0;
}

.lbx__grid {
    display: grid;
    grid-template-columns: repeat(var(--lbx-cols), minmax(0, 1fr));
    gap: 3.4vw 1.7vw;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lbx__card {
    display: flex;
    align-items: flex-start;
    gap: 1.5vw;
    height: 100%;
    padding: 1.1vw 1.6vw 1.1vw 1.5vw;
    border-radius: 1.25vw;
    background: var(--lbx-card);
}

/* the photo rides above the card's top edge, as drawn */
.lbx__media {
    flex: 0 0 auto;
    width: 12.4vw;
    margin-top: -55px;
    overflow: hidden;
    border-radius: 1vw;
    aspect-ratio: var(--lbx-media-ratio, .79);
    background: rgba(255, 255, 255, .06);
}

.lbx__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lbx__body {
    min-width: 0;
    padding-top: .4vw;
}

.lbx__name {
    margin: 0 0 .9vw;
    font-size: max(18px, 1.55vw);
    font-weight: 700;
    line-height: 1.2;
    color: var(--lbx-ink);
}

.lbx__text {
    margin: 0 0 1vw;
    font-size: max(14px, 1.2vw);
    line-height: 1.6;
    color: var(--lbx-body);
}

.lbx__more {
    display: inline-flex;
    align-items: center;
    gap: .4vw;
    font-size: max(12px, 1vw);
    line-height: 1.4;
    color: var(--lbx-link);
    text-decoration: underline;
    text-underline-offset: .25em;
}

.lbx__more:hover,
.lbx__more:focus {
    color: #fff;
}

.lbx__more svg {
    width: max(11px, .9vw);
    height: max(11px, .9vw);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lbx__actions {
    display: flex;
    justify-content: center;
    margin-top: 3.4vw;
}

.lbx__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7vw;
    padding: 1.15vw 2.2vw;
    border: 0;
    border-radius: .56vw;
    background: var(--lbx-btn-bg);
    font-size: max(15px, 1.35vw);
    font-weight: 600;
    line-height: 1;
    color: var(--lbx-btn-ink);
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.lbx__btn:hover,
.lbx__btn:focus {
    background: #fff;
    transform: translateY(-2px);
}

/* Entrance — held at frame one by assets/css/reveal.css */
@media (prefers-reduced-motion: no-preference) {

    .lbx--animated .lbx__eyebrow,
    .lbx--animated .lbx__title,
    .lbx--animated .lbx__lead,
    .lbx--animated .lbx__item,
    .lbx--animated .lbx__actions {
        animation: lbx-up .7s cubic-bezier(.22, 1, .36, 1) both;
    }

    .lbx--animated .lbx__eyebrow { animation-delay: .08s; }
    .lbx--animated .lbx__title { animation-delay: .16s; }
    .lbx--animated .lbx__lead { animation-delay: .24s; }
    .lbx--animated .lbx__item:nth-child(1) { animation-delay: .32s; }
    .lbx--animated .lbx__item:nth-child(2) { animation-delay: .40s; }
    .lbx--animated .lbx__item:nth-child(3) { animation-delay: .48s; }
    .lbx--animated .lbx__item:nth-child(4) { animation-delay: .56s; }
    .lbx--animated .lbx__item:nth-child(n+5) { animation-delay: .64s; }
    .lbx--animated .lbx__actions { animation-delay: .72s; }
}

@keyframes lbx-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {

    .lbx {
        --lbx-cols: 1;
        padding: 56px 32px;
    }

    .lbx__head {
        margin-bottom: 36px;
    }

    .lbx__eyebrow {
        gap: 10px;
        margin-bottom: 14px;
    }

    .lbx__eyebrow-dash {
        width: 24px;
    }

    .lbx__eyebrow-text {
        font-size: 13px;
    }

    .lbx__title {
        max-width: none;
        margin-bottom: 12px;
        font-size: 40px;
    }

    .lbx__lead {
        max-width: 52ch;
        font-size: 17px;
    }

    .lbx__grid {
        gap: 34px 20px;
    }

    .lbx__card {
        gap: 20px;
        padding: 16px 22px 16px 20px;
        border-radius: 18px;
    }

    .lbx__media {
        width: 150px;
        margin-top: -20px;
        border-radius: 14px;
    }

    .lbx__body {
        padding-top: 4px;
    }

    .lbx__name {
        margin-bottom: 10px;
        font-size: 21px;
    }

    .lbx__text {
        margin-bottom: 12px;
        font-size: 16px;
    }

    .lbx__more {
        gap: 6px;
        font-size: 14px;
    }

    .lbx__more svg {
        width: 14px;
        height: 14px;
    }

    .lbx__actions {
        margin-top: 36px;
    }

    .lbx__btn {
        gap: 8px;
        padding: 16px 26px;
        border-radius: 8px;
        font-size: 17px;
    }
}

@media (max-width: 560px) {

    .lbx {
        padding: 40px 20px;
    }

    .lbx__title {
        font-size: 30px;
    }

    .lbx__lead {
        font-size: 16px;
    }

    /* the photo goes above the copy and the overhang comes off */
    .lbx__card {
        flex-direction: column;
        gap: 16px;
        padding: 18px;
    }

    .lbx__media {
        width: 100%;
        margin-top: 0;
        aspect-ratio: 1.5;
    }

    .lbx__actions {
        display: block;
    }

    .lbx__btn {
        width: 100%;
        padding: 15px 22px;
        font-size: 16px;
    }
}
