.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.overlay.active {
    visibility: visible;
    opacity: 1;
}

.overlay-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 1rem 1.25rem;
    position: relative;
    width: 100%;
}

.overlay-header .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 0 1.25rem;
    gap: 2rem;
}

.overlay-logo {
    justify-self: start;
    min-width: 0;
    max-width: 200px;
    height: auto;
}

.overlay-logo a {
    display: block;
}

.overlay-logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.overlay-logo .site-title {
    margin: 0;
}

.overlay-logo .site-title a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
}

.overlay-close {
    grid-column: 3;
    justify-self: end;
    min-width: 0;
    text-align: right;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: opacity 0.3s ease;
}

.overlay-close:hover {
    opacity: 0.7;
}

/* Responsive Header */
@media screen and (max-width: 48rem) {
    .overlay-header .container {
        padding: 0 0.9375rem;
    }
}

.overlay-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.nav-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    opacity: 0;
    cursor: pointer;
    transform: translateX(-100px);
}

.overlay.active .nav-links a {
    animation: fadeInFromLeft 1.5s ease forwards;
}

.nav-links a:nth-child(1) { animation-delay: 0.3s; }
.nav-links a:nth-child(2) { animation-delay: 0.6s; }
.nav-links a:nth-child(3) { animation-delay: 0.9s; }
.nav-links a:nth-child(4) { animation-delay: 1.2s; }
.nav-links a:nth-child(5) { animation-delay: 1.5s; }

@keyframes fadeInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-links:hover a {
    opacity: 0.6;
}

.nav-links a:hover {
    opacity: 1;
}

.overlay-excerpt {
    text-align: center;
    padding: 0 2rem;
    min-height: 2rem;
    margin-top: 0;
}

.excerpt-text {
    color: #fff;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.excerpt-text.visible {
    opacity: 1;
}

/* Artist Navigation in Overlay */
.artist-links {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.artist-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-100px);
}

.overlay.active .artist-links a {
    animation: fadeInFromTop 1.5s ease forwards;
}

.artist-links a:nth-child(1) { animation-delay: 0.3s; }
.artist-links a:nth-child(2) { animation-delay: 0.6s; }
.artist-links a:nth-child(3) { animation-delay: 0.9s; }
.artist-links a:nth-child(4) { animation-delay: 0.9s; }
.artist-links a:nth-child(5) { animation-delay: 0.9s; }

@keyframes fadeInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.artist-links a:hover {
    opacity: 0.7;
}

.artist-links .back-to-main {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    opacity: 0;
    transform: translateY(-100px);
}

.overlay.active .artist-links .back-to-main {
    animation: fadeInFromTop 1.5s ease forwards;
    animation-delay: 0.5s;
}

.artist-links .back-arrow {
    width: 32px;
    height: 32px;
}

/* Menu Images Styles */
.menu-images-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.menu-image {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.menu-image.visible {
    opacity: 1;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
} 