/* ==================== CSS Variables ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-muted: #86868b;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --accent-light: #e8f4fd;
    --danger: #ff3b30;
    --danger-light: #fff0ef;
    --success: #34c759;
    --warning: #ff9500;
    --border: #d2d2d7;
    --border-light: #e8e8ed;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-xl: 0 8px 32px rgba(0,0,0,0.12);
    --transition: all 0.2s ease;
}

/* Dark Theme */
[data-theme="dark"] {
    color-scheme: dark;
    --bg: #1a1a1c;
    --surface: #2c2c2e;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #86868b;
    --accent: #2997ff;
    --accent-hover: #0a84ff;
    --accent-light: rgba(41,151,255,0.15);
    --danger: #ff453a;
    --danger-light: rgba(255,69,58,0.15);
    --success: #30d158;
    --warning: #ff9f0a;
    --border: #3a3a3c;
    --border-light: #38383a;
    --shadow: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-xl: 0 8px 32px rgba(0,0,0,0.4);
}
[data-theme="dark"] .header {
    background: rgba(44,44,46,0.72);
    border-bottom-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .search-box {
    background: var(--bg);
    color: var(--text);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23a1a1a6' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
}
[data-theme="dark"] .detail-image-wrap { background: #000; }
[data-theme="dark"] .modal { box-shadow: 0 24px 80px rgba(0,0,0,0.6); }
[data-theme="dark"] .card-badge { background: rgba(0,0,0,0.7); }
[data-theme="dark"] .form-input {
    background: var(--bg);
    color: var(--text);
    border-color: var(--border);
}
[data-theme="dark"] .lightbox { background: rgba(0,0,0,0.92); }
[data-theme="dark"] .lightbox-info { background: rgba(28,28,30,0.95); }
[data-theme="dark"] .lightbox-thumbs { background: rgba(28,28,30,0.8); }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ==================== Header ==================== */
.header {
    background: rgba(255,255,255,0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
    padding: 0 32px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-icon {
    width: 28px; height: 28px;
    background: var(--accent);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; font-weight: 700;
}
.search-box {
    background: var(--bg);
    border: 1px solid var(--border-light);
    padding: 8px 14px 8px 34px;
    border-radius: 8px;
    width: 260px;
    font-size: 13px;
    outline: none;
    transition: var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2386868b' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
}
.search-box:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,227,0.15); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.btn {
    padding: 7px 16px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn-outline:hover { background: var(--bg); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 14px; }
.btn-icon { width: 32px; height: 32px; padding: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border-light); color: var(--text-secondary); cursor: pointer; }
.btn-icon:hover { background: var(--bg); }
.theme-toggle { font-size: 16px; line-height: 1; }

/* ==================== Layout ==================== */
.layout { min-height: calc(100vh - 52px); }

/* Content */
.content { padding: 20px 32px; max-width: 1600px; margin: 0 auto; }
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.content-title { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.content-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ==================== Upload Zone ==================== */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    margin-bottom: 20px;
    background: var(--surface);
}
.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--accent);
    background: var(--accent-light);
}
.upload-zone-icon { font-size: 36px; margin-bottom: 8px; }
.upload-zone-title { font-size: 15px; font-weight: 500; }
.upload-zone-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Upload Progress */
.upload-progress { margin-bottom: 20px; }
.upload-item {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}
.upload-item-name { font-size: 13px; font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item-size { font-size: 11px; color: var(--text-muted); }
.upload-item-status { font-size: 11px; font-weight: 500; }
.upload-item-status.uploading { color: var(--accent); }
.upload-item-status.success { color: var(--success); }
.upload-item-status.error { color: var(--danger); }
.progress-bar { width: 120px; height: 4px; background: var(--border-light); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.3s; }

/* ==================== Waterfall Grid (方案1+5 融合) ==================== */
.grid {
    columns: 4 260px;
    column-gap: 14px;
    padding: 0;
}
.card {
    break-inside: avoid;
    margin-bottom: 14px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    position: relative;
    background: var(--surface);
}
/* 方案5 悬浮效果 */
.card .card-img-wrap {
    position: relative;
    overflow: hidden;
}
.card-img {
    width: 100%;
    display: block;
    background: var(--bg);
    transition: transform 0.5s cubic-bezier(.25,.1,.25,1);
}
.card:hover .card-img {
    transform: scale(1.08);
}
.card-img-placeholder {
    width: 100%; height: 180px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg);
    color: var(--text-muted); font-size: 24px;
}
/* 悬浮浮层 (方案5) */
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    pointer-events: none;
}
.card:hover .card-overlay {
    background: rgba(0,0,0,0.4);
}
.card-overlay-info {
    transform: translateY(16px);
    opacity: 0;
    transition: all 0.3s ease 0.05s;
}
.card:hover .card-overlay-info {
    transform: translateY(0);
    opacity: 1;
}
.card-overlay-info .overlay-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-overlay-info .overlay-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin-top: 3px;
    display: flex;
    gap: 12px;
}

/* 右上角格式徽章 */
.card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    z-index: 2;
}
/* 左下角尺寸徽章 */
.card-dim-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card:hover .card-dim-badge {
    opacity: 1;
}
.card-select {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    display: none;
    align-items: center; justify-content: center;
    font-size: 12px; color: #fff;
    z-index: 2;
}
.card:hover .card-select { display: flex; }
.card-select.selected { background: var(--accent); border-color: var(--accent); display: flex; }

/* 底部信息栏 */
.card-body { padding: 10px 14px; }
.card-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
}
.card-tags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.tag {
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ==================== Lightbox (方案3 走马灯) ==================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    flex-direction: column;
}
.lightbox.active { display: flex; }
.lightbox-header {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
}
.lightbox-close {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-counter {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}
.lightbox-actions {
    display: flex;
    gap: 8px;
}
.lightbox-actions button {
    padding: 6px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}
.lightbox-actions button:hover { background: rgba(255,255,255,0.18); }

.lightbox-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 0;
}
.lightbox-main img {
    max-width: 90%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    border-radius: 6px;
    transition: opacity 0.35s ease;
    user-select: none;
}
.lightbox-main img.fade { opacity: 0; }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

/* 灯箱底部信息栏 */
.lightbox-info {
    padding: 8px 24px 4px;
    text-align: center;
    flex-shrink: 0;
    background: rgba(0,0,0,0.5);
}
.lightbox-info-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lightbox-info-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* 缩略图条 */
.lightbox-thumbs {
    display: flex;
    gap: 6px;
    padding: 10px 20px 14px;
    overflow-x: auto;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(0,0,0,0.5);
}
.lightbox-thumbs::-webkit-scrollbar { height: 4px; }
.lightbox-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
.lightbox-thumb {
    width: 64px; height: 44px;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.35;
    transition: all 0.2s;
    flex-shrink: 0;
    border: 2px solid transparent;
}
.lightbox-thumb.active { opacity: 1; border-color: var(--accent); }
.lightbox-thumb:hover { opacity: 0.75; }

/* ==================== Detail Modal ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--surface);
    border-radius: 18px;
    width: 800px;
    max-width: 92vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}
.modal-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
}
.modal-title { font-size: 16px; font-weight: 600; }
.modal-close {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { background: var(--border-light); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }

/* Image Detail */
.detail-layout { display: flex; gap: 24px; }
.detail-image-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: var(--radius);
    overflow: hidden;
    max-height: 400px;
}
.detail-image-wrap img { max-width: 100%; max-height: 400px; object-fit: contain; }
.detail-info { width: 260px; flex-shrink: 0; }
.detail-section { margin-bottom: 16px; }
.detail-section-title { font-size: 11px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.5px; margin-bottom: 8px; font-weight: 600; }
.detail-row { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; }
.detail-row .label { color: var(--text-muted); }
.detail-row .value { color: var(--text); font-weight: 500; text-align: right; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.detail-tag {
    background: var(--accent-light);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}
.detail-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* Download Panel */
.download-panel {
    margin-top: 16px;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 14px;
    border: 1px solid var(--border-light);
}
.download-panel-title {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
}
.download-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.download-option-group {
    margin-bottom: 10px;
}
.download-option-group:last-child {
    margin-bottom: 0;
}
.download-option-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.download-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.download-chip {
    padding: 5px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.download-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}
.download-chip.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.download-chip-icon {
    font-size: 10px;
}
.download-custom {
    margin-top: 10px;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.download-custom input[type="number"] {
    width: 72px;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    outline: none;
    background: var(--surface);
    color: var(--text);
    transition: var(--transition);
}
.download-custom input[type="number"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0,113,227,0.12);
}
.download-custom-sep {
    color: var(--text-muted);
    font-size: 12px;
}
.download-go-btn {
    padding: 5px 14px;
    border-radius: 14px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.download-go-btn:hover {
    background: var(--accent-hover);
}
.download-go-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== Tag/Album Create Modal ==================== */
.form-group { margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 500; margin-bottom: 6px; display: block; }
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,227,0.15); }
.form-textarea { resize: vertical; min-height: 80px; font-family: inherit; }

/* ==================== Toast ==================== */
.toast-container { position: fixed; top: 64px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
    background: var(--surface);
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: var(--shadow-xl);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.3s ease;
    min-width: 260px;
    border-left: 3px solid var(--accent);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ==================== Empty State ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state-text { font-size: 15px; font-weight: 500; margin-bottom: 4px; color: var(--text-secondary); }
.empty-state-hint { font-size: 13px; }

/* ==================== Pagination ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 24px;
    padding-bottom: 24px;
}
.page-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-info { font-size: 12px; color: var(--text-muted); margin: 0 12px; }

/* ==================== Loading ==================== */
.loading { display: flex; align-items: center; justify-content: center; padding: 40px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border-light); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== Responsive ==================== */
@media (max-width: 1200px) {
    .grid { columns: 3 220px; }
}
@media (max-width: 1024px) {
    .grid { columns: 2 200px; }
    .detail-layout { flex-direction: column; }
    .detail-info { width: 100%; }
}
@media (max-width: 768px) {
    .header { padding: 0 16px; }
    .content { padding: 16px; }
    .grid { columns: 2 150px; column-gap: 10px; }
    .card { margin-bottom: 10px; }
    .search-box { width: 160px; }
    .modal { max-width: 96vw; }
    .lightbox-thumbs { padding: 8px 12px; }
    .lightbox-thumb { width: 48px; height: 34px; }
}
@media (max-width: 480px) {
    .grid { columns: 1; }
}
