/* Entertainment Wanted Studios - Photo Lightbox */
.ew-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.ew-lightbox.open {
    display: flex;
    animation: lightbox-fade 0.2s ease-in;
}

@keyframes lightbox-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ew-lightbox-image {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transition: transform 0.2s ease;
    cursor: zoom-out;
}

.ew-lightbox-image:hover {
    transform: scale(1.02);
}

.ew-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

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

.ew-lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.ew-lightbox-instructions {
    position: absolute;
    top: 20px;
    left: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Prevent page scroll when lightbox is open */
body.ew-no-scroll {
    overflow: hidden;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .ew-lightbox-image {
        max-width: 98vw;
        max-height: 85vh;
    }
    
    .ew-lightbox-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .ew-lightbox-caption {
        padding: 1.5rem 1rem 1rem;
        font-size: 1rem;
    }
    
    .ew-lightbox-instructions {
        display: none; /* Hide instructions on mobile */
    }
}