/* ==========================================================
   Middle Menu 3 – 원형 아이콘(상단) + 제목(하단) 세로 배치
   PC: 10열 / 모바일: 5열 2줄
   위아래 실선 구분선 포함
   ========================================================== */

/* ── PC/모바일 노출 제어 ─────────────────────────────────── */
.mm3-hide-pc {
    display: none !important;
}

/* .mm3-hide-mobile: 아래 @media (max-width: 767px) 에서 처리 */

/* ── 래퍼 ──────────────────────────────────────────────── */
#winit-mm3-wrap {
    width: 100%;
    padding: 25px 0 7px;
    background: #fff;
}

/* ── 컨테이너: PC 10열 (실선 1200px 기준) ──────────────── */
.mm3-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;

    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
}

/* ── 개별 아이템 링크 ────────────────────────────────────── */
.mm3-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    outline: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    /* 모바일 탭 하이라이트 제거 */
}

/* ── 아이콘 원형 래퍼 ────────────────────────────────────── */
.mm3-item-icon-wrap {
    background-color: #f5f5f5;
    /* 인라인 CSS로 덮어씀 */
    border-radius: 22%;
    /* 첨부 사진처럼 둥근 사각형 */
    border: 1.5px solid #dddddd;
    /* 검은계열 실선 */
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    transition: transform 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
}

/* ── 이모지 ──────────────────────────────────────────────── */
.mm3-item-emoji {
    font-size: 30px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    text-align: center;
}

/* ── 이미지 ──────────────────────────────────────────────── */
.mm3-item-img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    display: block;
}

/* ── 둘 다 없는 경우 빈 공간 ─────────────────────────────── */
.mm3-item-empty {
    width: 38px;
    height: 38px;
    display: block;
}

/* ── 라벨 ────────────────────────────────────────────────── */
.mm3-item-label {
    color: #222222;
    /* 인라인 CSS로 덮어씀 */
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    word-break: keep-all;
    line-height: 1.3;
    width: 100%;
}

/* ── 호버 효과 ───────────────────────────────────────────── */
.mm3-item:hover .mm3-item-icon-wrap {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* ── 태블릿 ( 768px ~ 1024px ) ───────────────────────────── */
@media (min-width: 768px) and (max-width: 1024px) {
    .mm3-container {
        grid-template-columns: repeat(10, 1fr);
        gap: 6px;
    }

    .mm3-item-icon-wrap {
        width: 52px;
        height: 52px;
    }

    .mm3-item-emoji {
        font-size: 24px;
        width: 30px;
        height: 30px;
    }

    .mm3-item-img {
        width: 32px;
        height: 32px;
    }

    .mm3-item-label {
        font-size: 13px;
    }
}

/* ── 모바일 ( ≤ 767px ) ──────────────────────────────────── */
@media (max-width: 767px) {

    /* 모바일 숨기기 */
    .mm3-hide-mobile {
        display: none !important;
    }

    /* PC 숨기기 클래스 → 모바일에서는 다시 표시 */
    .mm3-hide-pc {
        display: flex !important;
    }

    #winit-mm3-wrap {
        padding: 20px 0 7px;
    }

    /* 모바일: 5열 (10개 = 2줄) */
    .mm3-container {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px 6px;
        padding: 0 8px;
    }

    .mm3-item {
        gap: 6px;
    }

    .mm3-item-icon-wrap {
        width: 52px;
        height: 52px;
        border-radius: 22%;
    }

    .mm3-item-emoji {
        font-size: 26px;
        width: 32px;
        height: 32px;
    }

    .mm3-item-img {
        width: 34px;
        height: 34px;
    }

    .mm3-item-empty {
        width: 32px;
        height: 32px;
    }

    .mm3-item-label {
        font-size: 13px;
    }
}