/* Menu Modal Styles */
.menu-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    animation: fadeIn 0.5s;
}

.menu-content {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.menu-content h2 {
    color: var(--gold);
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(to right, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.menu-gallery {
    column-count: 3;
    column-gap: 20px;
    padding: 10px;
}

.menu-gallery img {
    width: 100%;
    margin-bottom: 20px;
    break-inside: avoid;
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    position: relative;

    /* Initial animation state */
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: imageSlideIn 0.6s ease-out forwards;
}

/* Staggered animation delays for each image */
.menu-gallery img:nth-child(1) {
    animation-delay: 0.1s;
}

.menu-gallery img:nth-child(2) {
    animation-delay: 0.2s;
}

.menu-gallery img:nth-child(3) {
    animation-delay: 0.3s;
}

.menu-gallery img:nth-child(4) {
    animation-delay: 0.4s;
}

.menu-gallery img:nth-child(5) {
    animation-delay: 0.5s;
}

.menu-gallery img:nth-child(6) {
    animation-delay: 0.6s;
}

.menu-gallery img:nth-child(7) {
    animation-delay: 0.7s;
}

.menu-gallery img:nth-child(8) {
    animation-delay: 0.8s;
}

.menu-gallery img:nth-child(9) {
    animation-delay: 0.9s;
}

.menu-gallery img:nth-child(10) {
    animation-delay: 1s;
}

.menu-gallery img:nth-child(11) {
    animation-delay: 1.1s;
}

.menu-gallery img:hover {
    transform: scale(1.05) translateY(-8px) rotate(1deg);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.4),
        0 0 30px rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    z-index: 10;
}

/* Keyframe for image entrance animation */
@keyframes imageSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 900px) {
    .menu-gallery {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .menu-gallery {
        column-count: 1;
    }
}

.close-menu {
    position: fixed;
    top: 30px;
    right: 30px;
    color: var(--gold);
    font-size: 50px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2100;
    line-height: 1;
}

.close-menu:hover {
    color: var(--gold-light);
    transform: scale(1.1) rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .menu-content {
        width: 95%;
        padding: 10px;
        margin: 20px auto;
    }

    .close-menu {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}

/* ============================================ */
/* Lightbox Styles */
/* ============================================ */

#lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.5);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--gold);
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 3100;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.lightbox-close:hover {
    color: var(--gold-light);
    transform: scale(1.2) rotate(90deg);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 1.2rem;
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    max-width: 80%;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    border: 2px solid var(--gold);
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 20px;
        padding: 10px 15px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-caption {
        font-size: 1rem;
        bottom: 20px;
        padding: 8px 15px;
    }
}