:root {
    --ampq-hero-accent: #d9bd35;
    --ampq-hero-accent-soft: #f8f3d9;
    --ampq-hero-ink: #111111;
    --ampq-hero-surface: #ffffff;
    --ampq-hero-line: #e7e7e7;
    --ampq-hero-radius: 14px;
    --ampq-hero-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
}

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

.ampq-hero {
    --ampq-hero-duration: 6000ms;
    position: relative;
    width: 100%;
    margin: 0 0 40px;
    color: var(--ampq-hero-ink);
    isolation: isolate;
}

.ampq-hero__viewport {
    position: relative;
    width: 100%;
    height: clamp(280px, 20.833vw, 440px);
    overflow: hidden;
    background: #080808;
    touch-action: pan-y;
}

.ampq-hero__track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.ampq-hero.is-ready .ampq-hero__track {
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ampq-hero__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
}

.ampq-hero:not(.is-ready) .ampq-hero__slide:not(:first-child) {
    display: none;
}

.ampq-hero__slide-link,
.ampq-hero__slide picture,
.ampq-hero__image {
    display: block;
    width: 100%;
    height: 100%;
}

.ampq-hero__slide-link {
    color: inherit;
    text-decoration: none;
}

.ampq-hero__image {
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.ampq-hero__navigation {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px 52px;
    width: min(calc(100% - 32px), 1600px);
    min-height: 58px;
    margin: -29px auto 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: var(--ampq-hero-radius);
    box-shadow: var(--ampq-hero-shadow);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.ampq-hero:not(.is-ready) .ampq-hero__navigation {
    display: none;
}

.ampq-hero__tabs {
    display: flex;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.ampq-hero__tabs::-webkit-scrollbar {
    display: none;
}

.ampq-hero__tab,
.ampq-hero__control {
    min-width: 0;
    min-height: 56px;
    padding: 0;
    color: var(--ampq-hero-ink);
    font: inherit;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ampq-hero__tab {
    position: relative;
    flex: 1 0 180px;
    padding: 0 20px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    scroll-snap-align: center;
    transition: color 180ms ease, background-color 180ms ease;
}

.ampq-hero__tab + .ampq-hero__tab {
    border-left: 1px solid var(--ampq-hero-line);
}

.ampq-hero__tab::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    content: "";
    background: var(--ampq-hero-accent);
    transform: scaleX(0);
    transform-origin: left center;
}

.ampq-hero.is-ready .ampq-hero__tab.is-active::after {
    animation: ampq-hero-progress var(--ampq-hero-duration) linear forwards;
}

.ampq-hero.is-paused .ampq-hero__tab.is-active::after {
    animation-play-state: paused;
}

.ampq-hero__tab:hover,
.ampq-hero__tab.is-active {
    color: #000000;
    background: var(--ampq-hero-accent-soft);
}

.ampq-hero__control {
    display: grid;
    place-items: center;
    width: 52px;
    border-right: 1px solid var(--ampq-hero-line);
    transition: color 180ms ease, background-color 180ms ease;
}

.ampq-hero__control--next {
    border-right: 1px solid var(--ampq-hero-line);
    border-left: 1px solid var(--ampq-hero-line);
}

.ampq-hero__control--rotation {
    border-right: 0;
}

.ampq-hero__control:hover {
    color: #000000;
    background: var(--ampq-hero-accent-soft);
}

.ampq-hero__control svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ampq-hero__icon--play {
    display: none;
}

.ampq-hero.is-user-paused .ampq-hero__icon--pause {
    display: none;
}

.ampq-hero.is-user-paused .ampq-hero__icon--play {
    display: block;
}

.ampq-hero__tab:focus-visible,
.ampq-hero__control:focus-visible,
.ampq-hero__slide-link:focus-visible {
    position: relative;
    z-index: 5;
    outline: 3px solid var(--ampq-hero-accent);
    outline-offset: -3px;
}

.ampq-hero--single {
    margin-bottom: 32px;
}

.ampq-hero .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes ampq-hero-progress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@media (max-width: 1199px) {
    .ampq-hero__viewport {
        height: min(50vw, 600px);
    }

    .ampq-hero__navigation {
        width: calc(100% - 24px);
        margin-top: -24px;
    }

    .ampq-hero__tab {
        flex-basis: 190px;
    }
}

@media (max-width: 767px) {
    .ampq-hero {
        margin-bottom: 28px;
    }

    .ampq-hero__viewport {
        height: min(106.667vw, 800px);
    }

    .ampq-hero__navigation {
        grid-template-columns: 44px minmax(0, 1fr) 44px 44px;
        width: 100%;
        min-height: 52px;
        margin-top: 0;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: 0 7px 22px rgba(0, 0, 0, 0.1);
    }

    .ampq-hero__tab,
    .ampq-hero__control {
        min-height: 52px;
    }

    .ampq-hero__control {
        width: 44px;
    }

    .ampq-hero__tab {
        flex: 0 0 min(74vw, 280px);
        padding: 0 14px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ampq-hero.is-ready .ampq-hero__track {
        transition: none;
    }

    .ampq-hero.is-ready .ampq-hero__tab.is-active::after {
        animation: none;
        transform: scaleX(1);
    }
}

@media (forced-colors: active) {
    .ampq-hero__navigation,
    .ampq-hero__tab + .ampq-hero__tab,
    .ampq-hero__control {
        border-color: CanvasText;
    }

    .ampq-hero__tab.is-active {
        outline: 2px solid Highlight;
        outline-offset: -2px;
    }
}
