/* ============================================================================
   LIGHTBOX IMAGE ENLARGEMENT STYLES
   Aviation Art Collection - Image Viewer Modal
   ============================================================================ */

/* Overlay - Full screen dark background */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Main Container */
.lightbox-container {
    display: flex;
    max-width: 95vw;
    max-height: 90vh;
    gap: 30px;
    position: relative;
    padding: 20px;
}

/* Image Section - Left Side (70%) */
.lightbox-image-section {
    flex: 0 0 68%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

.lightbox-overlay.active #lightbox-image {
    opacity: 1;
    transform: scale(1);
}

/* Loading Indicator */
.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
}

.lightbox-loading.visible {
    opacity: 1;
}

/* Details Panel - Right Side (30%) */
.lightbox-details {
    flex: 0 0 30%;
    background: white;
    padding: 30px;
    border-radius: 12px;
    overflow-y: auto;
    max-height: 85vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateX(30px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.lightbox-overlay.active .lightbox-details {
    transform: translateX(0);
    opacity: 1;
}

/* Custom Scrollbar for Details */
.lightbox-details::-webkit-scrollbar {
    width: 8px;
}

.lightbox-details::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.lightbox-details::-webkit-scrollbar-thumb {
    background: #c8a882;
    border-radius: 4px;
}

.lightbox-details::-webkit-scrollbar-thumb:hover {
    background: #b39572;
}

/* Item ID Badge */
.lightbox-item-id {
    display: inline-block;
    background: linear-gradient(135deg, #c8a882 0%, #b39572 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

/* Title */
.lightbox-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px;
    line-height: 1.3;
}

/* Subtitle */
.lightbox-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-style: italic;
    margin: 0 0 15px;
    line-height: 1.4;
}

/* Collection Badge */
.lightbox-collection {
    display: inline-block;
    background: #ecf0f1;
    color: #34495e;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Description */
.lightbox-description {
    font-size: 1rem;
    color: #2c3e50;
    line-height: 1.7;
    margin: 20px 0;
    text-align: justify;
}

/* Price */
.lightbox-price {
    display: inline-block;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Price upon inquiry - text style */
.lightbox-price.inquiry-text {
    background: none;
    color: #7f8c8d;
    padding: 8px 0;
    font-size: 1rem;
    font-weight: 600;
    font-style: italic;
    box-shadow: none;
    border-left: 3px solid #c8a882;
    padding-left: 12px;
}

/* Action Buttons */
.lightbox-actions {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #ecf0f1;
}

.lightbox-inquiry-btn {
    width: 100%;
    background: linear-gradient(135deg, #c8a882 0%, #b39572 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(200, 168, 130, 0.3);
    position: relative;
}

.lightbox-inquiry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 168, 130, 0.4);
    background: linear-gradient(135deg, #b39572 0%, #a68665 100%);
}

.lightbox-inquiry-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(200, 168, 130, 0.3);
}

.lightbox-inquiry-btn.in-inquiry {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    cursor: pointer;
}

.lightbox-inquiry-btn.in-inquiry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9 0%, #2574a9 100%);
}

.lightbox-inquiry-btn svg {
    flex-shrink: 0;
}

/* Inquiry Count Badge */
.inquiry-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 6px;
    min-width: 24px;
    height: 20px;
}

/* Close Button */
.lightbox-close {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

/* Navigation Buttons */
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-nav svg {
    width: 28px;
    height: 28px;
}

/* Counter Display */
.lightbox-counter {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    z-index: 10001;
}

/* Image Clickable Cursor */
.gallery-item .item-image {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item .item-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tablet Adjustments */
@media (max-width: 1024px) {
    .lightbox-container {
        flex-direction: column;
        max-width: 90vw;
        max-height: 90vh;
        gap: 20px;
    }

    .lightbox-image-section {
        flex: 0 0 60%;
    }

    .lightbox-details {
        flex: 0 0 35%;
        max-height: 35vh;
        padding: 20px;
    }

    .lightbox-title {
        font-size: 1.5rem;
    }

    .lightbox-description {
        font-size: 0.95rem;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

/* Mobile - Completely Disable Lightbox */
@media (max-width: 768px) {
    /* Force hide lightbox overlay on mobile/tablet */
    .lightbox-overlay,
    #image-lightbox {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Remove clickable cursor and hover effects on mobile */
    .gallery-item .item-image-wrapper,
    .gallery-item .item-image {
        cursor: default !important;
        pointer-events: auto !important;
    }

    .gallery-item .item-image:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    /* Hide all lightbox UI elements on mobile */
    .lightbox-close,
    .lightbox-nav,
    .lightbox-counter,
    .lightbox-container,
    .lightbox-details,
    .lightbox-image-section {
        display: none !important;
    }
}

/* Small Desktop Adjustments */
@media (min-width: 769px) and (max-width: 1200px) {
    .lightbox-container {
        gap: 20px;
    }

    .lightbox-details {
        padding: 25px;
    }

    .lightbox-title {
        font-size: 1.6rem;
    }
}

/* Large Desktop Enhancements */
@media (min-width: 1920px) {
    .lightbox-container {
        max-width: 90vw;
        gap: 40px;
    }

    .lightbox-details {
        padding: 40px;
    }

    .lightbox-title {
        font-size: 2rem;
    }

    .lightbox-description {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    .lightbox-overlay {
        display: none !important;
    }
}

/* Accessibility - Focus States */
.lightbox-close:focus,
.lightbox-nav:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .lightbox-overlay,
    #lightbox-image,
    .lightbox-details,
    .lightbox-close,
    .lightbox-nav {
        transition: none;
        animation: none;
    }
}
