.food-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 32, 34, 0.45);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.food-gallery[style*="display: flex"] {
    opacity: 1;
}

.gallery-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    background: linear-gradient(180deg, #fef7e0 0%, #fff 8rem);
    border: 1px solid rgba(30, 32, 34, 0.08);
    border-radius: 1.25rem;
    box-shadow:
        0 16px 40px rgba(30, 32, 34, 0.16),
        0 2px 8px rgba(30, 32, 34, 0.06);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

.food-gallery[style*="display: flex"] .gallery-content {
    transform: scale(1);
}

.gallery-image {
    width: 100%;
    height: 75%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.gallery-info {
    padding: 15px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    height: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.food-gallery[style*="display: flex"] .gallery-info {
    opacity: 1;
    transform: translateY(0);
}

.gallery-title {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
}

.gallery-category {
    position: absolute;
    top: 32px;
    left: 5px;
    right: 5px;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.gallery-category .badge {
    font-size: 0.9rem;
    padding: 0.35em 0.8em;
    background-color: rgba(0, 0, 0, 0.8) !important;
}

.gallery-days {
    position: absolute;
    top: 32px;
    left: 5px;
    right: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 2;
    justify-content: center;
}

.gallery-days .badge {
    font-size: 0.9rem;
    padding: 0.35em 0.8em;
}

.gallery-price {
    font-size: 1.5rem;
    font-weight: 500;
    color: #dc3545;
    margin: 0;
}

.gallery-currency {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    margin-right: 5px;
}

.gallery-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: #1e2022;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.2s ease-in-out;
    line-height: 0;
    padding: 0;
    box-shadow: 0 2px 8px rgba(30, 32, 34, 0.1);
}

.gallery-close:hover {
    background: #fff;
    color: #1e2022;
}

.gallery-close i {
    display: block;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 0;
    width: 1em;
    height: 1em;
}

.gallery-close i::before {
    display: block;
    line-height: 1;
    width: 1em;
    height: 1em;
    vertical-align: 0;
}

.gallery-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20%;
    border: none;
    background: transparent;
    color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.gallery-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to var(--gradient-direction), rgba(0, 0, 0, 0.25), transparent);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: -1;
}

@media (hover: hover) {
    .gallery-nav:hover::before {
        opacity: 1;
    }
}

.gallery-prev {
    right: 0;
    --gradient-direction: left;
}

.gallery-next {
    left: 0;
    --gradient-direction: right;
}

.gallery-nav i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

.gallery-nav:hover i {
    opacity: 1;
}

.gallery-badges {
    position: absolute;
    top: 32px;
    left: 5px;
    right: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 2;
    justify-content: center;
}

.gallery-badges .badge {
    font-size: 0.9rem;
    padding: 0.35em 0.65em;
}

.gallery-badges .badge.bg-dark {
    background-color: rgba(0, 0, 0, 0.8) !important;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .gallery-content {
        width: 95%;
        height: 85vh;
        margin: 2.5vh auto;
    }

    .gallery-image {
        height: 70%;
    }

    .gallery-info {
        height: 30%;
        padding: 10px;
    }

    .gallery-title {
        font-size: 1.5rem;
        font-weight: 500;
    }

    .gallery-price {
        font-size: 1.5rem;
        font-weight: 500;
    }

    .gallery-currency {
        font-size: 1rem;
        font-weight: 500;
    }

    .gallery-nav {
        width: 25%;
        font-size: 24px;
    }

    .gallery-close {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

/* Touch-friendly styles */
@media (hover: none) {
    .gallery-nav {
        width: 25%;
        font-size: 24px;
    }

    .gallery-close {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}