/* ===================================================
   KOREA SNAPS
   제목 + 카테고리 + View more 한 줄
   사진 6개 한 줄
   =================================================== */

.snap_lt,
.snap_lt * {
    box-sizing: border-box;
}

.snap_lt {
    width: 100%;
    margin: 0;
    padding: 0;

    overflow: hidden;

    background: #ffffff;
    border: 1px solid #dce7f2;
    border-radius: 16px;

    box-shadow: 0 5px 16px rgba(38, 64, 97, 0.035);
}


/* ===================================================
   상단 한 줄
   =================================================== */

.snap_nav_line {
    width: 100%;
    height: 58px;
    min-height: 58px;
    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    background: #ffffff;
    border-bottom: 1px solid #e9eef5;
}

.snap_nav_left {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 18px;
}


/* ===================================================
   KOREA SNAPS 제목
   =================================================== */

.snap_line_title {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    gap: 6px;
}

.snap_line_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    line-height: 1;
}

.snap_line_title_text {
    margin: 0;
    padding: 0;

    color: #102143;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1;
    letter-spacing: 0 !important;

    white-space: nowrap;
}


/* ===================================================
   카테고리 메뉴
   제목과 크기·굵기 동일
   =================================================== */

.snap_tabs {
    height: 58px;

    display: flex;
    align-items: center;
    gap: 4px;

    white-space: nowrap;
}

.snap_tab {
    position: relative;

    height: 58px;
    margin: 0;
    padding: 0 12px;

    appearance: none;
    -webkit-appearance: none;

    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    color: #55585e !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 58px !important;
    letter-spacing: 0 !important;

    cursor: pointer;
    white-space: nowrap;

    transition: color 0.16s ease;
}


/* 마우스를 올려도 배경 음영 없음 */

.snap_tab:hover,
.snap_tab:focus,
.snap_tab:active {
    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;
    box-shadow: none !important;
}

.snap_tab:hover {
    color: #ff4b16 !important;
}


/* 선택 메뉴 */

.snap_tab.active {
    color: #ff4b16 !important;

    font-size: 14px !important;
    font-weight: 700 !important;
}


/* 선택 메뉴 밑줄 */

.snap_tab::after {
    content: "";

    position: absolute;

    right: 9px;
    bottom: -1px;
    left: 9px;

    height: 2px;

    background: #ff4b16;

    opacity: 0;
    transform: scaleX(0.45);
    transform-origin: center;

    transition:
        opacity 0.16s ease,
        transform 0.16s ease;
}

.snap_tab.active::after {
    opacity: 1;
    transform: scaleX(1);
}


/* ===================================================
   View all
   =================================================== */

.snap_view_more {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    margin-left: auto;

    color: #111111 !important;

    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1;

    text-decoration: none !important;
    white-space: nowrap;

    transition: color 0.16s ease;
}


/* View all 화살표 */

.snap_view_arrow {
    display: inline-block;
    flex: 0 0 auto;

    width: 8px;
    height: 8px;
    margin-left: 3px;

    border-top: 2px solid #111111;
    border-right: 2px solid #111111;

    transform: rotate(45deg);
}

.snap_view_more:hover,
.snap_view_more:focus {
    color: #ff4b16 !important;
    text-decoration: none !important;
}

.snap_view_more:hover .snap_view_arrow,
.snap_view_more:focus .snap_view_arrow {
    border-color: #ff4b16;
}


/* ===================================================
   사진 목록
   PC에서 6개 한 줄
   =================================================== */

.snap_grid {
    width: 100%;
    margin: 0;
    padding: 12px 18px 16px;

    list-style: none;

    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;

    overflow: hidden;
}

.snap_card {
    display: none;

    min-width: 0;
    margin: 0;
    padding: 0;
}

.snap_card.is_visible {
    display: block;
}

.snap_link {
    display: block;

    width: 100%;

    color: inherit;
    text-decoration: none !important;
}

.snap_link:hover,
.snap_link:focus,
.snap_link:active {
    color: inherit;
    text-decoration: none !important;
}


/* ===================================================
   사진 카드
   =================================================== */

.snap_thumb {
    position: relative;

    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #eef2f6;

    border: 1px solid #dce4ed;
    border-radius: 8px;

    box-shadow:
        0 2px 5px rgba(15, 32, 55, 0.09),
        0 5px 12px rgba(15, 32, 55, 0.04);

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.snap_thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1.001);

    transition: transform 0.24s ease;
}

.snap_link:hover .snap_thumb {
    border-color: #c9d5e3;

    box-shadow:
        0 3px 7px rgba(15, 32, 55, 0.11),
        0 7px 15px rgba(15, 32, 55, 0.06);
}

.snap_link:hover .snap_thumb img {
    transform: scale(1.035);
}


/* ===================================================
   사진 아래 그라데이션
   =================================================== */

.snap_thumb::after {
    content: "";

    position: absolute;
    z-index: 1;

    right: 0;
    bottom: 0;
    left: 0;

    height: 52%;

    pointer-events: none;

    background: linear-gradient(
        180deg,
        rgba(5, 9, 16, 0) 0%,
        rgba(5, 9, 16, 0.18) 45%,
        rgba(5, 9, 16, 0.78) 100%
    );
}


/* ===================================================
   사진 안쪽 정보
   =================================================== */

.snap_overlay {
    position: absolute;
    z-index: 2;

    right: 0;
    bottom: 0;
    left: 0;

    padding: 0 8px 8px;

    color: #ffffff;
}


/* ===================================================
   카테고리 라벨
   =================================================== */

.snap_badge {
    display: inline-flex;
    align-items: center;

    min-height: 14px;
    margin: 0 0 4px;
    padding: 1px 5px;

    border-radius: 3px;

    color: #ffffff;

    font-family: inherit !important;
    font-size: 7px;
    font-weight: 900;
    line-height: 12px;
    letter-spacing: -0.1px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.snap_badge_food {
    background: #ff7900;
}

.snap_badge_travel {
    background: #2879e7;
}

.snap_badge_cafe {
    background: #2fa75b;
}

.snap_badge_daily {
    background: #247da0;
}


.snap_badge_nature {
    background: #4ba749;
}

.snap_badge_culture {
    background: #8a4bd5;
}

.snap_badge_snap {
    background: #64748b;
}
.snap_badge_recipes {
    background: #7c5ce6;
    color: #fff;
}


/* ===================================================
   게시물 제목
   =================================================== */

.snap_subject {
    display: block;

    width: 100%;
    margin: 0 0 5px;

    overflow: hidden;

    color: #ffffff;

    font-family: inherit !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.2px;

    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.68);

    white-space: nowrap;
}


/* ===================================================
   좋아요와 댓글
   =================================================== */

.snap_meta {
    display: flex;
    align-items: center;
    gap: 9px;

    color: rgba(255, 255, 255, 0.98);

    font-family: inherit !important;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;

    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.68);
}

.snap_stat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.snap_heart {
    color: #ffffff;

    font-size: 11px;
    line-height: 1;
}


/* 댓글 아이콘 */

.snap_comment {
    position: relative;

    display: inline-block;

    width: 10px;
    height: 8px;

    border: 1.3px solid #ffffff;
    border-radius: 50%;
}

.snap_comment::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -3px;

    width: 3px;
    height: 3px;

    border-left: 1.3px solid #ffffff;

    transform: rotate(-30deg);
}


/* ===================================================
   게시물이 없을 때
   =================================================== */

.snap_empty,
.snap_empty_filter {
    grid-column: 1 / -1;

    padding: 32px 0;

    color: #94a3b8;

    font-family: inherit !important;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.snap_empty_filter {
    display: none;
    padding: 15px 0 24px;
}


/* ===================================================
   1200px 이하
   제목과 메뉴 크기 동일 유지
   =================================================== */

@media (max-width: 1200px) {

    .snap_nav_line {
        height: 56px;
        min-height: 56px;

        padding-right: 15px;
        padding-left: 15px;
    }

    .snap_nav_left {
        gap: 14px;
    }

    .snap_line_icon {
        font-size: 12px;
    }

    .snap_line_title_text {
        font-size: 13px !important;
        font-weight: 700 !important;
    }

    .snap_tabs {
        height: 56px;
    }

    .snap_tab {
        height: 56px;
        padding: 0 10px;

        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 56px !important;
    }

    .snap_tab.active {
        font-size: 13px !important;
        font-weight: 700 !important;
    }

    .snap_view_more {
        font-size: 10px !important;
    }

    .snap_grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;

        padding: 11px 14px 15px;
    }

    .snap_subject {
        font-size: 11px;
    }

    .snap_meta {
        gap: 7px;
        font-size: 9px;
    }
}


/* ===================================================
   태블릿·휴대폰
   제목과 메뉴 크기 동일 유지
   사진은 가로 스크롤
   =================================================== */

@media (max-width: 768px) {

    .snap_lt {
        border-radius: 13px;
    }

    .snap_nav_line {
        height: 54px;
        min-height: 54px;

        padding: 0 10px;

        overflow-x: auto;
        overflow-y: hidden;

        scrollbar-width: none;
    }

    .snap_nav_line::-webkit-scrollbar {
        display: none;
    }

    .snap_nav_left {
        min-width: max-content;
        gap: 10px;
    }

    .snap_line_icon {
        font-size: 11px;
    }

    .snap_line_title_text {
        font-size: 12px !important;
        font-weight: 700 !important;
    }

    .snap_tabs {
        height: 54px;
    }

    .snap_tab {
        height: 54px;
        padding: 0 9px;

        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 54px !important;
    }

    .snap_tab.active {
        font-size: 12px !important;
        font-weight: 700 !important;
    }

    .snap_view_more {
        margin-left: 10px;

        font-size: 10px !important;
    }

    .snap_view_arrow {
        width: 7px;
        height: 7px;
        margin-left: 2px;

        border-top-width: 2px;
        border-right-width: 2px;
    }

    .snap_grid {
        grid-template-columns: repeat(6, 130px);
        gap: 8px;

        padding: 10px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .snap_grid::-webkit-scrollbar {
        display: none;
    }

    .snap_card {
        scroll-snap-align: start;
    }

    .snap_subject {
        font-size: 10px;
    }

    .snap_meta {
        font-size: 8px;
    }
}