/* Centered homepage introduction with an admin-managed image gallery. */

body.home-brand-theme .hero.hero-showcase {
    display: block;
    min-height: 0;
    padding: 60px 0 30px;
    overflow: hidden;
    background: #f8f9fb;
    border-bottom: 1px solid #edf0f5;
}

body.home-brand-theme .hero.hero-showcase::before,
body.home-brand-theme .hero.hero-showcase::after {
    display: none;
}

body.home-brand-theme .hero-showcase-heading {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
}

body.home-brand-theme .hero-intent-switch {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    gap: 3px;
    border: 1px solid #d3d9e2;
    border-radius: 999px;
    background: #fff;
    margin-bottom: 42px;
}

body.home-brand-theme .hero-intent-switch a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 10px 23px;
    border-radius: 999px;
    color: #475569;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 650;
    text-decoration: none;
    color: #475569 !important;
}

body.home-brand-theme .hero-intent-switch a.is-selected {
    background: #172033;
    color: #fff !important;
}

body.home-brand-theme .hero-intent-switch a:not(.is-selected):hover {
    background: #f1f5f9;
    color: #172033 !important;
}

body.home-brand-theme .hero-showcase-title {
    margin: 0;
    max-width: none !important;
    color: #172033 !important;
    font-size: clamp(30px, 4.1vw, 30px) !important;
    font-weight: 700 !important;
    line-height: 1.16 !important;
}

body.home-brand-theme .hero-showcase-title span {
    color: #2453b9;
}

body.home-brand-theme .hero-showcase-description {
    max-width: 790px !important;
    margin: 20px auto 0;
    color: #667085 !important;
    font-size: clamp(14px, 1.2vw, 18px) !important;
    font-weight: 400 !important;
}

body.home-brand-theme .hero-showcase-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    margin-top: 30px;
    padding: 14px 26px;
    border: 1px solid #2453b9;
    border-radius: 14px;
    background: #2453b9;
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    transition: background .2s ease;
}

body.home-brand-theme .hero-showcase-cta:hover {
    background: #194399;
    border-color: #194399;
}

body.home-brand-theme .hero-showcase-cta i {
    color: inherit !important;
}

body.home-brand-theme .hero-showcase :is(a, button):focus-visible,
body.home-brand-theme .hero-showcase-gallery:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 4px;
}

body.home-brand-theme .hero-showcase-gallery {
    position: relative;
    margin-top: 30px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #c4cfde transparent;
}

body.home-brand-theme .hero-showcase-track {
    display: flex;
    align-items: flex-end;
    gap: clamp(16px, 1.7vw, 30px);
    width: max-content;
    min-width: 100%;
    justify-content: center;
    padding: 18px 28px 8px;
}

body.home-brand-theme .hero-showcase-tile {
    --hero-tile-color: #f4a23e;
    position: relative;
    flex: 0 0 clamp(200px, 18vw, 310px);
    width: clamp(200px, 18vw, 310px);
    height: clamp(270px, 23vw, 370px);
    margin: 0;
    scroll-snap-align: center;
}

body.home-brand-theme .hero-showcase-tile:nth-child(6n + 2) {
    --hero-tile-color: #b59aff;
}

body.home-brand-theme .hero-showcase-tile:nth-child(6n + 3) {
    --hero-tile-color: #68d5c5;
}

body.home-brand-theme .hero-showcase-tile:nth-child(6n + 4) {
    --hero-tile-color: #f7d971;
}

body.home-brand-theme .hero-showcase-tile:nth-child(6n + 5) {
    --hero-tile-color: #ac91f5;
}

body.home-brand-theme .hero-showcase-tile:nth-child(6n) {
    --hero-tile-color: #f29b37;
}

body.home-brand-theme .hero-showcase-tile:nth-child(even) {
    height: clamp(230px, 19vw, 310px);
    margin-bottom: 20px;
}

body.home-brand-theme .hero-showcase-media {
    position: relative;
    width: 100%;
    height: 100%;
    isolation: isolate;
}

body.home-brand-theme .hero-showcase-media::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 16% 0 0;
    border-radius: 14px;
    background: var(--hero-tile-color);
}

body.home-brand-theme .hero-showcase-media>img,
body.home-brand-theme .hero-showcase-image-link,
body.home-brand-theme .hero-showcase-image-link>img,
body.home-brand-theme .hero-showcase-glb,
body.home-brand-theme .hero-showcase-glb>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

body.home-brand-theme .hero-showcase-glb {
    position: relative;
    touch-action: pan-y;
}

body.home-brand-theme .hero-showcase-image-link {
    border-radius: 14px;
    text-decoration: none;
}

body.home-brand-theme .hero-showcase-image-link>img {
    transition: transform .2s ease;
}

body.home-brand-theme .hero-showcase-image-link:hover>img {
    transform: translateY(-3px);
}

body.home-brand-theme .hero-showcase-product-link {
    position: absolute;
    z-index: 5;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff;
    color: #172033 !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
    box-shadow: 0 2px 10px #17203312;
}

body.home-brand-theme .hero-showcase-glb .product-glb-activate {
    top: 12px;
    bottom: auto;
}

body.home-brand-theme .hero-showcase-tile.is-cover .hero-showcase-media {
    overflow: hidden;
    border-radius: 14px;
}

body.home-brand-theme .hero-showcase-tile.is-cover img {
    object-fit: cover;
    object-position: center;
}

body.home-brand-theme .hero-showcase-caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 1800px) {
    body.home-brand-theme .hero-showcase-tile {
        flex-basis: 290px;
        width: 290px;
    }
}

@media (max-width: 767px) {
    body.home-brand-theme .hero.hero-showcase {
        padding-top: 28px;
        padding-bottom: 20px;
    }
    body.home-brand-theme .hero-intent-switch {
        margin-bottom: 28px;
    }
    body.home-brand-theme .hero-intent-switch a {
        padding: 9px 16px;
        font-size: 11px;
    }
    body.home-brand-theme .hero-showcase-title {
        font-size: clamp(30px, 6.5vw, 44px) !important;
        letter-spacing: -1px;
    }
    body.home-brand-theme .hero-showcase-title span {
        display: block;
    }
    body.home-brand-theme .hero-showcase-description {
        margin-top: 16px;
    }
    body.home-brand-theme .hero-showcase-cta {
        margin-top: 24px;
    }
    body.home-brand-theme .hero-showcase-gallery {
        margin-top: 20px;
    }
    body.home-brand-theme .hero-showcase-track {
        gap: 16px;
        padding-inline: 20px;
    }
    body.home-brand-theme .hero-showcase-tile {
        flex-basis: 210px;
        width: 210px;
        height: 270px;
    }
    body.home-brand-theme .hero-showcase-tile:nth-child(even) {
        height: 230px;
        margin-bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home-brand-theme .hero-showcase-cta,
    body.home-brand-theme .hero-showcase-image-link>img {
        transition: none;
        transform: none;
    }
}


/* Continuous leftward gallery; native scrolling remains available when paused. */

body.home-brand-theme .hero-showcase-sequence {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    gap: inherit;
    width: max-content;
}

body.home-brand-theme .hero-showcase-gallery.is-marquee {
    scroll-snap-type: none;
    scroll-behavior: auto;
    scrollbar-width: none;
}

body.home-brand-theme .hero-showcase-gallery.is-marquee::-webkit-scrollbar {
    display: none;
}

body.home-brand-theme .hero-showcase-gallery.is-marquee .hero-showcase-track {
    justify-content: flex-start;
    min-width: 0;
}