/* 썸네일을 카드 배경으로 사용하는 seonyul_cases 스킨 */
.seonyul-cases-widget {
    --brand: #711a1d;
    --brand-2: #5c1416;
    --slate-lt: #c0c5cd;
    --line-d: rgba(255, 255, 255, .18);
}

.seonyul-cases-widget .cs__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 30px;
}

.seonyul-cases-widget .cs__cats button {
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-lt);
    box-shadow: inset 0 0 0 1px var(--line-d);
    cursor: pointer;
}

.seonyul-cases-widget .cs__cats button:hover {
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
}

.seonyul-cases-widget .cs__cats button.is-on {
    background: var(--brand);
    color: #fff;
    box-shadow: inset 0 0 0 1px var(--brand);
}

.seonyul-cases-widget .cs__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.seonyul-cases-widget .cs__row[hidden] {
    display: none;
}

.seonyul-cases-widget .csc {
    position: relative;
    overflow: hidden;
    display: flex;
    min-width: 0;
    min-height: 460px;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 16px;
    padding: 26px;
    background: #1c2028;
    color: #fff;
    text-decoration: none;
    transition: box-shadow .34s ease, transform .34s ease;
}

.seonyul-cases-widget .csc:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(0, 0, 0, .34);
}

/* .polc와 같이 이미지 레이어를 카드 전체에 깔고, 본문은 그 위에 배치한다. */
.seonyul-cases-widget .csc__bg {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    background: center / cover no-repeat;
    transition: transform .6s ease;
}

.seonyul-cases-widget .csc__bg--empty {
    background: #f1f2f4;
}

.seonyul-cases-widget .csc::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(165deg, rgba(6, 9, 15, .72), rgba(6, 9, 15, .42) 46%, rgba(6, 9, 15, .88));
}

.seonyul-cases-widget .csc:hover::after{
    background: linear-gradient(165deg, rgba(113, 26, 29, .68), rgba(6, 9, 15, .46) 46%, rgba(6, 9, 15, .90));
}

.seonyul-cases-widget .csc> :not(.csc__bg) {
    position: relative;
    z-index: 2;
}

.seonyul-cases-widget .csc:hover .csc__bg {
    transform: scale(1.04);
}

.seonyul-cases-widget .csc__tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    max-width: calc(100% - 44px);
    overflow: hidden;
    margin-bottom: 14px;
    padding: 8px 15px;
    border-radius: 999px;
    background: #f1f2f4;
    color: #6b7280;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seonyul-cases-widget .csc__tag i {
    font-size: 11px;
}

.seonyul-cases-widget .csc__ti {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    color: inherit;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.seonyul-cases-widget .csc__pv {
    display: flex;
    gap: 10px;
    margin: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1.75;
}

.seonyul-cases-widget .csc__pv span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.seonyul-cases-widget .csc__pv b {
    display: grid;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 5px;
    background: var(--brand);
    color: #fff;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
}

.seonyul-cases-widget .cs__empty {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--slate-lt);
}

@media (max-width:1240px) {
    .seonyul-cases-widget .cs__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:640px) {
    .seonyul-cases-widget .cs__cats {
        gap: 7px;
    }

    .seonyul-cases-widget .cs__cats button {
        padding: 10px 16px;
        font-size: 13px;
    }

    .seonyul-cases-widget .cs__row {
        grid-template-columns: 1fr;
    }

    /* .seonyul-cases-widget .csc {
        min-height: 300px;
    } */
}