/* ===== DESIGN TOKENS ===== */
:root {
    --bg-base: #ffffff;
    --bg-surface: #f8f8f8;
    --bg-dark: #111111;
    --border-color: #000000;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;

    --text-primary: #000000;
    --text-secondary: #000000;
    --text-muted: #666666;

    --accent-primary: #000000;
    --accent-hover: #333333;
    --accent-gradient: #000000;
    --danger: #000000;
    --success: #000000;

    --star-empty: #dcdcdc;
    --star-filled: #000000;
    --star-hover: #333333;

    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-xl: 0px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background: var(--bg-surface);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

/* ===== UTILS ===== */
.card {
    background: var(--bg-base);
    border: 1px solid #ccc;
    border-radius: 0;
    box-shadow: none;
}

/* ===== LOGIN PAGE ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.login-card {
    width: 100%;
    max-width: 420px;
    max-width: 420px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: none;
    border: 1px solid #000;
    border-radius: 0;
}

.logo-area {
    margin-bottom: 2rem;
}

.logo-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
    color: #000;
}

.login-card h1 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--font);
}

.input-group input:focus {
    border-color: black;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: #000;
    color: white;
    border: 1px solid #000;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.dashboard-link {
    display: block;
    margin-top: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.dashboard-link:hover {
    color: var(--accent-primary);
}

/* ===== APP LAYOUT ===== */
.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-base);
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    z-index: 50;
}

.logo {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.logo-mark {
    color: #000;
    font-size: 1.25rem;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.folder-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.progress-badge {
    font-size: 0.7rem;
    color: var(--text-primary);
    background: var(--bg-surface);
    padding: 2px 8px;
    border-radius: 0;
    margin-top: 2px;
    border: 1px solid black;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-badge {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-surface);
    padding: 4px 12px;
    border-radius: 0;
    border: 1px solid black;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sm:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* ===== MAIN CONTENT: 60/40 SPLIT ===== */
.app-content {
    display: grid;
    grid-template-columns: 6fr 4fr;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* ===== LEFT: PHOTO COLUMN ===== */
.photo-column {
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
    overflow: hidden;
}

/* ===== COMPARISON SLIDER ===== */
.comparison-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.comparison-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-wrapper.dragging-slider {
    cursor: ew-resize;
}

.comparison-wrapper.panning {
    cursor: grabbing;
}

.comp-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.comp-before-clip {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.comp-before-clip .comp-before {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.comp-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    z-index: 10;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: white;
    box-shadow: none;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: white;
    backdrop-filter: none;
    border: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: background 0.15s;
}

.slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(34, 139, 230, 1);
}

.comp-label {
    position: absolute;
    top: 16px;
    padding: 5px 14px;
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
    pointer-events: none;
}

.comp-label-before {
    left: 16px;
    background: black;
    color: white;
    border: 1px solid white;
}

.comp-label-after {
    right: 16px;
    background: white;
    color: black;
    border: 1px solid black;
}

.zoom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    padding: 8px;
    background: white;
    border: 1px solid black;
    backdrop-filter: none;
}

.zoom-btn {
    width: 32px;
    height: 32px;
    border-radius: 0;
    border: 1px solid black;
    background: white;
    color: black;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.zoom-btn:hover {
    background: #eee;
    color: black;
    border-color: black;
}

.zoom-level {
    color: black;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.photo-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 8px 16px;
    padding: 8px 16px;
    background: white;
    border: 1px solid black;
    backdrop-filter: none;
    flex-shrink: 0;
    margin-top: 8px;
}

.photo-counter {
    font-size: 0.8rem;
    color: black;
    font-variant-numeric: tabular-nums;
}

.photo-nav-btn {
    background: white;
    border: 1px solid black;
    padding: 4px 12px;
    border-radius: 0;
    cursor: pointer;
    color: black;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.photo-nav-btn:hover:not(:disabled) {
    background: #eee;
}

.photo-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ===== RIGHT: RATING COLUMN ===== */
.rating-column {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    overflow: hidden;
}

.rating-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Scrollbar styling */
.rating-scroll::-webkit-scrollbar {
    width: 6px;
}

.rating-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.rating-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

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

/* ===== RATING CATEGORIES ===== */
.rating-category {
    padding: 1.25rem;
}

.rating-category h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cat-photorealistic h3 {
    border-color: black;
    color: black;
}

.cat-quality h3 {
    border-color: black;
    color: black;
}

.cat-wow h3 {
    border-color: black;
    color: black;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    padding: 0.2rem 0;
}

.rating-item:last-child {
    margin-bottom: 0;
}

.rating-item-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Stars */
.stars {
    display: flex;
    gap: 2px;
    direction: rtl;
}

.stars input {
    display: none;
}

.stars label {
    font-size: 1.35rem;
    color: var(--star-empty);
    cursor: pointer;
    line-height: 1;
    transition: color 0.1s, transform 0.1s;
}

.stars label:hover,
.stars label:hover~label,
.stars input:checked~label {
    color: var(--star-filled);
}

.stars label:hover,
.stars label:hover~label {
    color: var(--star-hover);
}

.stars label:hover {
    transform: scale(1.15);
}

/* Like toggle */
.like-toggle {
    display: flex;
    gap: 0.5rem;
}

.like-btn {
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s;
}

.like-btn:hover {
    border-color: var(--text-secondary);
}

.like-btn.active-like {
    background: black;
    border-color: black;
    color: white;
    font-weight: 600;
}

.like-btn.active-dislike {
    background: white;
    border-color: black;
    color: black;
    font-weight: 600;
    text-decoration: line-through;
}

/* ===== NAVIGATION (bottom of rating column) ===== */
.nav-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--bg-base);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
    gap: 0.75rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: var(--font);
}

.nav-btn.prev:hover:not(:disabled) {
    background: var(--bg-surface);
}

.nav-btn.next {
    background: #000;
    color: white;
    border-color: #000;
}

.nav-btn.next:hover {
    opacity: 0.9;
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.progress-bar-container {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.progress-bar-bg {
    height: 5px;
    background: var(--bg-surface);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 3px;
    border: 1px solid var(--border-color);
}

.progress-bar-fill {
    height: 100%;
    background: #000;
    transition: width 0.3s;
}

.progress-text {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ===== DASHBOARD ===== */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    text-align: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.table-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
}

.dash-table th {
    text-align: left;
    padding: 1rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.dash-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.dash-table tr:last-child td {
    border-bottom: none;
}

.dash-table tr:hover td {
    background: var(--bg-surface);
}

.avg-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
}

.avg-badge.high {
    background: black;
    color: white;
    border: 1px solid black;
}

.avg-badge.medium {
    background: white;
    color: black;
    border: 1px solid black;
}

.avg-badge.low {
    background: white;
    color: #999;
    border: 1px solid #999;
    text-decoration: line-through;
}

.expand-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.expand-btn.expanded {
    transform: rotate(180deg);
}

.user-detail-row td {
    background: #f8f9fa;
    padding-left: 3rem;
    font-size: 0.85rem;
    color: #868e96;
}

.user-detail-row.hidden {
    display: none;
}

.btn-export {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-export:hover {
    background: var(--bg-surface);
    border-color: var(--text-muted);
}

/* ===== UTILITIES ===== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-surface);
    border-top-color: var(--accent-primary);
    border-radius: 0;
    animation: spin 0.8s linear infinite;
}

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

.complete-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.complete-card {
    text-align: center;
    padding: 3rem;
    max-width: 420px;
}

.complete-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: black;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: #333;
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    z-index: 1000;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .app-content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }

    .photo-column {
        max-height: 50vh;
    }

    .rating-column {
        max-height: 50vh;
    }

    .rating-scroll {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .app-header {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .header-center {
        display: none;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== RATING CRITERIA GUIDE MODAL ===== */
.guide-btn {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 32px;
    text-align: center;
}

.guide-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.guide-modal {
    background: white;
    border: 2px solid black;
    width: 100%;
    max-width: 780px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.guide-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid black;
    flex-shrink: 0;
}

.guide-modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.guide-close-btn {
    background: none;
    border: 1px solid black;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.guide-close-btn:hover {
    background: #f0f0f0;
}

.guide-modal-body {
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.guide-modal-body::-webkit-scrollbar {
    width: 6px;
}

.guide-modal-body::-webkit-scrollbar-thumb {
    background: #ccc;
}

.guide-section {
    border: 1px solid #ddd;
    padding: 1.25rem;
}

.guide-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid black;
}

.guide-desc {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1rem;
    margin-top: 0.25rem;
}

.guide-criterion {
    margin-bottom: 0.75rem;
}

.guide-criterion:last-child {
    margin-bottom: 0;
}

.guide-criterion h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
}

.guide-scale {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.guide-score {
    padding: 0.6rem 0.75rem;
    border: 1px solid #ddd;
}

.guide-score p {
    font-size: 0.78rem;
    line-height: 1.45;
    color: #444;
    margin: 0;
}

.guide-score-label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.guide-bad {
    background: #fafafa;
    border-left: 3px solid #999;
}

.guide-bad .guide-score-label {
    color: #888;
}

.guide-good {
    background: #f7f7f7;
    border-left: 3px solid #000;
}

.guide-good .guide-score-label {
    color: #000;
}

/* Examples/Guide Tabs */
.examples-tabs {
    display: flex;
    border-bottom: 2px solid black;
    flex-shrink: 0;
}

.example-tab {
    flex: 1;
    padding: 10px 16px;
    background: #f8f8f8;
    border: none;
    border-right: 1px solid #ddd;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    transition: all 0.15s;
    font-family: var(--font);
}

.example-tab:last-child {
    border-right: none;
}

.example-tab:hover {
    background: #eee;
}

.example-tab.active {
    background: white;
    color: black;
    border-bottom: 3px solid black;
    margin-bottom: -2px;
}

@media (max-width: 600px) {
    .guide-modal {
        max-height: 95vh;
    }

    .guide-scale {
        grid-template-columns: 1fr;
    }

    .guide-modal-overlay {
        padding: 0.5rem;
    }

    .examples-tabs {
        flex-wrap: wrap;
    }

    .example-tab {
        font-size: 0.75rem;
        padding: 8px 10px;
    }
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2.5rem;
    width: 52px;
    height: 80px;
    cursor: pointer;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lightbox-arrow:disabled {
    opacity: 0.2;
    cursor: default;
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    max-height: 90vh;
    width: 100%;
    gap: 0;
}

.lightbox-img-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 0;
}

.lightbox-img-wrap img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.lightbox-info {
    width: 100%;
    background: white;
    padding: 20px 24px;
    max-height: 30vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .lightbox-arrow {
        width: 40px;
        height: 60px;
        font-size: 2rem;
    }

    .lightbox-prev {
        left: 4px;
    }

    .lightbox-next {
        right: 4px;
    }

    .lightbox-img-wrap img {
        max-height: 50vh;
    }
}