/* Lightbox Gallery Styles - Mi Pueblo Santa Rosa */

/* Lightbox Container */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

/* Lightbox Image */
.lightbox-image {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

/* Lightbox Caption Container */
.lightbox-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
}

/* Dish Name in Caption */
.lightbox-dish-name {
    color: #ffd700; /* Gold color */
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Dish Description in Caption */
.lightbox-dish-description {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin: 0;
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #ffd700;
    text-decoration: none;
    cursor: pointer;
}

/* Navigation Arrows */
.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.4s ease;
    border-radius: 0 5px 5px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    z-index: 10001;
}

.lightbox-next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.lightbox-prev {
    left: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(211, 47, 47, 0.9); /* Mi Pueblo red */
    color: #ffd700; /* Gold */
}

/* Responsive Design */
@media (max-width: 768px) {
    .lightbox-image {
        max-width: 95%;
        max-height: 70vh;
    }
    
    .lightbox-caption {
        bottom: 20px;
        width: 95%;
        padding: 15px;
    }
    
    .lightbox-dish-name {
        font-size: 22px;
    }
    
    .lightbox-dish-description {
        font-size: 16px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 15px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .lightbox-image {
        max-height: 60vh;
    }
    
    .lightbox-caption {
        bottom: 10px;
        padding: 10px;
    }
    
    .lightbox-dish-name {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .lightbox-dish-description {
        font-size: 14px;
    }
    
    .lightbox-close {
        font-size: 30px;
        top: 5px;
        right: 10px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 10px;
        font-size: 24px;
    }
}

/* Additional caption styles for .lightbox-title and .lightbox-description */
.lightbox-title {
    color: #ffd700 !important; /* Gold color */
    font-size: 28px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.lightbox-description {
    color: #ffffff !important;
    font-size: 18px !important;
    line-height: 1.6 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
    margin: 0 !important;
}

/* Ensure caption container is properly positioned */
.lightbox-caption {
    position: absolute !important;
    bottom: 40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 800px !important;
    text-align: center !important;
    padding: 20px !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
    border-radius: 8px !important;
    z-index: 10002 !important;
}
