/* Layout & Container */
.jsc-video-showcase {
    position: relative;
    width: 100%;
    /* Padding and background handled by module settings */
}

.jsc-video-showcase__container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 992px) {
    .jsc-video-showcase__container {
        display: grid;
        grid-template-columns: 40% 1fr;
        align-items: center;
        /* Gap handled by module settings, default fallback */
        gap: 24px;
    }
}

/* Left Column Content */
.jsc-video-showcase__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    margin-bottom: 20px;
    padding-top: 36px;
    padding-bottom: 0;
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 1248px) {
    .jsc-video-showcase__content {
        padding-left: calc((100vw - 1248px) / 2);
    }
}

@media (min-width: 992px) {
    .jsc-video-showcase__content {
        margin-bottom: 0;
        padding-right: 20px;
    }
}



.jsc-video-showcase__editor-content p,
.jsc-video-showcase__description {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 19px;
    line-height: 1.45;
    margin: 0 0 30px;
    color: #000005;
}

/* Link Styling (Text Link) */
.jsc-video-showcase__editor-content a:not(.btn),
.jsc-video-showcase__cta {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 19px;
    line-height: 1.45;
    color: #000005;
    text-decoration: none;
    border-bottom: 1px solid #000005;
    display: inline-block;
    padding-bottom: 2px;
    transition: opacity 0.3s;
}

.jsc-video-showcase__editor-content a:not(.btn):hover,
.jsc-video-showcase__cta:hover {
    opacity: 0.7;
}

/* Slider Column */
.jsc-video-showcase__slider {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 0 20px;
}

/* Swiper */
.jsc-video-swiper {
    width: 100%;
    padding-bottom: 0;
    overflow: visible;
}

/* Slide Styles */
/* Slide Media Container */
.jsc-slide-media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #000;
    margin-bottom: 24px;
    display: block;
    text-decoration: none;
}

.jsc-slide-video,
.jsc-slide-fallback-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

/* Hover Effect: Target media specifically */
.jsc-slide-media:hover .jsc-slide-video,
.jsc-slide-media:hover .jsc-slide-fallback-img {
    filter: grayscale(0%);
}

.jsc-slide-media:hover {
    cursor: pointer;

    & span.btn {
        background-color: var(--color-neutral-0);
        color: var(--color-neutral-900);
        box-shadow: none;
    }
}

.jsc-slide-media button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    &:before {
        margin: 0;
    }
}

.jsc-slide-media__inner {
    width: 100%;
    height: 100%;
}

/* Full-width gradient overlay at top of slide */
.jsc-slide-media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none;
    border-radius: 12px 12px 0 0;
}


.jsc-slide-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    margin: 0 10px;
    z-index: 2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.jsc-slide-overlay-title {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: "PP Neue Montreal", sans-serif;
}

.jsc-slide-duration {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.78px;
    text-transform: uppercase;
    font-family: "IBM Plex Sans", sans-serif;
}

/* Play Button (Solid Yellow Box) */
a.jsc-slide-media span.btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

a.jsc-slide-media span.btn:before {
    margin: 0;
}

/* Bottom Content Container */
.jsc-slide-content {
    padding-right: 12px;
}

.jsc-slide-main-title {
    color: #07121c;
    /* Dark text */
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 12px;
    line-height: 1.15;
    font-family: "IBM Plex Sans Condensed", sans-serif;
}

.jsc-slide-description {
    color: #000005;
    font-size: 17px;
    line-height: 1.45;
    font-family: "IBM Plex Sans", sans-serif;
}


/* Navigation Buttons */
.jsc-slider-navigation {
    display: flex;
    gap: 6px;
    /* Design gap=[6px] */
    margin-top: 40px;
}

.jsc-slider-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 6px;
    /* Design rounded-[6px] */
    transition: all 0.2s ease;
    cursor: pointer;
}

.jsc-slider-prev {
    background: rgba(255, 255, 255, 0.36);
    /* bg-white opacity-36 */
    color: #07121c;
}

.jsc-slider-prev:hover {
    background: rgba(255, 255, 255, 0.6);
}

.jsc-slider-next {
    background: #fdb835;
    color: #07121c;
    border: 1px solid #07121c;
    /* Fallback/Base */
    border-left-width: 3px;
    border-bottom-width: 3px;
    border-right-width: 1px;
    border-top-width: 1px;
}

.jsc-slider-next:hover {
    transform: translate(-1px, 1px);
    /* Subtle press effect maybe? Or just lift matches other btns */
}

/* Arrows */
.jsc-slider-prev:before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(-45deg);
    margin-left: 2px;
}

.jsc-slider-next:before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    margin-right: 2px;
}

.jsc-slider-btn.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

body.jsc-modal-open {
    overflow: hidden;
}