.job50-showcase {
    --job50-showcase-ratio: 16 / 9;
    --job50-showcase-red: #ed1c24;
    --job50-showcase-ink: #202936;
    --job50-showcase-line: #d9dfe5;
    --job50-showcase-soft: #eef3f7;
    position: relative;
    width: 100%;
    max-width: none;
    margin-block: clamp(28px, 5vw, 72px);
}

.job50-showcase.alignfull,
.job50-showcase.alignwide {
    max-width: none;
}

.job50-showcase__stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    background: #101318;
    box-shadow: 0 24px 64px rgba(24, 38, 55, .14);
    isolation: isolate;
}

.job50-showcase__stage .swiper-wrapper {
    align-items: stretch;
}

.job50-showcase__slide {
    width: 100%;
    height: auto;
}

.job50-showcase__media {
    position: relative;
    width: 100%;
    aspect-ratio: var(--job50-showcase-ratio);
    overflow: hidden;
    background: #11161d;
}

.job50-showcase__poster,
.job50-showcase__video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.018);
    transform-origin: center center;
}

.job50-showcase__poster {
    z-index: 1;
    opacity: 1;
    transition: opacity 160ms ease;
}

.job50-showcase__poster--empty {
    background: #e9eef3;
}

.job50-showcase__video {
    z-index: 2;
    opacity: 0;
    transition: opacity 160ms ease;
    background: transparent;
}

.job50-showcase__media.is-video-playing .job50-showcase__poster {
    opacity: 0;
}

.job50-showcase__media.is-video-playing .job50-showcase__video {
    opacity: 1;
}

/* Navigation: slim side tabs, square and deliberately quieter than the media. */
.job50-showcase__arrow {
    position: absolute;
    z-index: 8;
    top: 50%;
    width: clamp(40px, 3.5vw, 50px);
    height: clamp(58px, 6vw, 74px);
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(32, 41, 54, .16);
    border-radius: 0;
    color: var(--job50-showcase-ink);
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 8px 24px rgba(24, 38, 55, .10);
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
    cursor: pointer;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.job50-showcase__arrow:hover,
.job50-showcase__arrow:focus-visible {
    border-color: var(--job50-showcase-red);
    color: #fff;
    background: var(--job50-showcase-red);
    outline: none;
}

.job50-showcase__arrow svg {
    display: block;
    width: 18px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.job50-showcase__arrow--prev {
    left: 0;
    border-left: 0;
}

.job50-showcase__arrow--next {
    right: 0;
    border-right: 0;
}

.job50-showcase__arrow.swiper-button-disabled {
    opacity: .24;
    cursor: default;
    pointer-events: none;
}

/* Visual filmstrip: no captions, no gradient overlay, no rounded cards. */
.job50-showcase__thumbs {
    width: 100%;
    margin-top: clamp(10px, 1.5vw, 16px);
    overflow: hidden;
}

.job50-showcase__thumbs .swiper-wrapper {
    align-items: stretch;
}

.job50-showcase__thumb {
    width: clamp(132px, 16vw, 210px) !important;
    margin: 0;
    padding: 0 0 5px;
    border: 0;
    border-radius: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
    outline: none;
}

.job50-showcase__thumb-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--job50-showcase-line);
    border-radius: 0;
    background: var(--job50-showcase-soft);
    box-shadow: none;
    transform: scale(.92);
    transform-origin: center center;
    transition: transform 180ms cubic-bezier(.2, .7, .2, 1), border-color 150ms ease, box-shadow 150ms ease;
}

.job50-showcase__thumb-media img,
.job50-showcase__thumb-placeholder {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
}

.job50-showcase__thumb-media img {
    opacity: 1;
    filter: none;
}

.job50-showcase__thumb-placeholder {
    background: #e9eef3;
}

.job50-showcase__thumb::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: transparent;
    transition: background 150ms ease;
}

.job50-showcase__thumb:hover .job50-showcase__thumb-media,
.job50-showcase__thumb:focus-visible .job50-showcase__thumb-media {
    border-color: #99a3ad;
    transform: scale(1);
}

.job50-showcase__thumb.swiper-slide-thumb-active .job50-showcase__thumb-media {
    border-color: var(--job50-showcase-red);
    box-shadow: inset 0 0 0 1px var(--job50-showcase-red);
    transform: scale(1);
}

.job50-showcase__thumb.swiper-slide-thumb-active::after {
    background: var(--job50-showcase-red);
}

/* Before Swiper initializes near the viewport, keep only the first poster visible. */
.job50-showcase:not(.is-initialized) .job50-showcase__stage > .swiper-wrapper > .job50-showcase__slide {
    display: none;
}

.job50-showcase:not(.is-initialized) .job50-showcase__stage > .swiper-wrapper > .job50-showcase__slide:first-child {
    display: block;
}

@media (max-width: 700px) {
    .job50-showcase {
        margin-block: 26px;
    }

    .job50-showcase__arrow {
        width: 38px;
        height: 54px;
    }

    .job50-showcase__arrow svg {
        width: 15px;
        height: 26px;
    }

    .job50-showcase__thumb {
        width: 126px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .job50-showcase *,
    .job50-showcase *::before,
    .job50-showcase *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}
