/* ============================================
   Artwork Gallery Modal Styles
   Lightbox for viewing all artwork images
   ============================================ */

.artwork-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 29, 46, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    max-width: 1400px;
    width: 100%;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Close button */
.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--primary-gold);
    color: var(--dark-navy);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    background: var(--light-gold);
    transform: rotate(90deg);
}

/* Image counter */
.image-counter {
    position: absolute;
    top: -50px;
    left: 0;
    background: rgba(201, 169, 97, 0.9);
    color: var(--dark-navy);
    padding: 10px 20px;
    border-radius: 25px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Main image container */
.modal-image-container {
    position: relative;
    width: 100%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    animation: imageZoomIn 0.4s ease;
}

@keyframes imageZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navigation buttons */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(201, 169, 97, 0.9);
    color: var(--dark-navy);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-nav-btn:hover {
    background: var(--primary-gold);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Image information */
.modal-info {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 30px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--dark-navy);
    margin-bottom: 10px;
}

.modal-caption {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.6;
    margin: 0;
}

/* Thumbnails */
.thumbnail-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary-gold);
    opacity: 1;
}

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

/* Clickable artwork images indicator */
.artwork-image {
    position: relative;
    cursor: pointer;
}

.artwork-image::after {
    content: '🔍 Click to view all images';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(201, 169, 97, 0.9);
    color: var(--dark-navy);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.artwork-image:hover::after {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        max-height: 100vh;
    }
    
    .modal-image-container {
        max-height: 50vh;
    }
    
    .modal-image {
        max-height: 50vh;
    }
    
    .modal-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .image-counter {
        top: 10px;
        left: 10px;
        font-size: 0.85rem;
        padding: 8px 15px;
    }
    
    .modal-info {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.4rem;
    }
    
    .modal-caption {
        font-size: 0.9rem;
    }
    
    .thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .artwork-image::after {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}
