.zp-carousel {
    position: relative;
    width: 100%;
}

.zp-carousel-stage {
    position: relative;
    display: grid;
    align-items: stretch;
}

.zp-carousel-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
    z-index: 0;
}

.zp-carousel-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.zp-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.12);
    color: #000;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.zp-carousel-nav:hover:not(:disabled) {
    background: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.16);
}

.zp-carousel-nav:disabled {
    display: none;
}

.zp-carousel-nav-prev {
    left: 0.25rem;
}

.zp-carousel-nav-next {
    right: 0.25rem;
}

.zp-carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.zp-carousel-indicator {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #9b9b9b;
    opacity: 0.55;
    cursor: pointer;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        background-color 0.25s ease;
}

.zp-carousel-indicator:hover {
    opacity: 0.85;
}

.zp-carousel-indicator.is-active {
    opacity: 1;
    background: #3874ff;
    transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
    .zp-carousel-slide,
    .zp-carousel-nav,
    .zp-carousel-indicator {
        transition: none;
    }
}
