.sm-ford-oem-single-active .sm-ford-gallery-content {
    --sm-ford-blue: #00095b;
    --sm-ford-mid-blue: #102b4e;
    --sm-ford-bright-blue: #066fea;
    --sm-ford-light: #f1f4f6;
    --sm-ford-line: #d8e0e7;
    color: var(--sm-ford-blue);
    background: #fff;
    font-family: "Ford Antenna", "FordAntenna", Arial, sans-serif;
}

.sm-ford-gallery-content *,
.sm-ford-gallery-content *::before,
.sm-ford-gallery-content *::after {
    box-sizing: border-box;
}

.sm-ford-gallery-content__wrap {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.sm-ford-gallery-content__intro,
.sm-ford-gallery-content__versions,
.sm-ford-gallery-content__details,
.sm-ford-gallery-content__technology {
    padding: 88px 0;
}

.sm-ford-gallery-content__intro {
    text-align: center;
    background: #fff;
}

.sm-ford-gallery-content__eyebrow {
    margin: 0 0 14px;
    color: var(--sm-ford-bright-blue);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sm-ford-gallery-content h2,
.sm-ford-gallery-content h3,
.sm-ford-gallery-content p {
    font-family: inherit;
}

.sm-ford-gallery-content h2 {
    max-width: 860px;
    margin: 0 auto;
    color: var(--sm-ford-blue);
    font-size: clamp(34px, 4.2vw, 60px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.035em;
}

.sm-ford-gallery-content__lead {
    max-width: 760px;
    margin: 24px auto 0;
    color: #42526b;
    font-size: 17px;
    line-height: 1.65;
}

.sm-ford-gallery-content__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 880px;
    margin: 46px auto 0;
    border: 1px solid var(--sm-ford-line);
    background: #fff;
}

.sm-ford-gallery-content__metric {
    min-height: 130px;
    padding: 28px 20px;
}

.sm-ford-gallery-content__metric + .sm-ford-gallery-content__metric {
    border-left: 1px solid var(--sm-ford-line);
}

.sm-ford-gallery-content__metric strong {
    display: block;
    color: var(--sm-ford-bright-blue);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
}

.sm-ford-gallery-content__metric span {
    display: block;
    margin-top: 12px;
    color: #445268;
    font-size: 13px;
    line-height: 1.45;
}

.sm-ford-gallery-content__versions {
    background: var(--sm-ford-light);
}

.sm-ford-gallery-content__versions h2,
.sm-ford-gallery-content__details h2,
.sm-ford-gallery-content__technology h2 {
    max-width: none;
    margin: 0;
    font-size: clamp(32px, 3.6vw, 48px);
}

.sm-ford-gallery-content__version-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 42px;
}

.sm-ford-gallery-content__version-card {
    min-height: 190px;
    padding: 34px;
    border-top: 5px solid var(--sm-ford-bright-blue);
    background: #fff;
    box-shadow: 0 16px 38px rgba(16, 43, 78, .08);
}

.sm-ford-gallery-content__version-card h3 {
    margin: 0;
    color: var(--sm-ford-blue);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.15;
}

.sm-ford-gallery-content__version-card p {
    margin: 18px 0 0;
    color: #526174;
    font-size: 15px;
    line-height: 1.65;
}

.sm-ford-gallery {
    padding: 88px max(24px, calc((100vw - 1600px) / 2));
    background: #091525;
}

.sm-ford-gallery__heading {
    width: min(1180px, 100%);
    margin: 0 auto 38px;
}

.sm-ford-gallery__heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 4vw, 56px);
}

.sm-ford-gallery__heading > p:last-child {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
}

.sm-ford-gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 220px;
    gap: 10px;
    width: min(1600px, 100%);
    margin: 0 auto;
}

.sm-ford-gallery__item {
    position: relative;
    grid-column: span 4;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #152235;
    cursor: zoom-in;
    appearance: none;
}

.sm-ford-gallery__item:first-child {
    grid-column: span 8;
    grid-row: span 2;
}

.sm-ford-gallery__item:nth-child(2),
.sm-ford-gallery__item:nth-child(3) {
    grid-column: span 4;
}

.sm-ford-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform .55s ease, filter .55s ease;
}

.sm-ford-gallery__item::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 9, 91, 0),
        rgba(0, 9, 91, .72)
    );
    pointer-events: none;
}

.sm-ford-gallery__item span {
    position: absolute;
    z-index: 2;
    right: 22px;
    bottom: 18px;
    left: 22px;
    color: #fff;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .12em;
    text-align: left;
    text-transform: uppercase;
}

.sm-ford-gallery__item i {
    position: absolute;
    z-index: 3;
    top: 18px;
    right: 18px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 9, 91, .38);
    font-size: 28px;
    font-style: normal;
    font-weight: 300;
    line-height: 1;
    transition: background .25s ease, transform .25s ease;
}

.sm-ford-gallery__item:hover img,
.sm-ford-gallery__item:focus-visible img {
    filter: brightness(.84);
    transform: scale(1.045);
}

.sm-ford-gallery__item:hover i,
.sm-ford-gallery__item:focus-visible i {
    background: var(--sm-ford-bright-blue);
    transform: rotate(90deg);
}

.sm-ford-gallery__item:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.sm-ford-gallery-content__details {
    background: #fff;
}

.sm-ford-gallery-content__detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 44px;
}

.sm-ford-gallery-content__detail-card {
    min-height: 250px;
    padding: 38px;
    border: 1px solid var(--sm-ford-line);
    background: #fff;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.sm-ford-gallery-content__detail-card:hover {
    border-color: var(--sm-ford-bright-blue);
    box-shadow: 0 20px 45px rgba(16, 43, 78, .1);
    transform: translateY(-4px);
}

.sm-ford-gallery-content__detail-card > span {
    display: block;
    margin-bottom: 20px;
    color: var(--sm-ford-bright-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sm-ford-gallery-content__detail-card h3 {
    margin: 0;
    color: var(--sm-ford-blue);
    font-size: clamp(26px, 2.5vw, 38px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.025em;
}

.sm-ford-gallery-content__detail-card p {
    margin: 20px 0 0;
    color: #526174;
    font-size: 15px;
    line-height: 1.7;
}

.sm-ford-gallery-content__technology {
    border-top: 1px solid var(--sm-ford-line);
    border-bottom: 18px solid #fff;
    background: #edf3f7;
}

.sm-ford-gallery-content__technology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 42px;
}

.sm-ford-gallery-content__technology-grid article {
    min-height: 210px;
    padding: 30px;
    border-top: 5px solid var(--sm-ford-bright-blue);
    background: #fff;
    box-shadow: 0 14px 32px rgba(16, 43, 78, .08);
}

.sm-ford-gallery-content__technology-grid h3 {
    margin: 0;
    color: var(--sm-ford-blue);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}

.sm-ford-gallery-content__technology-grid p {
    margin: 17px 0 0;
    color: #526174;
    font-size: 14px;
    line-height: 1.65;
}

.sm-ford-gallery-lightbox[hidden] {
    display: none !important;
}

.sm-ford-gallery-lightbox {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 82px;
    align-items: center;
    padding: 40px;
    background: rgba(3, 10, 20, .96);
}

.sm-ford-gallery-lightbox figure {
    display: flex;
    width: 100%;
    height: calc(100vh - 80px);
    margin: 0;
    align-items: center;
    justify-content: center;
}

.sm-ford-gallery-lightbox figure img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: contain;
}

.sm-ford-gallery-lightbox figcaption {
    position: absolute;
    right: 120px;
    bottom: 22px;
    left: 120px;
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 14px;
}

.sm-ford-gallery-lightbox button {
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    appearance: none;
}

.sm-ford-gallery-lightbox__close {
    position: absolute;
    z-index: 4;
    top: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 32px;
}

.sm-ford-gallery-lightbox__previous,
.sm-ford-gallery-lightbox__next {
    width: 58px;
    height: 82px;
    margin: auto;
    font-size: 52px;
    line-height: 1;
}

.sm-ford-gallery-lightbox button:hover,
.sm-ford-gallery-lightbox button:focus-visible {
    border-color: var(--sm-ford-bright-blue);
    background: var(--sm-ford-bright-blue);
    outline: none;
}

body.sm-ford-gallery-lightbox-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .sm-ford-gallery-content__intro,
    .sm-ford-gallery-content__versions,
    .sm-ford-gallery-content__details,
    .sm-ford-gallery-content__technology {
        padding: 64px 0;
    }

    .sm-ford-gallery-content__metrics,
    .sm-ford-gallery-content__technology-grid {
        grid-template-columns: 1fr;
    }

    .sm-ford-gallery-content__metric + .sm-ford-gallery-content__metric {
        border-top: 1px solid var(--sm-ford-line);
        border-left: 0;
    }

    .sm-ford-gallery-content__version-grid,
    .sm-ford-gallery-content__detail-grid {
        grid-template-columns: 1fr;
    }

    .sm-ford-gallery {
        padding: 64px 0;
    }

    .sm-ford-gallery__heading {
        width: calc(100% - 40px);
    }

    .sm-ford-gallery__grid {
        display: flex;
        gap: 12px;
        width: 100%;
        padding: 0 20px 14px;
        overflow-x: auto;
        scroll-padding-left: 20px;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    .sm-ford-gallery__item,
    .sm-ford-gallery__item:first-child,
    .sm-ford-gallery__item:nth-child(2),
    .sm-ford-gallery__item:nth-child(3) {
        flex: 0 0 min(82vw, 570px);
        height: 360px;
        scroll-snap-align: start;
    }

    .sm-ford-gallery-lightbox {
        grid-template-columns: 54px minmax(0, 1fr) 54px;
        padding: 18px;
    }

    .sm-ford-gallery-lightbox__previous,
    .sm-ford-gallery-lightbox__next {
        width: 46px;
        height: 64px;
        font-size: 42px;
    }

    .sm-ford-gallery-lightbox figcaption {
        right: 82px;
        left: 82px;
    }
}

@media (max-width: 560px) {
    .sm-ford-gallery-content__wrap {
        width: calc(100% - 32px);
    }

    .sm-ford-gallery-content__intro,
    .sm-ford-gallery-content__versions,
    .sm-ford-gallery-content__details,
    .sm-ford-gallery-content__technology {
        padding: 52px 0;
    }

    .sm-ford-gallery-content h2 {
        font-size: 34px;
        line-height: 1.02;
    }

    .sm-ford-gallery-content__lead {
        font-size: 15px;
    }

    .sm-ford-gallery-content__version-card,
    .sm-ford-gallery-content__detail-card {
        min-height: 0;
        padding: 26px 22px;
    }

    .sm-ford-gallery {
        padding: 52px 0;
    }

    .sm-ford-gallery__heading {
        width: calc(100% - 32px);
        margin-bottom: 28px;
    }

    .sm-ford-gallery__grid {
        padding-right: 16px;
        padding-left: 16px;
        scroll-padding-left: 16px;
    }

    .sm-ford-gallery__item,
    .sm-ford-gallery__item:first-child,
    .sm-ford-gallery__item:nth-child(2),
    .sm-ford-gallery__item:nth-child(3) {
        flex-basis: 86vw;
        height: 270px;
    }

    .sm-ford-gallery__item span {
        right: 16px;
        bottom: 14px;
        left: 16px;
    }

    .sm-ford-gallery-lightbox {
        display: block;
        padding: 70px 14px 80px;
    }

    .sm-ford-gallery-lightbox figure {
        height: calc(100vh - 150px);
    }

    .sm-ford-gallery-lightbox figure img {
        max-height: calc(100vh - 190px);
    }

    .sm-ford-gallery-lightbox__close {
        top: 14px;
        right: 14px;
        width: 46px;
        height: 46px;
    }

    .sm-ford-gallery-lightbox__previous,
    .sm-ford-gallery-lightbox__next {
        position: absolute;
        z-index: 4;
        bottom: 18px;
        width: 54px;
        height: 48px;
    }

    .sm-ford-gallery-lightbox__previous {
        left: 16px;
    }

    .sm-ford-gallery-lightbox__next {
        right: 16px;
    }

    .sm-ford-gallery-lightbox figcaption {
        right: 82px;
        bottom: 30px;
        left: 82px;
        display: block;
        text-align: center;
    }

    .sm-ford-gallery-lightbox figcaption span {
        display: block;
        margin-top: 4px;
        opacity: .72;
    }
}
