.quote-carousel {
    --carousel-accent: #60d7ff;
    --carousel-title-width: 42rem;
    width: min(var(--carousel-title-width), calc(100% - 1.5rem));
    height: 176px;
    margin: max(-160px, calc(-20px - 20svh)) auto 0;
    position: relative;
    z-index: 4;
    color: #ffffff;
    text-align: center;
}

.quote-carousel-kicker {
    display: none;
}

.quote-carousel-shell {
    height: 120px;
    margin-top: 0.4rem;
    position: relative;
}

.quote-carousel-viewport {
    width: 100%;
    height: 120px;
    min-width: 0;
    overflow: hidden;
    outline: none;
    will-change: opacity;
}

.quote-carousel-viewport:focus-visible {
    outline: 0.15rem solid rgba(155, 231, 255, 0.82);
    outline-offset: 0.16rem;
}

.quote-carousel-track {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: transform 880ms ease-in-out;
    will-change: transform;
}

.quote-carousel.is-transitioning .quote-carousel-viewport {
    animation: quote-carousel-fade-through 880ms ease-in-out;
}

.artist-quote-card {
    flex: 0 0 100%;
    width: 100%;
    height: 120px;
    min-width: 0;
    min-height: 120px;
    max-height: 120px;
    padding: 0 0.7rem;
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    color: #ffffff;
    background: transparent;
    border: 0;
    text-align: left;
}

.artist-portrait {
    width: 5rem;
    height: 100px;
    max-height: 100px;
    display: block;
    object-fit: cover;
    object-position: center;
    background: rgba(0, 25, 39, 0.7);
    border: 0.2rem solid #ffffff;
    border-radius: 0.7rem;
    box-shadow: 0 0.55rem 1.2rem rgba(0, 15, 24, 0.34);
}

.artist-quote-copy {
    height: 100px;
    min-width: 0;
    padding-right: 0.35rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.artist-quote-copy h2 {
    margin: 0;
    color: #ffffff;
    overflow: hidden;
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: -0.035em;
    text-overflow: ellipsis;
    text-shadow: 0 0.12rem 0.45rem rgba(0, 8, 14, 0.72);
    white-space: nowrap;
}

.artist-role {
    margin: 0.15rem 0 0;
    color: var(--carousel-accent);
    overflow: hidden;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.12em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.artist-quote-copy blockquote {
    margin: 0.28rem 0 0;
    overflow: hidden;
}

.artist-quote-copy blockquote p {
    max-width: none;
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    display: -webkit-box;
    overflow: hidden;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.2;
    text-shadow: 0 0.12rem 0.45rem rgba(0, 8, 14, 0.72);
    text-wrap: pretty;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.artist-quote-copy blockquote p::before {
    content: "“";
    color: var(--carousel-accent);
}

.artist-quote-copy blockquote p::after {
    content: "”";
    color: var(--carousel-accent);
}

.artist-quote-sources {
    margin-top: 0.22rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.12rem 0.65rem;
    color: rgba(255, 255, 255, 0.52);
    overflow: hidden;
    font-size: 0.52rem;
    line-height: 1.1;
    white-space: nowrap;
}

.artist-quote-sources a {
    color: inherit;
    text-decoration-color: rgba(255, 255, 255, 0.32);
    text-underline-offset: 0.18em;
}

.artist-quote-sources a:hover {
    color: #ffffff;
}

.quote-carousel-button,
.quote-carousel-pause,
.quote-carousel-dots button {
    font: inherit;
    cursor: pointer;
}

.quote-carousel-button {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    z-index: 2;
    color: rgba(255, 255, 255, 0.58);
    background: transparent;
    border: 0;
    border-radius: 50%;
    font-size: 1rem;
    transform: translateY(-50%);
    transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.quote-carousel-previous {
    left: -2.75rem;
}

.quote-carousel-next {
    right: -2.75rem;
}

.quote-carousel-button:hover {
    color: #ffffff;
    transform: translateY(-50%) scale(1.06);
}

.quote-carousel-button:focus-visible,
.quote-carousel-pause:focus-visible,
.quote-carousel-dots button:focus-visible {
    outline: 0.16rem solid #ffffff;
    outline-offset: 0.16rem;
}

.quote-carousel-controls {
    min-height: 1.4rem;
    margin-top: 0.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    opacity: 0.5;
    transition: opacity 180ms ease;
}

.quote-carousel:hover .quote-carousel-controls,
.quote-carousel:focus-within .quote-carousel-controls {
    opacity: 0.82;
}

.quote-carousel-pause {
    width: 1.4rem;
    height: 1.4rem;
    padding: 0;
    display: grid;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.76);
    background: transparent;
    border: 0;
    font-size: 0.62rem;
}

.quote-carousel-pause:hover {
    color: #ffffff;
}

.quote-carousel-pause-icon {
    width: 0.85rem;
    text-align: center;
}

.quote-carousel-pause [data-carousel-pause-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.quote-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.quote-carousel-dots button {
    width: 0.35rem;
    height: 0.35rem;
    padding: 0;
    background: rgba(255, 255, 255, 0.38);
    border: 0;
    border-radius: 999px;
    transition: width 220ms ease, background-color 220ms ease;
}

.quote-carousel-dots button[aria-current="true"] {
    width: 1.15rem;
    background: var(--carousel-accent);
}

.quote-carousel-counter {
    display: none;
}

.quote-carousel:not(.is-enhanced) .quote-carousel-button,
.quote-carousel:not(.is-enhanced) .quote-carousel-controls {
    display: none;
}

@keyframes quote-carousel-fade-through {
    0%,
    100% {
        opacity: 1;
    }
    44%,
    56% {
        opacity: 0.14;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .quote-carousel-button {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }

    .quote-carousel-previous {
        left: -2.25rem;
    }

    .quote-carousel-next {
        right: -2.25rem;
    }

    .artist-quote-card {
        height: 120px;
        min-height: 120px;
        max-height: 120px;
        padding: 0 0.5rem;
        grid-template-columns: 4.5rem minmax(0, 1fr);
        gap: 0.6rem;
    }

    .artist-portrait {
        width: 4.5rem;
        height: 90px;
        max-height: 90px;
    }

    .artist-quote-copy {
        height: 100px;
        padding-right: 0;
    }

    .artist-quote-copy h2 {
        font-size: 1rem;
    }

    .artist-quote-copy blockquote p {
        font-size: 0.72rem;
        line-height: 1.2;
        text-wrap: pretty;
        -webkit-line-clamp: 3;
    }

    .artist-quote-sources {
        display: none;
    }
}

@media (max-width: 430px) {
    .quote-carousel-button {
        width: 1.65rem;
        height: 1.65rem;
        font-size: 0.78rem;
    }

    .quote-carousel-previous {
        left: -1.85rem;
    }

    .quote-carousel-next {
        right: -1.85rem;
    }

    .artist-quote-card {
        height: 120px;
        min-height: 120px;
        max-height: 120px;
        padding: 0 0.42rem;
        grid-template-columns: 4rem minmax(0, 1fr);
        gap: 0.5rem;
    }

    .artist-portrait {
        width: 4rem;
        height: 80px;
        max-height: 80px;
        border-width: 0.14rem;
        border-radius: 0.55rem;
    }

    .artist-quote-copy {
        height: 104px;
    }

    .artist-quote-copy h2 {
        font-size: 0.92rem;
    }

    .artist-role {
        font-size: 0.46rem;
        letter-spacing: 0.08em;
    }

    .artist-quote-copy blockquote {
        margin-top: 0.2rem;
    }

    .artist-quote-copy blockquote p {
        font-size: 0.69rem;
        line-height: 1.18;
        -webkit-line-clamp: 4;
    }

    .quote-carousel-controls {
        gap: 0.4rem;
    }

    .quote-carousel-dots {
        gap: 0.22rem;
    }

    .quote-carousel-dots button {
        width: 0.3rem;
        height: 0.3rem;
    }

    .quote-carousel-dots button[aria-current="true"] {
        width: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quote-carousel-track,
    .quote-carousel-button,
    .quote-carousel-dots button {
        transition: none;
    }

    .quote-carousel.is-transitioning .quote-carousel-viewport {
        opacity: 1;
        animation: none;
    }
}
