.musashi-carousel-widget-container {
    width: 100%;
}

.musashi-carousel-section {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
}

.carousel-shell {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 0;
    transition: transform 0.45s ease;
    will-change: transform;
}

.carousel-item {
    position: relative;
    flex: 0 0 calc(100% / 3);
    height: 430px;
    overflow: hidden;
    cursor: pointer;
    transform: scale(0.92);
    transition:
        transform 0.45s ease,
        opacity 0.45s ease,
        filter 0.45s ease;
    opacity: 0.95;
    background: #111;
}

/* .carousel-item-placeholder {
    background: transparent;

    @media (max-width: 1024px) {
        width: 0;
        flex: 0 0 0 !important;
        overflow: hidden;
    }
} */

/* IMAGE FIX */
.carousel-image-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-image-wrapper img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

/* OVERLAY */
.carousel-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 24px 22px;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.62) 0%,
            rgba(0, 0, 0, 0.28) 38%,
            rgba(0, 0, 0, 0) 64%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.carousel-content {
    position: relative;
    width: fit-content;
    max-width: calc(100% - 70px);
    color: #fff;
    transform: translateY(18px);
    opacity: 0;
    transition:
        transform 0.4s ease,
        opacity 0.4s ease;
}

.carousel-title {
    font-family: "Source Serif 4", serif;
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 400;
    color: #fff;
}

/* INLINE ARROW */
.carousel-arrow-inline {
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition:
        transform 0.4s ease,
        opacity 0.4s ease;
}

.mushashi-custom-arrow {
    width: 18px;
    height: auto;
    display: block;
}

/* ACTIVE + HOVER */
.carousel-item.is-active {
    transform: scale(1);
    z-index: 2;
}

.carousel-item:hover {
    transform: scale(1);
    z-index: 3;
}

.carousel-item.is-active .carousel-overlay,
.carousel-item:hover .carousel-overlay {
    opacity: 1;
}

.carousel-item.is-active .carousel-content,
.carousel-item:hover .carousel-content {
    transform: translateY(0);
    opacity: 1;
}

.carousel-item.is-active .carousel-arrow-inline,
.carousel-item:hover .carousel-arrow-inline {
    opacity: 1;
    transform: translateY(-50%);
}

.carousel-item:hover .carousel-image-wrapper img,
.carousel-item.is-active .carousel-image-wrapper img {
    transform: scale(1.03);
}

/* NAV */
.carousel-nav-container {
    pointer-events: none;
}

.carousel-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    width: 54px !important;
    height: 54px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(45, 35, 28, 0.75) !important;
    color: #fff !important;
    font-size: 34px !important;
    line-height: 1 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition:
        background 0.25s ease,
        transform 0.25s ease;
    pointer-events: auto;
}

.carousel-nav span {
    display: block;
    margin-top: -5px;
}

.carousel-nav:hover {
    background: rgba(45, 35, 28, 0.5) !important;
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.96) !important;
}

.carousel-nav.prev {
    left: 18px;
}

.carousel-nav.next {
    right: 18px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 50%;
        height: 380px;
    }

    .carousel-title {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .carousel-item {
        flex: 0 0 100%;
        height: 320px;
        transform: scale(1);
    }

    .carousel-overlay {
        opacity: 1;
        padding: 20px;
    }

    .carousel-content {
        transform: translateY(0);
        opacity: 1;
        max-width: calc(100% - 55px);
    }

    .carousel-title {
        font-size: 22px;
    }

    .carousel-arrow-inline {
        right: -32px;
        opacity: 1;
    }

    .carousel-nav {
        width: 46px !important;
        height: 46px !important;
        font-size: 28px !important;
    }

    .carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next {
        right: 10px;
    }
}
