@charset "utf-8";

#container {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* content 상단 이미지(_h)는 배너 배경으로 쓰고 기본 출력은 숨긴다. */
#ctt_himg {
    display: none;
}

#ctt.jc-news {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
}

#ctt.jc-news .jc-season-contents {
    width: 100%;
    padding: 120px;
    background: #ffffff;
    box-sizing: border-box;
}

#ctt.jc-news .jc-season-contents-inner {
    width: min(1248px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 84px;
}

#ctt.jc-news .jc-instagram-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 48px;
}

#ctt.jc-news .jc-instagram-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

#ctt.jc-news .jc-instagram-title-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

#ctt.jc-news .jc-instagram-title {
    margin: 0;
    font-family: "Pretendard", "SUIT Variable", "Noto Sans KR", sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #000000;
}

#ctt.jc-news .jc-instagram-handle {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    font-family: "Pretendard", "SUIT Variable", "Noto Sans KR", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    color: #9e9e9e;
    white-space: nowrap;
}

#ctt.jc-news .jc-instagram-follow {
    flex: 0 0 auto;
    --jc-btn-min-width: 120px;
}

#ctt.jc-news .jc-instagram-marquee {
    --jc-insta-gap: 20px;
    --jc-insta-cols: 7;
    --jc-container-padding: 240px;
    --jc-container-max: 1248px;
    width: 100%;
    overflow: hidden;
}

#ctt.jc-news .jc-instagram-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: jc-instagram-scroll-right 30s linear infinite;
    will-change: transform;
}

#ctt.jc-news .jc-instagram-marquee:hover .jc-instagram-track {
    animation-play-state: paused;
}

#ctt.jc-news .jc-instagram-lane {
    display: flex;
    align-items: center;
    gap: var(--jc-insta-gap);
    padding-right: var(--jc-insta-gap);
}

@keyframes jc-instagram-scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

#ctt.jc-news .jc-instagram-tile {
    width: calc((min(var(--jc-container-max), 100vw - var(--jc-container-padding)) - (var(--jc-insta-gap) * (var(--jc-insta-cols) - 1))) / var(--jc-insta-cols));
    flex-shrink: 0;
    /* Figma PC/Tablet: 1080x1350 */
    aspect-ratio: 1080 / 1350;
    border-radius: 0;
    background-color: #ececec;
    background-image:
        linear-gradient(45deg, #dddddd 25%, transparent 25%),
        linear-gradient(-45deg, #dddddd 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #dddddd 75%),
        linear-gradient(-45deg, transparent 75%, #dddddd 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

#ctt.jc-news .jc-instagram-tile.has-image {
    background-color: #f3f3f3;
    background-image: var(--jc-tile-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#ctt.jc-news .jc-news-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 56px;
}

#ctt.jc-news .jc-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 52px;
}

#ctt.jc-news .jc-news-title {
    margin: 0;
    font-family: "Pretendard", "SUIT Variable", "Noto Sans KR", sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #000000;
}

#ctt.jc-news .jc-news-more {
    min-height: 40px;
    padding: 10px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Pretendard", "SUIT Variable", "Noto Sans KR", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #000000;
}

#ctt.jc-news .jc-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px;
}

/* PC(>=1280px): 뉴스는 3장만 노출 */
@media (min-width: 1280px) {
    #ctt.jc-news .jc-news-grid .jc-news-card:nth-child(n+4) {
        display: none;
    }
}

#ctt.jc-news .jc-news-card {
    min-width: 0;
}

#ctt.jc-news .jc-news-card-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    color: inherit;
}

#ctt.jc-news .jc-news-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 378.67 / 240;
    border-radius: 6px;
    overflow: hidden;
    background-color: #ececec;
    background-image:
        linear-gradient(45deg, #dddddd 25%, transparent 25%),
        linear-gradient(-45deg, #dddddd 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #dddddd 75%),
        linear-gradient(-45deg, transparent 75%, #dddddd 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

#ctt.jc-news .jc-news-thumb.has-image {
    background: #f3f3f3;
}

#ctt.jc-news .jc-news-thumb img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#ctt.jc-news .jc-news-card-link:hover .jc-news-thumb img,
#ctt.jc-news .jc-news-card-link:focus-visible .jc-news-thumb img {
    transform: scale(1.08);
}

#ctt.jc-news .jc-news-card-title {
    margin: 0;
    width: 100%;
    font-family: "Pretendard", "SUIT Variable", "Noto Sans KR", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: #000000;
}

#ctt.jc-news .jc-news-card-desc {
    margin: 0;
    width: 100%;
    font-family: "Pretendard", "SUIT Variable", "Noto Sans KR", sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    color: #000000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1279px) {
    #ctt.jc-news .jc-season-contents-inner {
        gap: 96px;
    }

    #ctt.jc-news .jc-season-contents {
        padding: 160px 96px;
        box-sizing: border-box;
    }

    #ctt.jc-news .jc-instagram-block {
        gap: 24px;
    }

    #ctt.jc-news .jc-instagram-title {
        font-size: 24px;
        font-weight: 600;
        line-height: 1.4;
        letter-spacing: 0;
    }

    #ctt.jc-news .jc-instagram-handle {
        font-size: 18px;
        font-weight: 500;
    }

    #ctt.jc-news .jc-instagram-marquee {
        --jc-insta-cols: 5;
        --jc-container-padding: 192px;
    }

    #ctt.jc-news .jc-news-title {
        font-size: 24px;
        font-weight: 600;
        line-height: 1.4;
        letter-spacing: 0;
    }

    #ctt.jc-news .jc-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Figma 테블릿: 뉴스 4개 노출(2x2) */
    #ctt.jc-news .jc-news-grid .jc-news-card:nth-child(n+5) {
        display: none;
    }

    #ctt.jc-news .jc-news-block {
        gap: 24px;
    }

    #ctt.jc-news .jc-news-grid {
        gap: 32px;
    }

    #ctt.jc-news .jc-news-card-link {
        gap: 32px;
    }

    #ctt.jc-news .jc-news-card-title {
        font-size: 18px;
        font-weight: 500;
        line-height: 1.4;
    }

    #ctt.jc-news .jc-news-card-desc {
        font-size: 16px;
        font-weight: 500;
        line-height: 1.4;
        display: block;
        -webkit-line-clamp: 2;
    }
}

/* (이전 <=860px 모바일 보정은 테블릿까지 덮어써서 제거)
   모바일은 아래 <=640px Figma 규칙에서만 관리 */

@media (max-width: 768px) {
    #ctt.jc-news .jc-season-contents {
        padding: 44px 32px;
        box-sizing: border-box;
    }

    #ctt.jc-news .jc-season-contents-inner {
        gap: 32px;
    }

    #ctt.jc-news .jc-instagram-marquee {
        --jc-container-padding: 64px;
    }
}

/* Figma 모바일(360px 기준): seoson/contents (INSTAGRAM + NEWS) */
@media (max-width: 640px) {
    #ctt.jc-news .jc-season-contents {
        --jc-news-mobile-side: var(--jc-mobile-side, clamp(24px, 8.89vw, 32px));
        padding: 72px var(--jc-news-mobile-side);
    }

    #ctt.jc-news .jc-season-contents-inner {
        width: 100%;
        max-width: var(--jc-mobile-content-width, 360px);
        margin: 0 auto;
        min-width: 0;
        gap: 44px;
    }

    #ctt.jc-news .jc-instagram-block,
    #ctt.jc-news .jc-news-block {
        gap: 12px;
    }

    #ctt.jc-news .jc-instagram-head,
    #ctt.jc-news .jc-news-head {
        gap: 12px;
        min-width: 0;
    }

    #ctt.jc-news .jc-instagram-head > *,
    #ctt.jc-news .jc-news-head > * {
        min-width: 0;
    }

    /* <=860px 규칙에서 column으로 바뀐 것을 모바일에서 row로 복구 (Figma) */
    #ctt.jc-news .jc-instagram-head {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    /* INSTAGRAM head: 타이틀 + 핸들 세로 정렬 */
    #ctt.jc-news .jc-instagram-title-wrap {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    #ctt.jc-news .jc-instagram-title {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.4;
        letter-spacing: 0;
    }

    #ctt.jc-news .jc-instagram-handle {
        min-height: 0;
        min-width: 0;
        max-width: 100%;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.5;
        color: #9e9e9e;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #ctt.jc-news .jc-instagram-follow {
        flex: 0 0 80px;
        width: 80px;
        max-width: 80px;
        --jc-btn-min-width: 80px;
        --jc-btn-height: 24px;
        --jc-btn-font-size: 12px;
        --jc-btn-line-height: 1.4;
        --jc-btn-padding-left: 12px;
        --jc-btn-padding-right: 12px;
        --jc-btn-gap: 4px;
    }

    /* INSTAGRAM marquee override */
    #ctt.jc-news .jc-instagram-marquee {
        --jc-insta-gap: 6px;
        --jc-insta-cols: 4;
        --jc-container-padding: calc(var(--jc-news-mobile-side) * 2);
    }

    /* NEWS head */
    #ctt.jc-news .jc-news-title {
        font-size: 24px;
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: 0;
    }

    #ctt.jc-news .jc-news-more {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.4;
        color: #F4B540;
    }

    /* NEWS grid: 2칸 + gap 12, 4개 노출 */
    #ctt.jc-news .jc-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    #ctt.jc-news .jc-news-grid .jc-news-card:nth-child(n+5) {
        display: none;
    }

    #ctt.jc-news .jc-news-card-link {
        gap: 8px;
    }

    #ctt.jc-news .jc-news-thumb {
        aspect-ratio: 142 / 97;
        border-radius: 6px;
        background-size: 18px 18px;
    }

    #ctt.jc-news .jc-news-card-title {
        font-size: 12px;
        font-weight: 500;
        line-height: 1.4;
    }

    /* Figma 모바일 카드에는 설명 텍스트가 없음 */
    #ctt.jc-news .jc-news-card-desc {
        display: none;
    }
}
