.case-showcase {
    position: relative;
    overflow: hidden;
}

.case-showcase__category {
    display: flex;
    align-items: center;
    min-height: 27px;
    position: relative;
    z-index: 2;
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: 0;
    color: var(--case-showcase-category-color, var(--white-color, #fefefe));
    margin-bottom: 40px;
}

.case-showcase__title {
    font-weight: 500;
    background: var(
        --title-gradient,
        linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.04) 100%)
    );
    line-height: 100%;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    position: relative;
    z-index: 2;
}

.case-showcase__title--size-210 {
    font-size: clamp(56px, 14.58vw, 210px);
    margin-bottom: calc(clamp(10px, 2.78vw, 40px) * -1);
}

.case-showcase__title--size-140 {
    font-size: clamp(36px, 9.72vw, 140px);
    margin-bottom: calc(clamp(8px, 1.74vw, 25px) * -1);
}

.case-showcase__title--size-100 {
    font-size: clamp(24px, 6.94vw, 100px);
    margin-bottom: calc(clamp(4px, 1.4vw, 20px) * -1);
}

@media screen and (max-width: 768px) {
    .case-showcase__category {
        margin-bottom: 20px;
    }

    .case-showcase__title--size-210 {
        font-size: 56px;
        margin-bottom: 10px;
    }

    .case-showcase__title--size-140 {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .case-showcase__title--size-100 {
        font-size: 24px;
        margin-bottom: 0px;
    }
}

.case-showcase__media {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 32px;
}

.case-showcase__media img,
.case-showcase__media video,
.case-showcase__video {
    width: 100%;
    display: block;
    border-radius: 32px;
}

.case-showcase__media--image img {
    max-height: 880px;
    object-fit: cover;
}

.case-showcase__media--video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 754px;
    overflow: hidden;
    border-radius: 32px;
    background: var(--black-color, #0d1118);
}

.case-showcase__media--video .case-showcase__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
}

.case-showcase__badges {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
}

.case-showcase__badge {
    margin: 0;
    padding: 4px 16px;
    border-radius: 999px;
    letter-spacing: 0;
    color: var(--case-showcase-badge-color, #ffffff);
    background: var(--case-showcase-badge-bg, #0d1118);
    border: 1px solid var(--case-showcase-badge-outline, transparent);
    box-sizing: border-box;
    white-space: nowrap;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
}

.case-showcase__marquee {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    overflow: hidden;
    padding: 10px 0;
    background: var(--case-showcase-marquee-bg, #ffffff);
    color: var(--case-showcase-marquee-color, #8b1a1a);
    pointer-events: none;
}

.case-showcase__marquee-track {
    display: flex;
    width: max-content;
    animation: case-showcase-marquee 80s linear infinite;
}

.case-showcase__marquee-group {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-right: 24px;
    flex-shrink: 0;
}

.case-showcase__marquee-word {
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    color: inherit;
    font-weight: 500;
    font-size: 32px;
    line-height: 120%;
}

@keyframes case-showcase-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.case-showcase__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .case-showcase__media,
    .case-showcase__media img,
    .case-showcase__media video,
    .case-showcase__video {
        border-radius: 16px;
    }

    .case-showcase__marquee {
        padding: 8px 0;
    }

    .case-showcase__marquee-word {
        font-size: 20px;
    }

    .case-showcase__marquee-group {
        gap: 16px;
        padding-right: 16px;
    }

    .case-showcase__badges {
        right: 12px;
        bottom: 12px;
    }

    .case-showcase__badge {
        font-size: 14px;
        padding: 4px 12px;
    }
}
