body {
    /* Replace 'lain.png' with the actual path to your file */
    background-image: url('/media/images/lain.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* This keeps it from scrolling with the content */
    
    /* Fallback color if the image fails to load */
    background-color: #0a0a0f; 
    
    overflow: hidden;
    color: #00ffff;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    padding: 20px;
    margin: 0;
    min-height: 100vh;
}

.container {
    background-color: rgba(10, 10, 15, 0.7); 
    
    /* Make it a square */
    width: 500px; 
    height: 500px; 
    aspect-ratio: 1 / 1; /* Forces square proportions */
    
    /* Position it high and center */
    margin-top: 5vh; 
    
    border: 1px solid #00ffff;
    padding: 25px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    
    /* Center the internal content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Keeps content at the top of the square */
    
    /* Important if you have many images */
    overflow: hidden; 
}


h1, h2 {
    text-align: center;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.status {
    text-align: center;
    color: #ff00ff; /* Purple accent like your terminal lambda */
    font-size: 0.8rem;
    margin-bottom: 40px;
}

.download-btn {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 15px;
    text-align: center;
    border: 1px solid #00ffff;
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s;
}

.download-btn:hover {
    background-color: #00ffff;
    color: #0a0a0f;
    box-shadow: 0 0 20px #00ffff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.grid img {
    width: 100%;
    border: 1px solid #333;
    filter: grayscale(50%);
    transition: 0.3s;
}

.grid img:hover {
    filter: grayscale(0%);
    border-color: #00ffff;
}

/* ... keep your previous CSS here ... */

.gallery-img {
    width: 100%;
    cursor: pointer;
    border: 1px solid #333;
    transition: 0.3s;
}

.gallery-img:hover {
    border-color: #00ffff;
    box-shadow: 0 0 10px #00ffff;
}

/* The Modal (Background) */
.modal {
    display: none; 
    position: fixed;
    z-index: 9999; /* Higher than everything else */
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

/* The Image in the Center */
.modal-content {
    max-width: 80%;
    max-height: 80%;
    /* Use 'all' to ensure transform and width/height transitions work */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: zoom-in;
    border: 1px solid #00ffff;
    object-fit: contain;
}

/* The Zoomed State - We use scale AND remove constraints */
.modal-content.zoomed {
    max-width: 95%; /* Allow it to take more space */
    max-height: 95%;
    transform: scale(1.5); /* This makes it 50% larger than its current size */
    cursor: zoom-out;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}