/* Gallery Modal Styles for Tex-Mex Joe's */

/* Modal Container */
#galleryModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

#galleryModal .modal-content-wrapper {
    position: relative;
    margin: auto;
    padding: 20px;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Modal Image */
#galleryModal #modalImage {
    max-width: 90vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Modal Caption */
#galleryModal .modal-caption {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
    max-width: 90vw;
    border-radius: 8px;
    margin-top: 20px;
}

#galleryModal .modal-caption h3 {
    color: #FFD700;
    font-size: 2rem;
    margin: 0 0 10px 0;
    font-weight: bold;
}

#galleryModal .modal-caption p {
    color: white;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

/* Close Button */
#galleryModal .modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    background: rgba(211, 47, 47, 0.8);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    border: none;
    line-height: 1;
}

#galleryModal .modal-close:hover {
    background: rgba(211, 47, 47, 1);
    transform: rotate(90deg) scale(1.1);
}

/* Navigation Buttons */
#galleryModal .modal-prev,
#galleryModal .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(211, 47, 47, 0.8);
    border: none;
    color: white;
    font-size: 2.5rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-weight: bold;
    z-index: 10001;
}

#galleryModal .modal-prev:hover,
#galleryModal .modal-next:hover {
    background: rgba(211, 47, 47, 1);
    transform: translateY(-50%) scale(1.1);
}

#galleryModal .modal-prev {
    left: 20px;
}

#galleryModal .modal-next {
    right: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #galleryModal .modal-caption h3 {
        font-size: 1.5rem;
    }
    
    #galleryModal .modal-caption p {
        font-size: 1rem;
    }
    
    #galleryModal .modal-prev,
    #galleryModal .modal-next {
        font-size: 2rem;
        padding: 10px 15px;
    }
    
    #galleryModal .modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    #galleryModal #modalImage {
        max-height: 60vh;
    }
    
    #galleryModal .modal-caption {
        padding: 15px;
    }
    
    #galleryModal .modal-caption h3 {
        font-size: 1.3rem;
    }
    
    #galleryModal .modal-caption p {
        font-size: 0.9rem;
    }
    
    #galleryModal .modal-prev,
    #galleryModal .modal-next {
        font-size: 1.5rem;
        padding: 8px 12px;
    }
}
