.eftc-carousel {
    --eftc-drag-offset: 0px;
    position: relative;
    width: 100%;
    outline: none;
}

.eftc-empty {
    padding: 24px;
    border: 1px dashed #c9b99f;
    border-radius: 14px;
    color: #7c6244;
    text-align: center;
    background: #fffaf2;
}

.eftc-carousel-frame {
    position: relative;
    width: 100%;
    background: #fffaf2;
    padding: 18px;
    border: 1px solid rgba(184, 150, 95, .28);
    border-radius: 26px;
    box-shadow: 0 22px 60px rgba(60, 45, 26, .12);
    overflow: hidden;
}

.eftc-carousel-frame::before,
.eftc-carousel-frame::after {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 8px;
    border-radius: inherit;
    border: 1px solid rgba(184, 150, 95, .28);
    opacity: .75;
    z-index: 2;
}

.eftc-carousel-frame::after {
    inset: 14px;
    border-color: rgba(255, 255, 255, .75);
    opacity: .55;
}

.eftc-carousel-viewport {
    position: relative;
    height: 430px;
    overflow: hidden;
    border-radius: 16px;
    background: #f7efe1;
    touch-action: pan-y;
    isolation: isolate;
}

.eftc-carousel.has-inner-glow .eftc-carousel-viewport::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 55px rgba(255, 247, 232, .42), inset 0 0 0 1px rgba(255, 255, 255, .28);
    z-index: 3;
}

.eftc-carousel-track {
    display: flex;
    height: 100%;
    transform: translate3d(calc(var(--eftc-index, 0) * -100% + var(--eftc-drag-offset)), 0, 0);
    transition: transform var(--eftc-speed, 650ms) cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.eftc-carousel.is-dragging .eftc-carousel-track {
    transition: none;
    cursor: grabbing;
}

.eftc-carousel-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    user-select: none;
    overflow: hidden;
}

.eftc-carousel-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
    transform: scale(1.001);
}

.eftc-carousel.is-contain .eftc-carousel-slide img {
    object-fit: contain;
    background: rgba(255, 255, 255, .46);
}

.eftc-carousel.eftc-filter-soft .eftc-carousel-slide img {
    filter: saturate(.92) contrast(.98) brightness(1.05);
}

.eftc-carousel.eftc-filter-warm .eftc-carousel-slide img {
    filter: saturate(1.06) sepia(.1) brightness(1.03);
}

.eftc-carousel.eftc-filter-bw .eftc-carousel-slide img {
    filter: grayscale(1) contrast(1.03);
}

.eftc-carousel-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 16px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, .28);
    text-align: center;
    backdrop-filter: blur(8px);
    z-index: 4;
}

.eftc-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7c6244;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 10px 26px rgba(40, 30, 15, .14);
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
    font-size: 24px;
    line-height: 1;
}

.eftc-carousel-arrow:hover,
.eftc-carousel-arrow:focus-visible {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 14px 34px rgba(40, 30, 15, .18);
}

.eftc-carousel-prev { left: 18px; }
.eftc-carousel-next { right: 18px; }

.eftc-carousel-arrow[disabled] {
    opacity: .35;
    cursor: not-allowed;
}

.eftc-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.eftc-carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(124, 98, 68, .35);
    cursor: pointer;
    transition: width .25s ease, transform .25s ease, background .25s ease;
}

.eftc-carousel-dot.is-active {
    width: 26px;
    background: #b8965f;
}

.eftc-carousel-dot:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .eftc-carousel-frame {
        padding: 12px;
    }

    .eftc-carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .eftc-carousel-prev { left: 10px; }
    .eftc-carousel-next { right: 10px; }

    .eftc-carousel-caption {
        left: 12px;
        right: 12px;
        bottom: 12px;
        border-radius: 18px;
    }
}
