/* =============================================
   LIGHTBOX / GALLERY MODAL STYLES
   ============================================= */

.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    overflow: auto;
}

.lightbox-content {
    display: block;
    margin: auto;
    max-width: 85vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px 8px 0 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
}

.lightbox-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    margin-top: 35vh;
    text-align: center;
    width: 85vw;
    max-width: 85vw;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.85));
    padding: 15px 20px;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
}

.lightbox-dish-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 5px;
}

.lightbox-dish-description {
    font-size: 1.05rem;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.4;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-lightbox:hover {
    color: #ffd700;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    transition: background 0.3s ease;
    border-radius: 4px;
    user-select: none;
    z-index: 10001;
    text-decoration: none;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 60vh;
    }
    
    .lightbox-caption {
        width: 95vw;
        max-width: 95vw;
        padding: 10px 15px;
    }
    
    .lightbox-dish-name {
        font-size: 1.2rem;
    }
    
    .lightbox-dish-description {
        font-size: 0.9rem;
    }
    
    .prev, .next {
        font-size: 1.5rem;
        padding: 12px;
    }
}
