/* BeatStars-style hero: square cover = hero height, flush right, scales on resize */
.custom_slider_outer {
    --hero-h: clamp(480px, 50vw, calc(100vh - 140px));
    position: relative;
    isolation: isolate;
    width: 100%;
    height: var(--hero-h);
    min-height: 480px;
    float: none;
    overflow: hidden;
    background: #000;
    padding: 0;
    z-index: 2;
}

.custom_slider_art {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: var(--hero-h);
    max-width: 72%;
    z-index: 1;
    isolation: isolate;
    pointer-events: none;
    overflow: hidden;
}

.custom_slider_bg_image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    display: block !important;
    transition: opacity 0.55s ease;
    pointer-events: none;
}

.custom_slider_bg_image.is-active {
    opacity: 1;
}

/* BeatStars .gradient — 270deg on the square cover */
.custom_slider_art_fade {
    position: absolute;
    z-index: 2;
    left: -1px;
    right: -1px;
    top: 0;
    bottom: 0;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.7) 60%, #000 85%);
}

.custom_slider_stage {
    position: relative;
    z-index: 3;
    height: 100%;
}

.custom_slider_inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 48px 0;
    float: none;
    position: relative;
    z-index: 4;
}

.custom_slider_contents_box {
    width: min(720px, 54%);
    min-width: 0;
    float: none;
    position: relative;
    z-index: 5;
    margin: 0;
}

.custom_slider_bottom_line_outer {
    position: relative;
    width: auto;
    margin: 0 0 8px;
    float: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    right: auto;
    bottom: auto;
    align-self: flex-end;
    z-index: 5;
}

.custom_slider_bottom_line_text > div {
    display: none;
}

.custom_slider_bottom_line_text > div.is-active {
    display: block;
}

@media (max-width: 992px) {
    .custom_slider_outer {
        --hero-h: 560px;
        height: 560px;
        min-height: 560px;
    }
    .custom_slider_art {
        width: min(100%, 560px);
        max-width: 100%;
    }
    .custom_slider_inner {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        padding: 48px 0 32px;
    }
    .custom_slider_contents_box {
        width: 100%;
        margin: 0 !important;
    }
    .custom_slider_bottom_line_outer {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .custom_slider_outer {
        --hero-h: 480px;
        height: 520px;
        min-height: 520px;
    }
    .custom_slider_art {
        width: 100%;
        max-width: 100%;
    }
    .custom_slider_art_fade {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 38%, rgba(0, 0, 0, 0.12) 70%, rgba(0, 0, 0, 0) 100%);
    }
    .custom_slider_inner {
        padding: 36px 0 28px;
    }
    .custom_slider_contents_box h3 {
        text-align: center;
        font-size: 26px;
    }
}
