* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4f6ef7;
    --primary-hover: #3b5ce6;
    --secondary-color: #6c757d;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --sidebar-width: 240px;
    --topbar-height: 60px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.logo h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-menu {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.nav-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary-color);
    color: white;
}

.nav-icon {
    font-size: 18px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.storage-info {
    font-size: 12px;
}

.storage-label {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.storage-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.storage-used {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s;
}

.storage-text {
    color: var(--text-muted);
    font-size: 11px;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-bar {
    height: var(--topbar-height);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
}

.breadcrumb-item {
    color: var(--text-secondary);
    cursor: pointer;
}

.breadcrumb-item:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    cursor: default;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    position: relative;
    width: 240px;
}

.search-box input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: var(--primary-color);
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-small {
    padding: 5px 12px;
    font-size: 12px;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-toggle {
    display: flex;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 2px;
}

.view-btn {
    width: 32px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.view-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.sort-select select {
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    background: white;
    outline: none;
    cursor: pointer;
}

.image-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.category-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.category-item {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.category-item:hover {
    background: var(--bg-tertiary);
}

.category-item.active {
    background: var(--primary-color);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.gallery-grid.list-view {
    grid-template-columns: 1fr;
    gap: 8px;
}

.image-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.image-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.image-card.selected {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.image-card .checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.9);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.image-card.selected .checkbox {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    display: flex;
}

.batch-mode .image-card .checkbox {
    display: flex;
}

.image-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--bg-secondary);
}

.list-view .image-card {
    display: flex;
    align-items: center;
    padding: 8px;
    gap: 12px;
}

.list-view .image-thumb {
    width: 60px;
    height: 60px;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
}

.image-info {
    padding: 10px 12px;
}

.list-view .image-info {
    padding: 0;
    flex: 1;
}

.image-name {
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.image-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
}

.image-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
    gap: 4px;
    z-index: 2;
}

.image-card:hover .image-actions {
    display: flex;
}

.action-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.action-btn:hover {
    background: rgba(0,0,0,0.8);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.empty-desc {
    font-size: 13px;
}

.upload-container {
    max-width: 800px;
    margin: 0 auto;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-primary);
    margin-bottom: 24px;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-color);
    background: #f0f3ff;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upload-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.upload-hint {
    font-size: 13px;
    color: var(--text-muted);
}

.upload-settings {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.upload-settings h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.setting-group {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.setting-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-bottom: 10px;
    cursor: pointer;
}

.setting-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 24px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.setting-sub label {
    min-width: 80px;
}

.setting-sub input[type="range"] {
    flex: 1;
    max-width: 200px;
}

.setting-sub input[type="number"],
.setting-group select,
.setting-sub input[type="text"] {
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
}

.setting-sub input[type="color"] {
    width: 40px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 2px;
}

.watermark-row {
    display: flex;
    gap: 20px;
    margin-left: 24px;
    margin-bottom: 10px;
}

.watermark-col {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.watermark-col label {
    min-width: 60px;
}

.watermark-col select,
.watermark-col input[type="number"] {
    flex: 1;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    outline: none;
}

.upload-queue {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

.upload-queue h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.queue-list {
    margin-bottom: 16px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    background: var(--bg-secondary);
}

.queue-item .queue-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.queue-item .queue-info {
    flex: 1;
    min-width: 0;
}

.queue-item .queue-name {
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.queue-item .queue-status {
    font-size: 11px;
    color: var(--text-muted);
}

.queue-item .queue-progress {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.queue-item .queue-progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s;
}

.queue-item.success .queue-progress-bar {
    background: var(--success-color);
}

.queue-item.error .queue-progress-bar {
    background: var(--danger-color);
}

.queue-item .queue-remove {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.queue-item .queue-remove:hover {
    background: rgba(0,0,0,0.1);
    color: var(--danger-color);
}

.queue-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.settings-container {
    max-width: 700px;
    margin: 0 auto;
}

.settings-container h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.settings-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.settings-section h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.setting-item {
    margin-bottom: 16px;
}

.setting-item label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.setting-item input[type="text"],
.setting-item input[type="password"],
.setting-item select {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.setting-item input:focus,
.setting-item select:focus {
    border-color: var(--primary-color);
}

.setting-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.setting-hint a {
    color: var(--primary-color);
    text-decoration: none;
}

.test-result {
    margin-left: 12px;
    font-size: 13px;
}

.test-result.success {
    color: var(--success-color);
}

.test-result.error {
    color: var(--danger-color);
}

.history-container {
    max-width: 900px;
    margin: 0 auto;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.history-list {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background: var(--bg-secondary);
}

.history-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.history-info {
    flex: 1;
    min-width: 0;
}

.history-name {
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.history-actions {
    display: flex;
    gap: 8px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

.modal-small {
    width: 400px;
    padding: 24px;
}

.modal-small h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.modal-small input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    margin-bottom: 20px;
}

.modal-small input:focus {
    border-color: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-image {
    display: flex;
    width: 900px;
    max-width: 95vw;
    height: 600px;
    max-height: 90vh;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(0,0,0,0.7);
}

.image-preview-container {
    flex: 1;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-info-panel {
    width: 280px;
    padding: 20px;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.info-section {
    margin-bottom: 16px;
}

.info-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-value {
    font-size: 13px;
    font-weight: 500;
    word-break: break-all;
}

.link-input-group {
    display: flex;
    gap: 8px;
}

.link-input-group input {
    flex: 1;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    outline: none;
    background: var(--bg-secondary);
}

.info-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background: var(--text-primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 13px;
    z-index: 2000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--danger-color);
}

.toast.warning {
    background: var(--warning-color);
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    color: white;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
}

.about-container {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.about-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}

.about-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.about-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.about-card h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.about-card ul {
    list-style: none;
    padding: 0;
}

.about-card li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.about-card li:last-child {
    border-bottom: none;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.author-detail {
    flex: 1;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.author-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    padding: 6px 12px;
    background: rgba(79, 110, 247, 0.1);
    border-radius: var(--radius-sm);
    width: fit-content;
    transition: all 0.2s;
}

.author-link:hover {
    background: rgba(79, 110, 247, 0.2);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .logo h1,
    .nav-item span:not(.nav-icon),
    .sidebar-footer {
        display: none;
    }
    
    .logo {
        justify-content: center;
        padding: 16px 10px;
    }
    
    .nav-item {
        justify-content: center;
    }
    
    .search-box {
        width: 140px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .modal-image {
        flex-direction: column;
        width: 95vw;
        height: auto;
        max-height: 95vh;
    }
    
    .image-preview-container {
        height: 300px;
    }
    
    .image-info-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .about-container {
        padding: 20px;
    }
    
    .about-header h1 {
        font-size: 22px;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .author-links {
        align-items: center;
    }
}
