@charset "utf-8";

/* =========================================
   [초기화] 레이아웃 고정 및 박스 모델 설정
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* 모바일 터치 하이라이트 제거 */
}

/* =========================================
   1. 공통 테마 및 변수
   ========================================= */
:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --accent-color: #2980b9; 
    --accent-hover: #1abc9c;
    --btn-bg-default: #34495e; 
    --btn-text-default: #ffffff;
    --danger-color: #e74c3c;
    --border-color: #dce1e6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --radius-lg: 12px;
    --radius-md: 8px;
}

[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --accent-color: #3498db;
    --accent-hover: #1abc9c;
    --btn-bg-default: #2c3e50;
    --btn-text-default: #ecf0f1;
    --border-color: #333333;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 1600px; margin: 0 auto; padding: 20px;
    background-color: var(--bg-primary); color: var(--text-primary);
    font-size: 15px; 
    transition: background 0.4s ease, color 0.4s ease; /* Smother theme transition */
    overflow-x: hidden; width: 100%;
}

/* 페이드 인 애니메이션 (갤러리용) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.photo-wrapper {
    animation: fadeIn 0.5s ease backwards;
}
/* =========================================
   2. 헤더 (Re-designed)
   ========================================= */
.header { 
    background: var(--bg-secondary); 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-sm); 
    margin-bottom: 25px; 
    border: 1px solid var(--border-color);
    padding: 0; 
    overflow: visible; /* [수정] 드롭다운이 잘리지 않도록 변경 */
}

/* 상단: 타이틀 및 컨트롤 */
.header-top {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative; /* 자식 드롭다운의 기준점 */
    border-top-left-radius: calc(var(--radius-lg) - 1px);
    border-top-right-radius: calc(var(--radius-lg) - 1px);
}

.app-title { 
    font-size: 22px; 
    font-weight: 900; 
    color: var(--accent-color); 
    letter-spacing: 1px; 
    text-transform: uppercase;
    font-family: 'Poppins', -apple-system, sans-serif; /* 조금 더 모던한 폰트 우선 순위 */
}

.header-controls { display: flex; align-items: center; gap: 8px; }

/* 관리자 드롭다운 스타일 */
.admin-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0; /* [수정] 우측 정렬로 변경하여 모바일 잘림 방지 */
    left: auto;
    background-color: var(--bg-secondary);
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 5000; /* 매우 높게 설정 */
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-top: 8px;
}

.admin-dropdown-content.show { display: block; }

.admin-dropdown-content button, 
.admin-dropdown-content a {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.admin-dropdown-content button:hover, 
.admin-dropdown-content a:hover {
    background-color: var(--bg-primary);
    color: var(--accent-color);
}

.admin-dropdown-content a.admin-exit-link {
    color: var(--danger-color);
    border-bottom: none;
}
.admin-dropdown-content a.admin-exit-link:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

/* 사용자 정보 및 로그아웃 */
.user-info-simple { 
    background: #34495e; color: #fff; 
    padding: 6px 15px; border-radius: 20px; 
    font-size: 13px; font-weight: 600; 
    margin-left: 5px;
    display: flex; align-items: center;
}
[data-theme="dark"] .user-info-simple { background: #444; }
.user-info-simple .user-name { color: #fff !important; font-size: 13px; font-weight: 700; }

.mobile-only { display: none !important; }
.pc-only { display: flex !important; }

.logout-btn { 
    background: var(--danger-color); color: white; border: none; 
    padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: bold; 
    text-decoration: none; display: flex; align-items: center; transition: 0.2s;
}
.logout-btn:hover { background: #c0392b; opacity: 1; }

/* 하단: 그룹 네비게이션 */
.header-nav {
    padding: 10px 20px;
    background: var(--bg-secondary); /* 배경색 유지 */
    border-bottom-left-radius: calc(var(--radius-lg) - 1px);
    border-bottom-right-radius: calc(var(--radius-lg) - 1px);
}

.group-scroll-area {
    display: flex; 
    gap: 8px; 
    overflow-x: auto; /* 가로 스크롤 허용 */
    white-space: nowrap;
    padding-bottom: 5px; /* 스크롤바 공간 */
    align-items: center;
    /* 스크롤바 숨기기 (선택) */
    scrollbar-width: thin;
}
.group-scroll-area::-webkit-scrollbar { height: 4px; }
.group-scroll-area::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

/* 그룹 태그 */
.group-tag { 
    background: var(--bg-primary); color: var(--text-secondary); 
    border: 1px solid var(--border-color); padding: 7px 16px; 
    border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.2s; 
    flex-shrink: 0; /* 줄어들지 않음 */
}
.group-tag:hover { background: #e9ecef; color: #2c3e50; border-color: #cbd5e0; }
.group-tag.active { background: var(--accent-color); color: white !important; border-color: var(--accent-color); }
.group-tag.active:hover { background: var(--accent-hover); color: white !important; }

/* 그룹 순서 변경용 Sortable 스타일 */
.sortable-ghost {
    opacity: 0.4;
    background: #e0e0e0 !important;
}
.group-item-wrapper {
    cursor: grab;
    display: flex;
}
.group-item-wrapper:active {
    cursor: grabbing;
}
[data-theme="dark"] .group-tag:hover { background: #333; color: #fff; }

/* 헤더 버튼 공통 */
.header-btn { 
    background: var(--btn-bg-default); color: var(--btn-text-default); border: none;
    padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; 
    cursor: pointer; display: flex; align-items: center; gap: 5px; transition: all 0.2s;
    white-space: nowrap;
}
.header-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.15); opacity: 1; }
.header-btn.map-btn { background: #27ae60; }
.header-btn.admin-mode-btn { background: #e67e22; }
.header-btn.admin-exit-btn { background: #7f8c8d; }
.header-btn.icon-only { padding: 6px 10px; font-size: 15px; }

/* 모바일 헤더 최적화 */
@media (max-width: 768px) {
    .header-top { 
        padding: 0; /* 패딩을 개별 행으로 이동하여 구분선 길이 조절 */
        flex-direction: column; 
        align-items: stretch; 
        gap: 0; 
    }
    
    .mobile-only { display: flex !important; }
    
    /* 1행: 로고 + 유저그룹 */
    .header-logo-row { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        padding: 12px 15px; /* 내부 패딩 적용 */
        margin-bottom: 0;
    }

    .header-user-group {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .user-name-mobile {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-primary);
        background: rgba(52, 73, 94, 0.1); /* 배경색 다시 추가 */
        padding: 4px 8px;
        border-radius: 15px;
    }
    [data-theme="dark"] .user-name-mobile { background: rgba(255,255,255,0.1); color: #fff; }

    .logout-btn-sm {
        background: var(--danger-color);
        color: white;
        padding: 4px 10px !important;
        font-size: 11px !important;
        border-radius: 10px; /* 라운드 통일 */
        text-decoration: none;
        font-weight: bold;
        min-width: auto !important;
    }

    /* 2행: 기능 버튼들 */
    .header-controls { 
        width: 100%; 
        padding: 12px 15px; /* 내부 패딩 적용 */
        justify-content: flex-end; /* 오른쪽 정렬 요청 반영 */
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .control-buttons-group {
        display: flex;
        flex-wrap: wrap; 
        gap: 8px;
        width: 100%;
        justify-content: flex-end; /* 그룹 내부 버튼도 오른쪽 정렬 */
    }

    .header-btn {
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: fit-content !important;
        padding: 8px 12px !important;
        font-size: 13px !important;
        white-space: nowrap;
        border-radius: 10px !important; /* 즐겨찾기/메모 버튼과 동일한 라운드 처리 */
    }
    
    .app-title { font-size: 18px; text-align: left; display: block; }
    
    .pc-user-group { display: none !important; }
    .header-nav { padding: 10px 15px; }
}

/* PC 스타일 보강 */
.header-controls { display: flex; align-items: center; gap: 15px; }
.control-buttons-group { display: flex; align-items: center; gap: 8px; }
.pc-user-group { display: flex; align-items: center; gap: 10px; }

/* =========================================
   3. 대시보드 탑 패널
   ========================================= */
.dashboard-top-panel {
    display: flex; gap: 30px; margin-bottom: 25px;
    background: var(--bg-secondary); padding: 30px;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    align-items: center; flex-wrap: wrap; justify-content: space-between;
    width: 100%;
}
/* .location-area { flex: 1; min-width: 300px; } */
/* [수정 후] 제목 영역은 글자만큼만 차지하고, 나머지는 폴더에게 양보 */
.location-area { 
    flex: 0 0 auto; /* 고정 크기 제거 (글자 길이만큼만) */
    /* min-width: 300px;  <-- 이 부분이 공간 낭비의 주범이라 삭제 */
}
.location-path { font-size: 15px; color: var(--text-secondary); margin-bottom: 8px; font-weight: 500; }
.path-link { text-decoration: none; color: var(--text-secondary); transition: 0.2s; }
.path-link:hover { color: var(--accent-color); text-decoration: underline; }
.path-sep { margin: 0 6px; font-size: 12px; opacity: 0.5; }
.path-root { font-weight: bold; color: var(--accent-color); }
.current-folder-title { font-size: 32px; font-weight: 800; margin: 0; color: var(--text-primary); letter-spacing: -0.5px; }

/* PC: 줄바꿈(Wrap) 방식 */
/*.folder-scroll-area {
    display: flex; 
    gap: 10px;                  
    flex-wrap: wrap;            
    justify-content: flex-end;  
    padding-left: 20px;         
    padding-right: 0;           
    padding-bottom: 0;
    flex: 2; 
    align-items: center;
    overflow-x: visible;       
}*/
.folder-scroll-area {
    display: flex; 
    gap: 10px;                  
    flex-wrap: wrap;            
    justify-content: flex-end;  
    
    padding-left: 20px;         
    padding-right: 0;           
    padding-bottom: 0;
    
    flex: 1; /* [변경] flex: 2 -> 1 (이제 남은 공간 전체를 씀) */
    align-items: center;
    overflow-x: visible;       
}

.folder-scroll-area > :first-child { margin-left: 0; }

.folder-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 110px; height: 100px; flex-shrink: 0;
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); cursor: pointer; text-decoration: none;
    transition: all 0.2s ease; position: relative;
    margin-bottom: 10px; 
}
.folder-card:last-child { margin-bottom: 0; }
.folder-card:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); border-color: var(--accent-color); background: var(--bg-secondary); }
.folder-card.active { background: #34495e; border-color: #34495e; color: white; }
.folder-card.active .folder-icon-large { color: white; }
.folder-card.active .folder-name { color: white; }

.create-card { border: 2px dashed #bdc3c7; background: transparent; }
.create-card:hover { border-color: var(--accent-color); background: rgba(52, 152, 219, 0.05); }

.folder-icon-large { font-size: 26px; margin-bottom: 6px; color: var(--text-secondary); }
.folder-icon-img { font-size: 36px; margin-bottom: 4px; }
.folder-name { font-size: 13px; font-weight: 600; color: var(--text-primary); text-align: center; width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.folder-del-btn-floating {
    position: absolute; top: 0; right: 0; width: 28px; height: 28px; 
    background: white; border: 1px solid #ddd; border-radius: 50%; color: var(--danger-color);
    display: flex; align-items: center; justify-content: center; font-size: 16px; 
    cursor: pointer; opacity: 0; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); z-index: 10;
    line-height: 0; padding-bottom: 2px;
}
.folder-card-wrapper { margin-bottom: 10px; position: relative; }
.folder-card-wrapper:hover .folder-del-btn-floating { opacity: 1; top: -5px; right: -5px; }
.folder-del-btn-floating:hover { background: var(--danger-color); color: white; border-color: var(--danger-color); transform: scale(1.1); }

.folder-rename-btn-floating {
    position: absolute; top: 0; left: 0; width: 28px; height: 28px; 
    background: white; border: 1px solid #ddd; border-radius: 50%; color: var(--accent-color);
    display: flex; align-items: center; justify-content: center; font-size: 16px; 
    cursor: pointer; opacity: 0; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); z-index: 10;
    line-height: 0; 
}
.folder-card-wrapper:hover .folder-rename-btn-floating { opacity: 1; top: -5px; left: -5px; }
.folder-rename-btn-floating:hover { background: var(--accent-color); color: white; border-color: var(--accent-color); transform: scale(1.1); }
.folder-rename-btn-floating:hover { background: var(--accent-color); color: white; border-color: var(--accent-color); }

/* =========================================
   4. 컨트롤 툴바 & 버튼
   ========================================= */
.control-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-secondary); padding: 12px 20px;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
    margin-bottom: 25px; border: 1px solid var(--border-color); flex-wrap: wrap; gap: 15px;
    width: 100%;
    
    /* 상단 고정 (Sticky) */
    position: sticky;
    top: 10px;
    z-index: 1000;
}

.toolbar-left { 
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    gap: 10px; 
    flex: 1;
}

.toolbar-right { 
    display: flex; 
    align-items: center; 
    justify-content: flex-end; 
    gap: 10px; 
    flex: 1;
}

.action-group { 
    display: flex; 
    gap: 8px; 
    align-items: center; 
    justify-content: flex-end;
}
.divider { width: 1px; height: 24px; background: var(--border-color); margin: 0 10px; }

.select-wrapper { position: relative; display: inline-block; }
.custom-select {
    padding: 10px 35px 10px 15px; border-radius: var(--radius-md);
    border: 1px solid var(--border-color); background: var(--bg-primary);
    color: var(--text-primary); font-weight: 600; font-size: 15px; cursor: pointer;
    appearance: none; -webkit-appearance: none; outline: none;
}
.select-wrapper::after {
    content: '▼'; font-size: 11px; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); pointer-events: none;
}

.action-btn { 
    height: 34px;
    padding: 0 15px; 
    border-radius: 10px; 
    font-size: 13px; 
    font-weight: 700;
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; /* Center text/icons */
    gap: 6px; 
    border: none; 
    transition: all 0.2s;
    background: var(--btn-bg-default); 
    color: var(--btn-text-default);
    min-width: 85px; /* Minimum width for consistency */
}

/* 특정 버튼 쌍의 크기 통일 */
.btn-mode, .btn-primary-upload, .btn-danger, .btn-dark { width: 110px !important; }

.action-btn:hover { background: #2c3e50; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }.action-btn:disabled, .action-btn.disabled {
    background: #e0e0e0; color: #a0a0a0; 
    cursor: not-allowed; transform: none; box-shadow: none; border: 1px solid #d0d0d0;
}
[data-theme="dark"] .action-btn:disabled { background: #333; color: #555; border-color: #444; }

.btn-primary-upload { background: var(--accent-color); color: white; }
.btn-primary-upload:hover { background: var(--accent-hover); }
.btn-mode.active { background: #e67e22; color: white; }
.btn-mode.active:hover { background: #d35400; }
.btn-danger { background: rgba(231, 76, 60, 0.1); color: var(--danger-color); border:1px solid rgba(231,76,60,0.2); }
.btn-danger:hover { background: var(--danger-color); color: white; }
.btn-danger:disabled { background: #e0e0e0; color: #a0a0a0; border: none; }
.view-toggle-group {
    display: flex;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2px;
    gap: 2px;
}

.view-btn { 
    height: 30px;
    padding: 0 12px; 
    border: none; 
    background: transparent; 
    color: var(--text-secondary); 
    font-weight: 700; 
    font-size: 12px;
    cursor: pointer; 
    border-radius: 8px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.view-btn.active { background: var(--btn-bg-default); color: white !important; }

/* 툴바 필터/기능 버튼 */
.btn-fav, .btn-memo {
    height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn-fav { background: #e74c3c; color: white; }
.btn-fav:hover { background: #c0392b; transform: translateY(-1px); }
.btn-fav.active-filter { background: #c0392b; box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); }

.btn-memo { background: #f39c12; color: white; }
.btn-memo:hover { background: #d35400; transform: translateY(-1px); }

/* =========================================
   5. 갤러리 그리드
   ========================================= */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; width: 100%; }
.photo-wrapper { 
    position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 16px; 
    cursor: pointer; background: transparent; transition: transform 0.2s, box-shadow 0.2s; border: none; 
    display: flex; align-items: center; justify-content: center;
}
.photo-wrapper img, .photo-wrapper video { 
    width: 100%; height: 100%; min-width: 100%; min-height: 100%; 
    object-fit: cover; object-position: center; transition: 0.4s; 
    display: block; flex-shrink: 0;
}
.photo-wrapper:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); z-index: 2; }
.photo-wrapper:hover img { transform: scale(1.05); }
.selection-mode .photo-wrapper.selected { 
    opacity: 1; transform: scale(1); filter: none;
    outline: 4px solid #e67e22; box-shadow: 0 0 15px rgba(230, 126, 34, 0.6); 
}

/* [추가] 선택 모드에서 선택되더라도 즐겨찾기가 아닌 하트는 흑백 유지 */
.selection-mode .photo-wrapper.selected .fav-icon:not(.active) {
    filter: grayscale(1) opacity(0.6) !important;
}
.selection-mode .photo-wrapper { opacity: 0.6; filter: grayscale(50%); transform: scale(0.95); }

.check-icon { 
    position: absolute; top: 10px; right: 10px; font-size: 28px; 
    display: none; z-index: 10; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); color: #e67e22; 
}
.selected .check-icon { display: block; }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 30px; color: white; text-shadow: 0 0 5px rgba(0,0,0,0.5); }

/* =========================================
   6. 기타 (모달, 로그 등)
   ========================================= */
.common-modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.common-modal-content { background: var(--bg-secondary); color: var(--text-primary); margin: 5% auto; padding: 35px; border-radius: 16px; width: 90%; max-width: 450px; box-shadow: 0 15px 40px rgba(0,0,0,0.25); position: relative; border: 1px solid var(--border-color); }
.close-icon { position: absolute; top: 20px; right: 25px; font-size: 28px; cursor: pointer; color: var(--text-secondary); transition:0.2s; }
.close-icon:hover { color: var(--danger-color); transform:rotate(90deg); }

.admin-pw-modal-content { 
    background: var(--bg-secondary); color: var(--text-primary); margin: 15% auto; padding: 30px; 
    border-radius: 12px; width: 320px; text-align: center; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); position: relative; border: 1px solid var(--border-color);
}
.admin-pw-input { width: 100%; padding: 12px; margin: 15px 0; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; font-size: 16px; }

.filter-buttons-wrapper { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px dashed var(--border-color); }
.filter-badge { padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: bold; color: white; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: transform 0.2s, opacity 0.2s; opacity: 0.6; }
.filter-badge:hover { opacity: 0.9; transform: scale(1.05); }
.filter-badge.active { opacity: 1; box-shadow: 0 3px 8px rgba(0,0,0,0.2); transform: scale(1.1); border: 2px solid rgba(255,255,255,0.8); }

.account-groups { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.g-badge { padding: 3px 8px; border-radius: 15px; font-size: 11px; color: #fff; font-weight: 600; text-shadow: 0 1px 1px rgba(0,0,0,0.2); box-shadow: 0 1px 2px rgba(0,0,0,0.15); display: inline-flex; align-items: center; white-space: nowrap; }

/* 로그 뷰어 모달 스타일 */
#log-viewer-modal .common-modal-content { 
    max-width: 1200px !important; width: 95%; height: 85vh; 
    display: flex; flex-direction: column; 
    background: #1a1a1a; 
    border: 1px solid #333; padding: 0; overflow: hidden;
}
#log-viewer-modal .close-icon { top: 15px; right: 20px; color: #fff; z-index: 10; }
#log-viewer-modal h3 { padding: 20px 25px; margin: 0; color: #fff; background: #1a1a1a; border-bottom: 1px solid #333; }

.log-tabs { display: flex; background: #121212; padding: 0 20px; gap: 5px; border-bottom: 1px solid #333; }
.log-tab { padding: 12px 25px; background: transparent; border: none; color: #888; font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.2s ease; border-bottom: 3px solid transparent; }
.log-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.log-tab.active { color: #39ff14; border-bottom: 3px solid #39ff14; background: linear-gradient(to top, rgba(57, 255, 20, 0.1), transparent); }

.log-display-area { 
    background: #0d0d0d; color: #39ff14; padding: 25px; 
    font-family: "D2Coding", "Consolas", "Monaco", monospace; font-size: 14px; line-height: 1.7; 
    flex: 1; overflow-y: auto; white-space: pre-wrap; word-break: break-all; border: none; 
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8); margin: 0; border-radius: 0;
}
.log-display-area::-webkit-scrollbar { width: 10px; }
.log-display-area::-webkit-scrollbar-track { background: #1a1a1a; }
.log-display-area::-webkit-scrollbar-thumb { background: #444; border-radius: 5px; }
.log-display-area::-webkit-scrollbar-thumb:hover { background: #666; }

#admin-dashboard-modal .common-modal-content {
    max-width: 1200px !important; 
    width: 95%; height: auto; max-height: 80vh; 
    display: flex; flex-direction: column;
}

.account-grid { 
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 15px; padding: 5px 12px 10px 0; overflow-y: auto; 
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}
.account-grid::-webkit-scrollbar { width: 6px; }
.account-grid::-webkit-scrollbar-track { background: transparent; }
.account-grid::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }
.account-grid::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }

[data-theme="dark"] {
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
[data-theme="dark"] .account-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }
[data-theme="dark"] .account-grid::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }


.account-card { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; padding: 15px; box-shadow: var(--shadow-sm); transition: 0.2s; display: flex; flex-direction: column; gap: 8px; }
.account-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-color); }
.account-name { font-size: 16px; font-weight: bold; border-bottom: 1px dashed #ccc; padding-bottom: 6px; margin-bottom: 4px; display:flex; justify-content:space-between; align-items: center; }
.pw-expire-btn { cursor: pointer; color: var(--text-secondary); transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; }
.pw-expire-btn:hover { color: #e67e22; background: rgba(230, 126, 34, 0.1); transform: rotate(15deg) scale(1.2); }


.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); }
.modal-content-container { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
/* [NEW] 팝업 내 사진 위 하트 아이콘 */
.photo-zoom-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.photo-inner {
    position: relative;
    display: inline-flex; /* 사진 크기에 딱 맞춰짐 */
    max-width: 100%;
    max-height: 100%;
    justify-content: center;
    align-items: center;
}

/* [추가] 모바일용 더보기 버튼 스타일 */
.slide-more-btn {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border-radius: 50%;
    display: none; /* [수정] PC에서는 숨김 */
    align-items: center;
    justify-content: center;
    font-size: 26px;
    z-index: 150;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.slide-more-btn:active {
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .slide-more-btn { display: flex; }
}

/* [추가] 모바일 더보기 팝업 메뉴 스타일 */
/* [추가] 모바일에서 상단 버튼 숨기기 (닫기 버튼 제외) */
@media (max-width: 768px) {
    .modal-header-actions .action-icon:not([onclick*="closeModal"]) {
        display: none !important;
    }
    /* 상단 영역 여백 조정 */
    .modal-header-actions {
        padding: 10px;
        top: 15px;
        right: 15px;
        justify-content: flex-end;
    }
    .modal-header-actions .action-icon {
        width: 44px;
        height: 44px;
    }
}

.mobile-more-popup {
    position: fixed;
    display: none;
    flex-direction: column;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid #444;
    border-radius: 18px;
    width: 220px;
    z-index: 5500;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    overflow: hidden;
    padding: 8px;
}

.mobile-more-popup.active {
    display: flex;
}

.mobile-more-popup .menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #eee;
    font-size: 15.5px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s;
}

.mobile-more-popup .menu-item:active {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-more-popup .menu-item .icon {
    font-size: 19px;
    width: 24px;
    text-align: center;
}

.mobile-more-popup .menu-item.delete {
    color: #ff7675;
    border-top: 1px solid #444;
    margin-top: 4px;
    border-radius: 0 0 10px 10px;
}

.photo-inner img, 
.photo-inner video {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.slide-fav-btn, .slide-memo-btn {
    position: absolute;
    z-index: 1000;
    font-size: 14px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    user-select: none;
}

.slide-fav-btn {
    top: 12px;
    right: 12px;
    filter: grayscale(1) opacity(0.7);
}

.slide-memo-btn {
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
}

.slide-fav-btn.active { 
    filter: grayscale(0) opacity(1);
    color: #e74c3c;
    background: rgba(0, 0, 0, 0.5); 
}
.slide-fav-btn:hover, .slide-memo-btn:hover { 
    transform: scale(1.1); 
    background: rgba(0, 0, 0, 0.6);
    filter: grayscale(0) opacity(1); 
}

.modal-content { max-width: 95%; max-height: 90vh; border-radius: 4px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.modal-header-actions { position: absolute; top: 20px; right: 20px; z-index: 3000; display: flex; gap: 15px; justify-content: flex-end; }
.action-icon { color: white; font-size: 20px; cursor: pointer; width: 44px; height: 44px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.action-icon:hover { 
    background: rgba(255,255,255,0.25); 
    transform: scale(1.15); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.action-icon:active { transform: scale(0.95); }

.prev, .next { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    padding: 20px; color: white; font-size: 40px; cursor: pointer; 
    z-index: 2100; opacity: 0.7; transition: 0.2s; 
}
.prev { left: 20px; }  
.next { right: 20px; } 
.prev:hover, .next:hover { opacity: 1; background: rgba(0,0,0,0.5); border-radius: 50%; }

.modal-caption { position: absolute; bottom: 30px; left: 0; width: 100%; text-align: center; color: white; text-shadow: 0 1px 3px rgba(0,0,0,0.8); font-size: 18px; pointer-events: none; font-weight:500; }
.meta-info-box { display: none; position: absolute; top: 80px; right: 20px; width: 300px; background: rgba(0,0,0,0.8); color: #fff; padding: 20px; border-radius: 12px; font-size: 14px; z-index: 2500; backdrop-filter: blur(10px); line-height:1.6; }
.meta-row { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.2); padding: 8px 0; }
.meta-label { color: var(--accent-color); font-weight: bold; }
.progress-overlay { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.7); z-index:9999; justify-content:center; align-items:center; color:white; }
.progress-box { width: 320px; background: var(--bg-secondary); padding: 40px; border-radius: 20px; text-align: center; color: var(--text-primary); box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
.progress-bar-bg { width: 100%; height: 12px; background: #e0e0e0; border-radius: 6px; margin-top: 25px; overflow: hidden; }
.progress-bar-fill { height: 100%; width: 0%; background: var(--accent-color); transition: width 0.2s; }
#map-container { width: 100%; height: 500px; border-radius: var(--radius-lg); margin-bottom: 25px; border: 1px solid var(--border-color); background: #eee; display: none; }
.map-tooltip { background: rgba(0,0,0,0.8); color: white; padding: 8px 12px; border-radius: 4px; font-size: 12px; }

/* 스크롤 잠금 강제 설정 (모바일 대응) */
html.scroll-lock, body.scroll-lock {
    overflow: hidden !important;
    height: 100% !important;
    position: fixed !important;
    width: 100% !important;
    -webkit-overflow-scrolling: none;
    touch-action: none;
}

/* 폴더 이동 모달 최적화 */
.folder-move-list {
    max-height: 350px;
    overflow-y: auto;
    text-align: left;
    border: 1px solid var(--border-color);
    padding: 5px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: var(--bg-primary);
}

.folder-move-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 500;
    gap: 10px;
}

.folder-move-item:last-child { border-bottom: none; }

.folder-move-item:hover {
    background: var(--accent-color);
    color: white !important;
    transform: translateX(5px);
}

.folder-move-item .icon { font-size: 18px; }

/* =========================================
   [FINAL] 지도 마커 팝업 스타일
   ========================================= */
/* =========================================
   [SIDE-BY-SIDE] 지도 마커 팝업 스타일
   ========================================= */
.leaflet-popup-content-wrapper {
    padding: 0 !important;
    overflow: hidden;
    border-radius: 12px !important;
    background: var(--bg-secondary) !important; 
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
}

/* Force dark mode background */
[data-theme="dark"] .leaflet-popup-content-wrapper,
[data-theme="dark"] .leaflet-popup-tip {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 240px !important; 
}

.map-popup-card {
    display: flex;
    flex-direction: column;
    background: transparent !important;
}

.map-popup-top-row {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 12px;
    background: transparent !important;
}

.map-popup-image-small {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important; /* Remove container border */
}

.map-popup-thumb {
    width: 65px; /* Use absolute size to match parent */
    height: 65px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--border-color); /* Real border on image */
    border-radius: 8px;
    box-sizing: border-box; /* Ensure border stays inside 65px */
}

.map-popup-folder-right {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-popup-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0 12px;
}

.map-popup-content-large {
    padding: 15px;
    text-align: left;
}

.map-popup-title-large {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    word-break: break-all;
}

.map-popup-meta-large {
    font-size: 14px;
    font-weight: 700; /* Bold date text */
    color: var(--text-primary);
    margin-bottom: 15px;
    opacity: 0.9;
}

.map-popup-action-large {
    width: 100%;
    background: var(--accent-color);
    color: white !important;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.map-popup-action-large:hover {
    background: var(--accent-hover);
}

.leaflet-popup-tip {
    background: var(--bg-secondary) !important;
}

.leaflet-container a.leaflet-popup-close-button {
    color: var(--text-secondary) !important;
    top: 10px !important;
    right: 10px !important;
    font-size: 20px !important;
}

/* 7. 로그인 페이지 */
body.login-body {
    display: flex; justify-content: center; align-items: center; height: 100vh;
    background-color: #2c3e50; margin: 0; max-width: none; padding: 0;
}
.login-card { background: white; padding: 40px; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); width: 320px; text-align: center; }
.login-card input[type=text], .login-card input[type=password] { width: 100%; padding: 12px; margin: 8px 0; border: 1px solid #ddd; border-radius: 6px; box-sizing: border-box; }
.login-card input[type=submit] { width: 100%; padding: 12px; background-color: #3498db; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 16px; font-weight: bold; margin-top: 15px; transition: 0.2s; }
.login-card input[type=submit]:hover { background-color: #2980b9; }
.login-error { color: #e74c3c; font-size: 14px; margin-bottom: 10px; font-weight: bold; }

/* =========================================
   [NEW] 모바일 최적화 (768px 이하)
   ========================================= */
@media (max-width: 768px) {
    /* 1. 패널 및 헤더 간소화 */
    body { padding: 10px; }
    .header { padding: 12px 15px; gap: 10px; }
    .dashboard-top-panel { padding: 15px; gap: 15px; flex-direction: column; align-items: stretch; }
    .location-area { min-width: auto; margin-bottom: 5px; }
    .current-folder-title { font-size: 20px; margin-top: 5px; }

    /* 2. [핵심] 폴더 목록: 모바일에서는 '가로 스크롤' 방식으로 변경 (공간 절약) */
    .folder-scroll-area { 
        width: 100%;
        flex-wrap: nowrap;           /* PC의 줄바꿈(wrap)을 해제하고 한 줄로 */
        overflow-x: auto;            /* 가로 스크롤 허용 */
        justify-content: flex-start; /* 왼쪽 정렬 */
        padding: 15px 5px 10px 5px;  /* [수정] 상단 패딩 유지 */
        gap: 12px;
    }
    .folder-scroll-area > :first-child { margin-left: 0; }
    
    /* [모바일 수정/삭제 버튼 표시 로직 단순화] */
    
    /* 1. 모바일에서는 기본적으로 무조건 숨김 (Hover 효과 제거) */
    .folder-del-btn-floating, .folder-rename-btn-floating {
        display: none !important;
        transition: none !important; /* 터치 시 깜빡임 방지 */
    }

    /* 2. 롱프레스 활성화 시에만 무조건 표시 */
    .folder-card-wrapper.active-longpress .folder-del-btn-floating, 
    .folder-card-wrapper.active-longpress .folder-rename-btn-floating {
        display: flex !important;
        opacity: 1 !important;
        top: -8px !important;
        z-index: 100 !important; /* 다른 요소보다 위에 표시 */
    }
    
    .folder-card-wrapper.active-longpress .folder-rename-btn-floating { left: -5px !important; }
    .folder-card-wrapper.active-longpress .folder-del-btn-floating { right: -5px !important; }

    /* [중요] 꾹 눌렀을 때 시스템 메뉴(링크 복사 등) 방지 */
    .folder-card, .folder-card *, .folder-card-wrapper {
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -khtml-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        -webkit-tap-highlight-color: transparent;
        touch-action: pan-x; /* [PWA] 가로 스크롤은 허용하되 다른 제스처 간섭 최소화 */
    }

    /* [추가] 꾹 누르는 동안 시각적 피드백 (햅틱 대체) */
    .folder-card.pressing {
        transform: scale(0.94); /* 조금 더 작게 */
        opacity: 0.9;
        /* 테두리 강조 효과 추가 (iOS 진동 부재 보완) */
        box-shadow: 0 0 0 3px var(--accent-color), 0 4px 12px rgba(0,0,0,0.2);
        transition: all 0.1s ease-out;
        z-index: 10; /* 눌릴 때 살짝 위로 */
    }

    /* 모바일 폴더 카드 크기 축소 */
    .folder-card { width: 90px; height: 85px; margin-bottom: 0; }
    .folder-icon-large { font-size: 22px; margin-bottom: 3px; }
    .folder-icon-img { font-size: 28px; margin-bottom: 2px; }
    .folder-name { font-size: 11px; width: 95%; }
    .folder-card-wrapper { margin-bottom: 0; } /* 카드 래퍼 마진 제거 */

        /* 3. 툴바 최적화: 모바일 전용 레이아웃 */
        .control-toolbar { 
            flex-direction: column; 
            align-items: stretch; 
            gap: 12px; 
            padding: 12px; 
        }
        
        .toolbar-left { 
            justify-content: flex-start; 
            width: 100%; 
            gap: 8px;
            flex-wrap: wrap; /* 왼쪽 그룹도 줄바꿈 허용 */
        }

        .btn-fav, .btn-memo {
            flex: 0 1 auto;
            min-width: fit-content;
            padding: 8px 12px;
        }
        
        .toolbar-right { 
            width: 100%;
        }
        
        .action-group {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            width: 100%;
            justify-content: stretch; /* 전체 너비 활용 */
        }
    
        .control-toolbar .action-btn {
            flex: 1 1 0 !important; /* 모든 버튼이 동일한 비율로 공간을 나눔 */
            width: 0 !important;      /* flex-basis가 우선되도록 설정 */
            min-width: 0 !important;  /* 최소 너비 제한 해제 */
            padding: 0 5px !important; /* 내부 패딩 축소 */
            font-size: 13px !important;
            height: 38px !important;
            border-radius: 10px;
            justify-content: center;
            white-space: nowrap;      /* 텍스트 줄바꿈 방지 */
            overflow: hidden;         /* 넘치는 텍스트 숨김 */
        }
    
        #multiDeleteBtn {
            flex: 0 0 100% !important; /* 무조건 다음 줄 전체 차지 */
            margin-top: 5px;
            font-size: 14px !important;
            font-weight: 800 !important;
        }
            
            .divider { display: none; }

            /* 4. [핵심] 갤러리 그리드: 2열 고정 */
            .gallery {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 10px;
            }

            /* 관리자 모달 공통 모바일 최적화 */
            #admin-dashboard-modal .common-modal-content,
            #log-viewer-modal .common-modal-content,
            #db-manager-modal .common-modal-content {
                width: 100% !important;
                margin: 0 !important;
                height: 100vh !important;
                border-radius: 0 !important;
                padding: 15px !important;
            }

            /* 계정 현황판 최적화 */
            .account-grid {
                grid-template-columns: 1fr !important;
                gap: 10px !important;
                padding-right: 0 !important;
            }
            .account-card { padding: 12px !important; }
            .account-name { font-size: 14px !important; }

            /* 로그 뷰어 최적화 */
            .log-tabs { 
                overflow-x: auto !important; 
                white-space: nowrap !important;
                padding: 0 10px !important;
            }
            .log-tab { padding: 10px 15px !important; font-size: 12px !important; }
            .log-display-area { padding: 15px !important; font-size: 12px !important; }

            /* DB 매니저 최적화 */
            #db-manager-modal .common-modal-content > div:nth-child(2) {
                flex-direction: column !important; /* 사이드바를 위로 */
            }
            #db-manager-modal div[style*="width: 220px"] {
                width: 100% !important;
                height: auto !important;
                max-height: 150px !important;
                border-right: none !important;
                border-bottom: 1px solid var(--border-color) !important;
            }
            #db-table-list {
                display: flex !important;
                overflow-x: auto !important;
                white-space: nowrap !important;
                padding: 10px !important;
            }
            .db-table-item {
                display: inline-flex !important;
                padding: 8px 12px !important;
                margin-right: 8px !important;
                border-radius: 15px !important;
                font-size: 12px !important;
                white-space: nowrap !important;
            }
            #db-manager-modal .action-btn { min-width: auto !important; padding: 6px !important; font-size: 11px !important; }
            .search-box { width: 100% !important; margin-top: 10px !important; }
            #db-grid { font-size: 11px !important; display: block !important; overflow-x: auto !important; }
            #db-grid th, #db-grid td { min-width: 100px !important; }

            /* 필터 버튼 */
            .filter-buttons-wrapper { padding-bottom: 10px !important; margin-bottom: 15px !important; gap: 5px !important; }
            .filter-badge { padding: 4px 10px !important; font-size: 11px !important; }
        }
                        
                    /* 5. 모달 최적화 */    .modal-content { max-width: 100%; max-height: 70vh; }
/* =========================================
   [NEW] Swiper 갤러리 및 화살표 스타일
   ========================================= */
.modal-content-container {
    width: 100%; height: 100%;
    padding: 0; display: flex; align-items: center; justify-content: center;
}

/* Swiper 메인 컨테이너 */
.mySwiper {
    width: 100%; 
    height: 100%; /* 부모 높이(modal-content-container)를 꽉 채움 */
    margin: 0;
}

.modal-content-container {
    width: 100%;
    height: 100%;
    /* 상단 버튼(80px) + 하단 캡션(60px) 고려하여 패딩 설정 */
    padding: 80px 0 60px 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-slide {
    background: transparent;
    display: flex; justify-content: center; align-items: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* 이미지/비디오 스타일: 확대 방지 및 비율 유지 */
.photo-inner img, 
.photo-inner video {
    display: block;
    /* 화면을 넘지 않도록 제한 */
    max-width: 90vw; 
    max-height: 80vh; 
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5); /* 시각적 구분감 추가 */
}

/* [핵심] 화살표 디자인 개선 */
.swiper-button-prev, .swiper-button-next {
    color: rgba(255, 255, 255, 0.8) !important;
    width: 60px; height: 60px;
    transition: all 0.2s ease;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
    z-index: 5000 !important;
}

.swiper-button-prev:after { content: '❮' !important; font-family: Arial, sans-serif !important; font-size: 30px !important; }
.swiper-button-next:after { content: '❯' !important; font-family: Arial, sans-serif !important; font-size: 30px !important; }

.swiper-button-prev:hover, .swiper-button-next:hover {
    color: #ffffff !important;
    transform: scale(1.1);
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    /* 모바일에서는 여백 줄임 */
    .modal-content-container { padding: 50px 0 40px 0; }
    
    /* 모바일에서는 이미지를 좀 더 꽉 차게 */
    .photo-inner img, 
    .photo-inner video {
        max-width: 100vw;
        max-height: 85vh;
        box-shadow: none; /* 모바일은 그림자 제거 */
    }

    .swiper-button-prev:after, .swiper-button-next:after { font-size: 24px !important; }
    .swiper-button-prev { left: 5px !important; }
    .swiper-button-next { right: 5px !important; }
    
    .meta-info-box { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; border-radius: 12px 12px 0 0; }
    .modal-caption { bottom: 15px; font-size: 13px; width: 94%; left: 3%; }
}

/* 기존 수동 줌/드래그 커서 스타일 제거 */
#modal-img { cursor: default !important; }

/* =========================================
   [NEW] 리스트 뷰 (List View) 스타일 - 상세 정보형
   ========================================= */
.gallery.list-view {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gallery.list-view .photo-wrapper {
    aspect-ratio: auto;
    height: 72px; 
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    margin-bottom: 0;
    /* [수정] 양쪽 정렬(space-between)이 아닌 왼쪽 정렬(flex-start)로 변경하여 썸네일 왼쪽 고정 */
    justify-content: flex-start !important; 
}

/* [안전장치] thumb-box 밖으로 튀어나오거나 감싸지지 않은 이미지도 강제 고정 */
.gallery.list-view .photo-wrapper > img,
.gallery.list-view .photo-wrapper > video {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    margin-right: 20px !important;
    flex-shrink: 0 !important;
}

/* 썸네일 박스 스타일 */
.gallery.list-view .thumb-box {
    width: 50px !important; 
    height: 50px !important; 
    border-radius: 6px;
    margin-right: 20px; /* 텍스트와의 간격 */
    flex-shrink: 0; /* 절대 줄어들지 않음 */
    flex-grow: 0;   /* 절대 늘어나지 않음 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
    /* border 제거됨 */
}

/* 이미지 스타일 */
.gallery.list-view .thumb-box img, 
.gallery.list-view .thumb-box video {
    width: 100% !important; 
    height: 100% !important; 
    max-width: 100% !important; /* 안전장치 */
    max-height: 100% !important; /* 안전장치 */
    object-fit: cover;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* 동영상 아이콘 위치 보정 */
.gallery.list-view .play-icon {
    font-size: 16px;
    top: 50%; left: 50%; /* thumb-box 기준 중앙 */
    transform: translate(-50%, -50%);
    pointer-events: none;
    position: absolute;
}

/* 체크 아이콘 */
.gallery.list-view .check-icon {
    top: 50%; right: 15px;
    transform: translateY(-50%);
    font-size: 20px;
}

/* [핵심] 상세 정보 레이아웃 - 오른쪽 정렬 */
.item-info {
    display: none; 
    flex: 1;
    display: flex; 
    align-items: center;
    justify-content: flex-end; 
    gap: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    padding-right: 40px;
    margin-right: 10px;
    min-width: 0;
}

/* 그리드 뷰일 때는 강제로 숨김 */
.gallery:not(.list-view) .item-info {
    display: none !important;
}

/* 각 컬럼 스타일 */
.info-name { 
    font-weight: 700; 
    color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
    text-align: right; 
    margin-right: 0; 
    flex: 1; 
}
.info-uploader { text-align: right; color: var(--accent-color); min-width: 80px; }
.info-date-up { text-align: right; min-width: 100px; }
.info-date-cap { text-align: right; color: #e67e22; min-width: 100px; } 
.info-size { text-align: right; font-family: monospace; min-width: 60px; }

/* 모바일: 2단 레이아웃으로 상세 정보 표시 */
@media (max-width: 768px) {
    .gallery.list-view .photo-wrapper {
        height: auto;
        min-height: 65px;
        padding: 8px 10px;
        justify-content: flex-start !important; /* 모바일도 왼쪽 정렬 강제 */
    }

    /* 썸네일 크기 축소 */
    .gallery.list-view .thumb-box {
        width: 48px !important; 
        height: 48px !important;
        margin-right: 12px;
    }

    .gallery.list-view .thumb-box img, 
    .gallery.list-view .thumb-box video {
        width: 100% !important; 
        height: 100% !important;
    }

    .item-info {
        display: flex !important;
        flex-wrap: wrap;
        width: 100%;
        gap: 2px;
        margin-right: 0;
        padding-right: 30px;
        justify-content: flex-start; /* 모바일은 왼쪽 정렬 */
        align-items: flex-start;
    }
    
    .info-name {
        width: 100%;
        text-align: left; /* 모바일은 가독성을 위해 왼쪽 정렬 */
        font-size: 14px;
        margin-bottom: 1px;
        order: 1;
    }
    
    /* 모든 메타 정보 표시 */
    .info-uploader, .info-date-up, .info-date-cap, .info-size {
        display: inline-block !important;
        font-size: 11px;
        color: #888;
        order: 2;
        white-space: nowrap; 
        text-align: left; 
        min-width: auto;
    }
    
    .info-uploader::after { content: " | "; opacity: 0.3; margin: 0 2px; }
    .info-date-up::after { content: " | "; opacity: 0.3; margin: 0 2px; }
    .info-date-cap::after { content: " | "; opacity: 0.3; margin: 0 2px; }
}
/* [NEW] 메모 입력창 스타일 (모바일 대응)
   ========================================= */
#memo-list-area {
    background: var(--bg-secondary);
}

.memo-item {
    background: #fff3cd; /* Light mode yellow */
    padding: 15px; 
    border-radius: 10px; 
    margin-bottom: 15px; 
    position: relative; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: #333;
}

[data-theme="dark"] .memo-item {
    background: #3a3a3a;
    color: #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.memo-item-content {
    font-size: 14px; 
    line-height: 1.5; 
    word-break: break-all;
}

.memo-item-meta {
    font-size: 11px; 
    color: #999; 
    margin-top: 8px; 
    text-align: right;
}

[data-theme="dark"] .memo-item-meta {
    color: #888;
}

.memo-item-meta b {
    color: #555;
}

[data-theme="dark"] .memo-item-meta b {
    color: #bbb;
}

.memo-item-delete, .memo-item-edit {
    position: absolute; 
    top: 5px; 
    cursor: pointer; 
    color: #aaa; 
    font-size: 16px;
    transition: 0.2s;
}

.memo-item-delete {
    right: 8px; 
}

.memo-item-edit {
    right: 30px;
}

.memo-item-delete:hover {
    color: var(--danger-color);
}

.memo-item-edit:hover {
    color: var(--accent-color);
}

.memo-edit-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    resize: vertical;
}

.memo-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.memo-edit-btn {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.memo-edit-btn.save {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.memo-input-area {
    padding: 15px; 
    background: var(--bg-primary); 
    border-top: 1px solid var(--border-color); 
    border-radius: 0 0 16px 16px; 
    display: flex; 
    gap: 10px;
    align-items: center;
}

.memo-textarea {
    flex: 1; 
    height: 54px; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    padding: 12px; 
    resize: none; 
    font-family: inherit;
    font-size: 15px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-sizing: border-box; /* 패딩 포함 크기 계산 */
}
.memo-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.memo-btn {
    background: var(--accent-color); 
    color: white; 
    height: 54px; 
    width: 65px; 
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.memo-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.memo-btn:active { transform: translateY(1px); }

/* 모바일 전용 조정 */
@media (max-width: 768px) {
    .memo-input-area { 
        padding: 10px; 
        gap: 8px;
        background: var(--bg-secondary); /* 배경색 조금 더 명확하게 */
    }
    .memo-textarea {
        height: 48px;
        font-size: 14px;
        padding: 10px;
    }
    .memo-btn {
        height: 48px;
        width: 60px;
        font-size: 14px;
        border-radius: 6px;
    }
}

/* =========================================
   [New] 드래그 앤 드롭 업로드 오버레이
   ========================================= */
.drag-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(41, 128, 185, 0.9); /* var(--accent-color) with opacity */
    z-index: 9999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    pointer-events: none; /* 클릭 이벤트 통과 */
    border: 5px dashed rgba(255, 255, 255, 0.5);
    margin: 0;
    box-sizing: border-box;
}

.drag-overlay.active {
    display: flex;
}

.drag-overlay .icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1.5s infinite;
}

    .drag-overlay .text {
    font-size: 24px;
    font-weight: bold;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* =========================================
   [New] Progress Modal Cancel Button
   ========================================= */
#progress-cancel-btn {
    transition: all 0.2s;
}
#progress-cancel-btn:hover {
    background: #e0e0e0 !important;
    border-color: #bbb !important;
    transform: none !important;
    box-shadow: none !important;
}
#progress-cancel-btn:active {
    background: #d0d0d0 !important;
}

[data-theme="dark"] #progress-cancel-btn {
    background: #333 !important;
    color: #eee !important;
    border-color: #444 !important;
}
[data-theme="dark"] #progress-cancel-btn:hover {
    background: #444 !important;
}

/* 즐겨찾기 스타일 */
.photo-wrapper { position: relative; }
.fav-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    font-size: 13px;
    cursor: pointer;
    background: rgba(255,255,255,0.85);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: grayscale(1) opacity(0.6);
    line-height: 0;
    padding: 0;
    margin: 0;
    user-select: none;
    text-align: center;
}
.fav-icon:hover { transform: scale(1.2); filter: grayscale(0) opacity(1); }
.fav-icon.active { filter: grayscale(0) opacity(1); color: #e74c3c; background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

#favBtn { filter: grayscale(1); opacity: 0.6; transition: all 0.2s; }
#favBtn.active { filter: grayscale(0) !important; opacity: 1 !important; color: #e74c3c !important; }
.active-filter { background: #c0392b !important; box-shadow: inset 0 2px 5px rgba(0,0,0,0.2); }

[data-theme="dark"] .fav-icon { background: rgba(0,0,0,0.5); }
[data-theme="dark"] .fav-icon.active { background: #333; }

/* 특정 버튼 강조 색상 (공통) */
.btn-fav { background: #e74c3c; color: white; border: none; }
.btn-fav.active-filter { background: #c0392b !important; }
.btn-memo { background: #f39c12; color: white; border: none; }
.btn-mode { background: #34495e; color: white; border: none; }
.btn-blue { background: #3498db; color: white; border: none; }
.btn-dark { background: #2c3e50; color: white; border: none; }
.btn-primary-upload { background: #27ae60; color: white; border: none; }

.action-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* =========================================
   [NEW] 최상위 이동 버튼 (Back to Top)
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding-bottom: 4px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1500;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    border: none;
    outline: none;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    bottom: 40px;
}
.back-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-5px) scale(1.1);
}

/* =========================================
   [FINAL FIX] 모바일 더보기 메뉴 및 버튼 스타일
   ========================================= */

/* 1. PC 및 기본 상태: 모바일 요소 무조건 숨김 */
.mobile-more-btn, 
.mobile-more-menu {
    display: none !important;
}

/* 2. PC용 상단 버튼 스타일 (기본적으로 보임) */
.action-icon.pc-only-action {
    display: flex;
}

/* 3. 모바일 전용 (768px 이하) */
@media (max-width: 768px) {
    
    /* PC용 버튼 숨기기 (닫기 버튼 제외) */
    .action-icon.pc-only-action {
        display: none !important;
    }

    /* Back to Top 버튼 위치 조정 */
    .back-to-top {
        bottom: 20px;
        right: 30px;
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
    .back-to-top.show {
        bottom: 30px;
    }

    /* [수정] 모바일 더보기 버튼 (왼쪽 하단 오버레이) */
    .mobile-more-btn { display: none !important; } 

    .slide-more-btn {
        display: flex;
        position: absolute;
        bottom: 12px; /* 왼쪽 하단으로 이동 */
        left: 12px;
        top: auto;
        z-index: 1000;
        font-size: 20px;
        cursor: pointer;
        background: rgba(0, 0, 0, 0.4);
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: white;
        backdrop-filter: blur(4px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        user-select: none;
    }
    
    .slide-more-btn:active {
        transform: scale(0.95);
        background: rgba(0, 0, 0, 0.6);
    }

    /* PC에서는 숨김 제거 */

    /* [수정] 모바일 메뉴 (버튼 위 팝업 형태) */
    .mobile-more-menu {
        display: block !important;
        position: fixed;
        bottom: 60px; /* 버튼(32px) + 여백 위쪽 */
        left: 20px;   /* 버튼과 정렬 */
        width: 200px; /* 작게 */
        background: rgba(30, 30, 30, 0.95); /* 반투명 다크 배경 */
        border-radius: 12px;
        z-index: 9999;
        
        /* 애니메이션: 투명 -> 불투명, 아래 -> 위 */
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
        
        padding: 5px 0;
        box-shadow: 0 5px 20px rgba(0,0,0,0.6);
        color: #eee;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.1);
    }

    /* 활성화 시 표시 */
    .mobile-more-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-menu-item {
        padding: 12px 15px;
        font-size: 14px;
        font-weight: 500;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        color: #fff;
    }
    
    .mobile-menu-item:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-item:active {
        background: rgba(255,255,255,0.1);
    }

    .mobile-menu-item.delete {
        color: #ff5252;
    }

    /* 취소 버튼은 팝업 형태에선 불필요하므로 숨김 (배경 터치로 닫기 유도) */
    .mobile-menu-cancel {
        display: none;
    }
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        top: auto !important;
        width: 100%;
        background: #222;
        border-radius: 16px 16px 0 0;
        z-index: 9999; /* 최상위 레이어 */
        transform: translateY(105%); 
        transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        padding: 10px 0 40px 0;
        box-shadow: 0 -5px 30px rgba(0,0,0,0.5);
        color: #eee;
    }

    /* 활성화 시 위로 올라옴 */
    .mobile-more-menu.active {
        transform: translateY(0);
    }

    .mobile-menu-item {
        padding: 16px 20px;
        font-size: 16px;
        font-weight: 500;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        color: #fff;
    }
    
    /* 터치 피드백 */
    .mobile-menu-item:active {
        background: rgba(255,255,255,0.1);
    }

    .mobile-menu-item.delete {
        color: #ff5252;
    }

    .mobile-menu-cancel {
        padding: 16px 20px;
        font-size: 16px;
        font-weight: 700;
        text-align: center;
        margin-top: 5px;
        color: #aaa;
        cursor: pointer;
    }
    
    /* 캡션 위치 조정 (왼쪽 여백 제거) */
    .modal-caption {
        left: 0 !important;
        width: 100% !important;
        text-align: center !important; /* 다시 중앙 정렬 */
        bottom: 30px !important;
        font-size: 14px !important;
        padding: 0 10px;
    }
}/ *   [ N E W ]   ���|�  T���0�  T�t�  ����|�  ( a s s e t s / c s s / s t y l e . c s s   X����  �� �)   * /  
  
 / *   0����<�\�  ���|�  �ƌ���  (�@�  * /  
 . m o b i l e - m o r e - b t n ,   . m o b i l e - m o r e - m e n u   {  
         d i s p l a y :   n o n e ;  
 }  
  
 / *   ���|�  ȩ�  ( 7 6 8 p x   t�X�)   * /  
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   {  
         / *   P C ��  ���  ����  (�0�0�  ( �0�  ����  �x�)   * /  
         . a c t i o n - i c o n . p c - o n l y - a c t i o n   {  
                 d i s p l a y :   n o n e   ! i m p o r t a n t ;  
         }  
  
         / *   ���|�  T���0�  ����  ( |ƽ�  X��  ��)   * /  
         . m o b i l e - m o r e - b t n   {  
                 d i s p l a y :   f l e x ;  
                 p o s i t i o n :   a b s o l u t e ;  
                 b o t t o m :   2 0 p x ;  
                 l e f t :   2 0 p x ;  
                 z - i n d e x :   3 0 0 0 ;  
                 w i d t h :   4 4 p x ;  
                 h e i g h t :   4 4 p x ;  
                 b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 2 ) ;  
                 b o r d e r - r a d i u s :   5 0 % ;  
                 a l i g n - i t e m s :   c e n t e r ;  
                 j u s t i f y - c o n t e n t :   c e n t e r ;  
                 c o l o r :   w h i t e ;  
                 f o n t - s i z e :   2 4 p x ;  
                 b a c k d r o p - f i l t e r :   b l u r ( 4 p x ) ;  
                 c u r s o r :   p o i n t e r ;  
                 t r a n s i t i o n :   t r a n s f o r m   0 . 2 s ;  
         }  
         . m o b i l e - m o r e - b t n : a c t i v e   {  
                 t r a n s f o r m :   s c a l e ( 0 . 9 ) ;  
                 b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 4 ) ;  
         }  
  
         / *   ���|�  T���0�  T�t�  ( ܴm���  �¸�)   * /  
         . m o b i l e - m o r e - m e n u   {  
                 d i s p l a y :   b l o c k ;   / *   l�p��<�\�  tȬ�X��  t r a n s f o r m <�\�  (�@�  * /  
                 p o s i t i o n :   f i x e d ;  
                 b o t t o m :   0 ;  
                 l e f t :   0 ;  
                 w i d t h :   1 0 0 % ;  
                 b a c k g r o u n d :   # 1 e 1 e 1 e ;   / *   �l�  L�ȹ  0���  * /  
                 b o r d e r - r a d i u s :   1 6 p x   1 6 p x   0   0 ;  
                 z - i n d e x :   4 0 0 0 ;  
                 t r a n s f o r m :   t r a n s l a t e Y ( 1 0 0 % ) ;   / *   T�t�  DŘ�\�  (�@�  * /  
                 t r a n s i t i o n :   t r a n s f o r m   0 . 3 s   c u b i c - b e z i e r ( 0 . 1 6 5 ,   0 . 8 4 ,   0 . 4 4 ,   1 ) ;  
                 p a d d i n g :   1 0 p x   0   3 0 p x   0 ;   / *   X��  ��1�  U���  ( D�t���  H��  �  �$�)   * /  
                 b o x - s h a d o w :   0   - 5 p x   2 5 p x   r g b a ( 0 , 0 , 0 , 0 . 5 ) ;  
                 c o l o r :   w h i t e ;  
         }  
  
         . m o b i l e - m o r e - m e n u . a c t i v e   {  
                 t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ;   / *   �\�  ,�|�4�  * /  
         }  
  
         . m o b i l e - m e n u - i t e m   {  
                 p a d d i n g :   1 6 p x   2 0 p x ;  
                 f o n t - s i z e :   1 6 p x ;  
                 f o n t - w e i g h t :   5 0 0 ;  
                 b o r d e r - b o t t o m :   1 p x   s o l i d   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 ) ;  
                 d i s p l a y :   f l e x ;  
                 a l i g n - i t e m s :   c e n t e r ;  
                 g a p :   1 2 p x ;  
         }  
          
         . m o b i l e - m e n u - i t e m : a c t i v e   {  
                 b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 ) ;  
         }  
  
         . m o b i l e - m e n u - i t e m . d e l e t e   {  
                 c o l o r :   # f f 4 d 4 d ;   / *   ��Ȕ�  h����  * /  
         }  
  
         . m o b i l e - m e n u - c a n c e l   {  
                 p a d d i n g :   1 6 p x   2 0 p x ;  
                 f o n t - s i z e :   1 6 p x ;  
                 f o n t - w e i g h t :   7 0 0 ;  
                 t e x t - a l i g n :   c e n t e r ;  
                 m a r g i n - t o p :   5 p x ;  
                 c o l o r :   # a a a ;  
         }  
         . m o b i l e - m e n u - c a n c e l : a c t i v e   {  
                 c o l o r :   w h i t e ;  
         }  
          
         / *   ��X�  �X�  p��  ( T���0�  ������  ��X���  JŌ�)   * /  
         . m o d a l - c a p t i o n   {  
                 b o t t o m :   2 5 p x ;    
                 l e f t :   7 0 p x ;   / *   ����  �D�̹|�   �0�  * /  
                 w i d t h :   c a l c ( 1 0 0 %   -   8 0 p x ) ;   / *   �D�  p��  * /  
                 t e x t - a l i g n :   l e f t ;   / *   |ƽ�  �,�  * /  
                 f o n t - s i z e :   1 4 p x ;  
         }  
 }  
  
 / *   [ ����]   ���|�  T���0�  T�t�  �  ����  ����|�  ( ��  ȩ�)   * /  
  
 / *   0����<�\�  ���|�  �ƌ���  4�p�t�  (�@�  ( P C   T�t�  )���)   * /  
 . m o b i l e - m o r e - b t n ,   . m o b i l e - m o r e - m e n u   {  
         d i s p l a y :   n o n e   ! i m p o r t a n t ;  
 }  
  
 / *   ���|�  ȩ�  ( 7 6 8 p x   t�X�)   * /  
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   {  
         / *   1 .   P C ��  ���  ����  (�0�0�  ( �0�  ����  �x�)   * /  
         . a c t i o n - i c o n . p c - o n l y - a c t i o n   {  
                 d i s p l a y :   n o n e   ! i m p o r t a n t ;  
         }  
  
         / *   2 .   ���|�  T���0�  ����  ( |ƽ�  X��  ��)   * /  
         . m o b i l e - m o r e - b t n   {  
                 d i s p l a y :   f l e x   ! i m p o r t a n t ;  
                 p o s i t i o n :   f i x e d ;   / *   a b s o l u t e   - >   f i x e d \�  ����X���  T�t�  0� �  0�X�  * /  
                 b o t t o m :   3 0 p x ;         / *   X��  ��1�  * /  
                 l e f t :   2 0 p x ;             / *   |ƽ�  ��1�  * /  
                 z - i n d e x :   3 0 0 0 ;  
                 w i d t h :   4 4 p x ;  
                 h e i g h t :   4 4 p x ;  
                 b a c k g r o u n d :   r g b a ( 0 ,   0 ,   0 ,   0 . 5 ) ;   / *   0���  p��  T�  ��XՌ�  * /  
                 b o r d e r - r a d i u s :   5 0 % ;  
                 a l i g n - i t e m s :   c e n t e r ;  
                 j u s t i f y - c o n t e n t :   c e n t e r ;  
                 c o l o r :   w h i t e ;  
                 b a c k d r o p - f i l t e r :   b l u r ( 4 p x ) ;  
                 c u r s o r :   p o i n t e r ;  
                 t r a n s i t i o n :   t r a n s f o r m   0 . 2 s ;  
                 b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 2 ) ;  
         }  
          
         . m o b i l e - m o r e - b t n   s v g   {  
                 p o i n t e r - e v e n t s :   n o n e ;   / *   D�t�X�  tЭ�  ����  * /  
         }  
  
         . m o b i l e - m o r e - b t n : a c t i v e   {  
                 t r a n s f o r m :   s c a l e ( 0 . 9 5 ) ;  
                 b a c k g r o u n d :   r g b a ( 0 ,   0 ,   0 ,   0 . 7 ) ;  
         }  
  
         / *   3 .   ���|�  T���0�  T�t�  ( X��  �¸�)   * /  
         . m o b i l e - m o r e - m e n u   {  
                 d i s p l a y :   b l o c k   ! i m p o r t a n t ;  
                 p o s i t i o n :   f i x e d ;  
                 b o t t o m :   0 ;  
                 l e f t :   0 ;  
                 w i d t h :   1 0 0 % ;  
                 b a c k g r o u n d :   # 2 2 2 ;  
                 b o r d e r - r a d i u s :   1 6 p x   1 6 p x   0   0 ;  
                 z - i n d e x :   4 0 0 0 ;  
                 t r a n s f o r m :   t r a n s l a t e Y ( 1 0 5 % ) ;   / *   �ӌ��Ŕ�  T�t�  DŘ�\�  (�@�  * /  
                 t r a n s i t i o n :   t r a n s f o r m   0 . 3 s   c u b i c - b e z i e r ( 0 . 1 6 5 ,   0 . 8 4 ,   0 . 4 4 ,   1 ) ;  
                 p a d d i n g :   1 0 p x   0   4 0 p x   0 ;   / *   D�t���  H��  ���  U���  * /  
                 b o x - s h a d o w :   0   - 5 p x   3 0 p x   r g b a ( 0 , 0 , 0 , 0 . 5 ) ;  
                 c o l o r :   # e e e ;  
         }  
  
         . m o b i l e - m o r e - m e n u . a c t i v e   {  
                 t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ;   / *   \�1�T�  ��  �\�  ,�|�4�  * /  
         }  
  
         . m o b i l e - m e n u - i t e m   {  
                 p a d d i n g :   1 6 p x   2 0 p x ;  
                 f o n t - s i z e :   1 6 p x ;  
                 f o n t - w e i g h t :   5 0 0 ;  
                 b o r d e r - b o t t o m :   1 p x   s o l i d   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 ) ;  
                 d i s p l a y :   f l e x ;  
                 a l i g n - i t e m s :   c e n t e r ;  
                 g a p :   1 2 p x ;  
                 c u r s o r :   p o i n t e r ;  
         }  
          
         . m o b i l e - m e n u - i t e m : a c t i v e   {  
                 b a c k g r o u n d :   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 1 ) ;  
         }  
  
         . m o b i l e - m e n u - i t e m . d e l e t e   {  
                 c o l o r :   # f f 5 2 5 2 ;  
         }  
  
         . m o b i l e - m e n u - c a n c e l   {  
                 p a d d i n g :   1 6 p x   2 0 p x ;  
                 f o n t - s i z e :   1 6 p x ;  
                 f o n t - w e i g h t :   7 0 0 ;  
                 t e x t - a l i g n :   c e n t e r ;  
                 m a r g i n - t o p :   5 p x ;  
                 c o l o r :   # 8 8 8 ;  
                 c u r s o r :   p o i n t e r ;  
         }  
          
         / *   ��X�  �X�  p��  ( ������  ��X���  JŌ�  ��!�<�\�   �0�)   * /  
         . m o d a l - c a p t i o n   {  
                 l e f t :   8 0 p x   ! i m p o r t a n t ;  
                 w i d t h :   c a l c ( 1 0 0 %   -   9 0 p x )   ! i m p o r t a n t ;  
                 t e x t - a l i g n :   l e f t   ! i m p o r t a n t ;  
                 b o t t o m :   3 0 p x   ! i m p o r t a n t ;  
                 f o n t - s i z e :   1 4 p x   ! i m p o r t a n t ;  
         }  
 }  
 