@charset "utf-8";

.vault-templates-modal .vt-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}


.vault-templates-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.vault-templates-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.vault-templates-modal .vt-wrap {
    position: relative;
    max-width: 800px;
    width: 100%;
    height: 70vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
}

.vault-templates-modal .vt-header {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.vault-templates-modal .vt-back {
    font-size: 16px;
    background: none;
    border: 0;
    cursor: pointer;
}

.vault-templates-modal .vt-close {
    font-size: 18px;
    background: none;
    border: 0;
    cursor: pointer;
}

.vault-templates-modal .vt-body {
    flex: 1;
    display: flex;
    min-height: 0;
}

.vault-templates-modal .vt-sidebar {
    width: 160px;
    border-right: 1px solid #eee;
    padding: 16px 0;
    overflow-y: auto;
    flex-shrink: 0;
}

.vault-templates-modal .vt-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vault-templates-modal .vt-menu li {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
}

.vault-templates-modal .vt-menu li.active {
    background: #f4f4f4;
    font-weight: 600;
}

.vault-templates-modal .vt-top-menu {
    display: none;
    border-bottom: 1px solid #eee;
}

.vault-templates-modal .vt-top-menu ul {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    margin: 0;
    list-style: none;
    overflow-x: auto;
}

.vault-templates-modal .vt-top-menu li {
    padding: 8px 14px;
    background: #f2f2f2;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.vault-templates-modal .vt-top-menu li.active {
    background: #000;
    color: #fff;
}

.vault-templates-modal .vt-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.vault-templates-modal .vt-section {
    margin-bottom: 32px;
}

.vault-templates-modal .vt-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.vault-templates-modal .vt-section-head h3 {
    font-size: 18px;
    margin: 0;
}

.vault-templates-modal .vt-view-all {
    font-size: 13px;
    background: none;
    border: 0;
    color: #007aff;
    cursor: pointer;
}

.vault-templates-modal .vt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.vault-templates-modal .vt-item {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
}

.vault-templates-modal .vt-item .thumb {
    height: 160px;
    background: #eaeaea;
    overflow: hidden;
}

.vault-templates-modal .vt-item .thumb img {
    width: 100%;
}

.vault-templates-modal .vt-item .info {
    padding: 12px;
}

.vault-templates-modal .vt-item .info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}

.vault-templates-modal .vt-item .info span {
    font-size: 13px;
    color: #777;
}

@media (max-width: 1024px) {

    /* 사이드바 숨김 유지 */
    .vault-templates-modal .vt-sidebar {
        display: none;
    }

    /* 상단 칩 메뉴 */
    .vault-templates-modal .vt-top-menu {
        display: block;
        border-bottom: 1px solid #eee;
        background: #fff;
    }

    .vault-templates-modal .vt-top-menu ul {
        display: flex;
        gap: 8px;
        padding: 10px 12px;
        margin: 0;
        list-style: none;

        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .vault-templates-modal .vt-top-menu ul::-webkit-scrollbar {
        display: none;
    }

    .vault-templates-modal .vt-top-menu li {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 999px;
        background: #f2f2f2;
        color: #333;
        white-space: nowrap;
        cursor: pointer;
    }

    .vault-templates-modal .vt-top-menu li.active {
        background: #000;
        color: #fff;
    }

    .vault-templates-modal .vt-body {
        flex-direction: column;
    }

    .vault-templates-modal .vt-content {
        padding: 16px;
    }
}

@media (max-width:768px) {
    .vault-templates-modal .vt-wrap {
        width: 90%;
    }
}
