/**
 * Lightbox Styles
 * Professionele galerij popup voor kunstwerken
 */

/* ============================================
   LIGHTBOX CONTAINER
   ============================================ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.lightbox.open {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* ============================================
   CLOSE BUTTON
   ============================================ */

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   CONTENT LAYOUT
   ============================================ */

.lightbox-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    grid-template-rows: 1fr auto;
    gap: 24px;
    max-width: 1400px;
    max-height: 90vh;
    width: 100%;
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.lightbox-gallery {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 0;
}

.gallery-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.gallery-nav svg {
    width: 24px;
    height: 24px;
}

.gallery-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.gallery-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.15s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-body);
}

/* ============================================
   THUMBNAILS
   ============================================ */

.gallery-thumbnails {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 12px 0;
}

.thumbnail {
    width: 60px;
    height: 60px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
    background: transparent;
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail.active {
    border-color: var(--color-accent, #C9A962);
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   INFO PANEL
   ============================================ */

.lightbox-info {
    grid-column: 2;
    grid-row: 1 / 3;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    overflow-y: auto;
    color: white;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.info-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent, #C9A962);
    padding: 4px 12px;
    background: rgba(201, 169, 98, 0.15);
    border-radius: 4px;
}

.info-status {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
}

.info-status.sold {
    background: #ef4444;
    color: white;
}

.info-status.available {
    background: #22c55e;
    color: white;
}

.info-status.not-for-sale {
    background: #6b7280;
    color: white;
}

.info-title {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
    color: white;
}

.info-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

/* ============================================
   DETAILS GRID
   ============================================ */

.info-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

.detail-value {
    font-size: 0.95rem;
    color: white;
}

.detail-item.price .detail-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent, #C9A962);
}

/* ============================================
   CONTACT BUTTON
   ============================================ */

.info-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--color-accent, #C9A962);
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.info-contact-btn:hover {
    background: #d4b872;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 169, 98, 0.3);
}

.info-contact-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .lightbox-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        max-height: none;
        height: 100%;
        overflow-y: auto;
    }
    
    .lightbox-gallery {
        grid-column: 1;
        grid-row: 1;
    }
    
    .gallery-thumbnails {
        grid-column: 1;
        grid-row: 2;
    }
    
    .lightbox-info {
        grid-column: 1;
        grid-row: 3;
        max-height: none;
    }
    
    .gallery-image {
        max-height: 50vh;
    }
}

@media (max-width: 640px) {
    .lightbox-container {
        padding: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-close svg {
        width: 20px;
        height: 20px;
    }
    
    .gallery-nav {
        width: 36px;
        height: 36px;
    }
    
    .gallery-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .gallery-image {
        max-height: 40vh;
    }
    
    .lightbox-info {
        padding: 20px;
    }
    
    .info-title {
        font-size: 1.5rem;
    }
    
    .info-details {
        grid-template-columns: 1fr;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
}

