:root {
    --mcd-red: black;
    --mcd-yellow: #ffbc0d;
    --bg-white: #ffffff;
}

body {
    background-color: var(--bg-white);
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden; /* Prevent body scroll */
}

/* Container for the scrollable area */
.scroll-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow-y: scroll;
    scrollbar-width: none; /* Hide standard scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide standard scrollbar for IE/Edge */
    scroll-behavior: smooth;
}

/* Hide standard scrollbar for Chrome/Safari */
.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Custom Scrollbar Track */
.custom-scrollbar-track {
    position: fixed;
    top: 20px;
    right: 12px;
    bottom: 20px;
    width: 8px; /* Slightly wider base for better hit-box */
    background: rgba(0,0,0,0.03);
    border-radius: 30px;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1), background 0.3s;
    z-index: 100;
}

/* Custom Scrollbar Thumb (The Handle) */
.custom-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #1a1a1a;
    border-radius: 30px;
    cursor: pointer;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1), background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

/* The Grab Icon */
.thumb-icon {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s, transform 0.3s;
    pointer-events: none;
    color: white;
}

/* State-based expansion logic.
   We use a single class on the container to drive the visual state.
*/
.scroll-container.scrollbar-active + .custom-scrollbar-track {
    width: 56px;
    background: rgba(0,0,0,0.08);
}

.scroll-container.scrollbar-active + .custom-scrollbar-track .custom-scrollbar-thumb {
    background-color: var(--mcd-red);
}

.scroll-container.scrollbar-active + .custom-scrollbar-track .thumb-icon {
    opacity: 1;
    transform: scale(1);
}

/* Content wrapper (replaces Tailwind: max-w-4xl mx-auto p-8 pt-16 pb-40) */
.content-wrapper {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
    padding-top: 4rem;
    padding-bottom: 10rem;
}

header {
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.025em;
    margin: 0;
}

header h1.mb-2 {
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1rem;
    line-height: 1.75rem;
    color: #6b7280;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}


.image-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-wrapper {
    aspect-ratio: 1/1;
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.4s ease;
}

.image-wrapper img.loaded {
    opacity: 1;
}

footer {
    margin-top: 90px;
    text-align: center;
}

footer a {
    color: #6b7280;
    text-decoration: underline;
}

footer a:hover {
    color: #1f2937;
}