/* Gallery Page Specific Styles - Food Items Version */

/* Remove filter section */
.food-categories {
    display: none;
}

/* Food Gallery Section */
.food-gallery-section {
    background-color: var(--secondary-color);
    padding: 3rem 0;
}

.food-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.food-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.food-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.food-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.food-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.food-item:hover .food-image img {
    transform: scale(1.1);
}

.food-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
    z-index: 2;
}

.food-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.food-info h3 {
    margin-bottom: 0.8rem;
    color: var(--dark-color);
    font-size: 1.3rem;
    line-height: 1.3;
}

.food-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

.view-details {
    display: none;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 10px;
}

.lightbox-close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-caption {
    position: absolute;
    bottom: -80px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
}

.lightbox-caption h3 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    color: white;
}

.lightbox-caption p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.lightbox-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

/* Visit CTA */
.visit-cta {
    background: linear-gradient(135deg, var(--primary-color), #c1121f);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.visit-cta h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.visit-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.visit-cta .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.visit-cta .cta-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.visit-cta .cta-buttons .btn i {
    margin-right: 0.5rem;
}

/* Animation for items */
.food-item {
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.food-item:nth-child(1) { animation-delay: 0.1s; }
.food-item:nth-child(2) { animation-delay: 0.2s; }
.food-item:nth-child(3) { animation-delay: 0.3s; }
.food-item:nth-child(4) { animation-delay: 0.4s; }
.food-item:nth-child(5) { animation-delay: 0.5s; }
.food-item:nth-child(6) { animation-delay: 0.6s; }
.food-item:nth-child(7) { animation-delay: 0.7s; }
.food-item:nth-child(8) { animation-delay: 0.8s; }
.food-item:nth-child(9) { animation-delay: 0.9s; }
.food-item:nth-child(10) { animation-delay: 1s; }

/* Responsive Styles for Food Gallery */
@media (max-width: 1200px) {
    .food-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .food-gallery-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1.2rem;
    }
    
    .food-image {
        height: 180px;
    }
    
    .food-info {
        padding: 1.2rem;
    }
    
    .food-info h3 {
        font-size: 1.2rem;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: -50px;
    }
    
    .lightbox-next {
        right: -50px;
    }
    
    .visit-cta h2 {
        font-size: 2rem;
    }
    
    .visit-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .visit-cta .cta-buttons .btn {
        width: 80%;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .food-gallery-grid {
       grid-template-columns: repeat(2, minmax(140px, 1fr)) !important;
        gap: 1rem;
    }
    
    .food-item {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .lightbox-modal {
        padding: 1rem;
    }
    
    .lightbox-nav {
        position: fixed;
        top: auto;
        bottom: 20px;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
    }
    
    .lightbox-caption {
        bottom: -100px;
        padding: 0.8rem;
    }
    
    .lightbox-caption h3 {
        font-size: 1.4rem;
    }
}