/* ============================================
   Middle Feast Restaurant - Gallery Styles
   ============================================ */

.gallery-section {
    padding: var(--spacing-2xl) var(--spacing-md);
    background-color: transparent;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    animation: galleryReveal 0.55s ease-out forwards;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-item--active {
    transform: scale(1.04);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28), 0 0 0 2px rgba(255, 165, 0, 0.55);
}

.gallery-item--active .gallery-item__overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.38);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-base);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
    font-size: 1.5rem;
}

.gallery-item__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    min-width: 32px;
    height: 32px;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.68);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-empty {
    text-align: center;
    color: var(--color-light-gray);
    font-size: 1.05rem;
    padding: var(--spacing-xl);
}

@keyframes galleryReveal {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* GLightbox Customization */
.glightbox {
    background-color: transparent;
}

.glightbox-container {
    background-color: rgba(0, 0, 0, 0.95);
}

.glightbox-slide img {
    max-width: 90vw;
    max-height: 90vh;
}

.glightbox-close {
    background-color: var(--color-gold);
    color: var(--color-black);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.glightbox-close:hover {
    background-color: var(--color-white);
}

.glightbox-prev,
.glightbox-next {
    background-color: rgba(255, 165, 0, 0.8);
    color: var(--color-black);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.glightbox-prev:hover,
.glightbox-next:hover {
    background-color: var(--color-gold);
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .gallery-item__icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
