.staff-carousel,
.staff-carousel * {
    box-sizing: border-box;
}

.staff-carousel {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
}

.staff-carousel--pair {
    max-width: 560px;
}

.staff-carousel[data-staff-overflow="true"] {
    padding-inline: 46px;
}

.staff-carousel__track {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 7px 7px 14px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 7px;
    scrollbar-width: thin;
    scrollbar-color: #ad9e8f transparent;
}

.staff-carousel[data-staff-overflow="false"] .staff-carousel__track {
    justify-content: center;
}

.staff-carousel__track > a {
    scroll-snap-align: start;
}

.staff-carousel__track:focus-visible {
    outline: 3px solid #354b13;
    outline-offset: 2px;
    border-radius: 14px;
}

.staff-carousel__track::-webkit-scrollbar {
    height: 6px;
}

.staff-carousel__track::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: #ad9e8f;
}

.staff-carousel__controls {
    position: absolute;
    inset: auto 0;
    top: var(--staff-carousel-center-y, 50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.staff-carousel__controls[hidden] {
    display: none;
}

.staff-carousel .staff-carousel__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid #d2c5b7;
    border-radius: 50%;
    background: #faf8f4;
    color: #426000;
    font-family: Arial, sans-serif;
    box-shadow: 0 3px 10px rgba(81, 69, 59, .08);
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    transition: background-color .2s, border-color .2s, box-shadow .2s;
}

.staff-carousel__arrow svg {
    display: block;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.staff-carousel__arrow:hover:not(:disabled) {
    border-color: #b6a18b;
    background: #fff;
    box-shadow: 0 4px 12px rgba(81, 69, 59, .14);
}

.staff-carousel__arrow:active:not(:disabled) {
    background: #eee5da;
    box-shadow: 0 1px 4px rgba(81, 69, 59, .1);
}

.staff-carousel__arrow:focus-visible {
    outline: 3px solid #354b13;
    outline-offset: 3px;
}

.staff-carousel__arrow:disabled {
    opacity: .35;
    cursor: default;
}

@media (max-width: 640px) {
    .staff-carousel[data-staff-overflow="true"] {
        padding-inline: 0;
        padding-bottom: 54px;
    }

    .staff-carousel__controls {
        inset: auto 0 0;
        justify-content: center;
        gap: 10px;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .staff-carousel .staff-carousel__arrow {
        transition: none;
    }
}
