/* GATO Hero Banner - vertical scrolling strip on the homepage hero */

/* Hidden until JS positions it inside the hero slider */
.gs-hero-banner {
    display: none;
}

/* Host slider gets relative positioning so the strip can overlay it */
.gs-hero-banner-host {
    position: relative;
}

.gs-hero-banner.gs-hero-banner--ready {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 46px;
    overflow: hidden;
    z-index: 30;
    box-sizing: border-box;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.18);
}

.gs-hero-banner-marquee {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gs-hero-banner-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: max-content;
    animation-name: gs-hero-banner-scroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

.gs-hero-banner--static .gs-hero-banner-track {
    height: 100%;
    justify-content: center;
    animation: none;
}

.gs-hero-banner-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.gs-hero-banner-item {
    display: inline-block;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    padding: 1.5rem 0;
    font-size: 14px;
    flex-shrink: 0;
}

@keyframes gs-hero-banner-scroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

@media (max-width: 767px) {
    .gs-hero-banner.gs-hero-banner--ready {
        width: 32px;
    }

    .gs-hero-banner-item {
        font-size: 11px;
        padding: 1rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gs-hero-banner-track {
        animation: none !important;
        height: 100%;
        justify-content: center;
    }

    .gs-hero-banner-group[aria-hidden="true"] {
        display: none;
    }
}
