/* ========================================
   LIGHTBOX - Clean Professional Design
   ======================================== */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    background: #fff;
    border-radius: 16px;
    max-width: 1400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    color: #6b7280;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.lightbox-close:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: rotate(90deg);
}

/* Header */
.lightbox-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.lightbox-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem;
    padding-right: 3rem;
}

.lightbox-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.meta-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Body */
.lightbox-body {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    padding: 2rem;
}

/* Image Section */
.lightbox-image-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lightbox-main-image {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lightbox-image-container {
    flex: 1;
    background: #f9fafb;
    border-radius: 12px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.lightbox-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1e3a5f;
    border: 2px solid #1e3a5f;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.lightbox-nav:hover {
    background: #152d47;
    border-color: #152d47;
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(30, 58, 95, 0.5);
}

.lightbox-nav:active {
    transform: scale(0.95);
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

/* Thumbnails */
.lightbox-thumbnails {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 12px;
}

.lightbox-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    opacity: 0.6;
}

.lightbox-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Info Section */
.lightbox-info-section {
    display: flex;
    flex-direction: column;
}

.info-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    flex-shrink: 0;
    margin-right: 1rem;
}

.info-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1f2937;
    text-align: right;
}

/* Responsive */
@media (max-width: 1024px) {
    .lightbox-body {
        grid-template-columns: 1fr;
    }

    .lightbox-info-section {
        order: -1;
    }
}

@media (max-width: 768px) {
    .lightbox-overlay {
        padding: 1rem;
    }

    .lightbox-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .lightbox-header h2 {
        font-size: 1.5rem;
    }

    .lightbox-body {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }

    .lightbox-image-container {
        min-height: 300px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-thumb {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 640px) {
    .lightbox-main-image {
        gap: 0.5rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-nav svg {
        width: 20px;
        height: 20px;
    }

    .info-row {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    .info-value {
        text-align: left;
    }
}

/* Only hide nav buttons on very small screens */
@media (max-width: 480px) {
    .lightbox-nav {
        width: 36px;
        height: 36px;
    }

    .lightbox-nav svg {
        width: 18px;
        height: 18px;
    }
}