/* Center the gallery and set the dark theme */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    /* Black background */
    background-color: #000000; 
    /* Your specific cream color for text */
    color: rgb(255, 255, 202);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gallery-container {
    width: 90vw;
    max-width: 720px;
    aspect-ratio: 1 / 1;
    position: relative;
    cursor: pointer;
    user-select: none;
    touch-action: pan-y;
    
    /* Champagne Gold Border */
    border: 3px solid rgb(255, 230, 150); 
    border-radius: 16px;
    
    background-color: #111; /* Placeholder while images load */
    overflow: hidden;
    
    /* Champagne Gold Glow - soft and warm */
    box-shadow: 0 0 30px rgba(255, 230, 150, 0.15); 
    
    transition: transform 0.1s ease;
}

/* Subtle "push" effect when tapping */
.gallery-container:active {
    transform: scale(0.98);
}

#display-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Smooth transition duration matches script.js */
    transition: opacity 0.15s ease-in-out;
}

.instruction {
    margin-top: 24px;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: rgb(255, 255, 202);
}

.counter {
    margin-top: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
    color: rgb(255, 255, 202);
}

/* Footer Styles */
.gallery-footer {
    margin-top: 50px;
    padding-bottom: 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 230, 150, 0.2);
    width: 90vw;
    max-width: 720px;
}

.credits {
    margin-top: 20px;
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.4;
}

.credits strong {
    color: rgb(255, 230, 150); /* Champagne Gold */
}

.footer-nav {
    margin-top: 15px;
}

.footer-nav a {
    color: rgb(255, 230, 150);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.footer-nav a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.sep {
    margin: 0 10px;
    opacity: 0.3;
}

