/* --- Global & Background --- */
body {
    margin: 0;
    height: 100vh;
    width: 100vw;
    background: url('lain.png') no-repeat center center fixed;
    background-size: cover;
    background-color: #000;
    color: #00ffff;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden; /* Stops the main page from scrolling */
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* --- Container Fix (500x500 Square) --- */
.container {
    background-color: rgba(0, 0, 0, 0.85);
    width: 500px;
    height: 500px;
    margin-top: 5vh;
    border: 2px solid #00ffff;
    padding: 30px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 20px #00ffff, inset 0 0 10px #00ffff;
    position: relative;
}

h1 { font-size: 1.8rem; letter-spacing: 6px; text-shadow: 0 0 10px #00ffff; }
.status { color: #ff00ff; font-size: 0.7rem; margin-bottom: 20px; }

/* --- Pictures Section --- */
.gallery {
    width: 100%;
    margin-top: 20px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

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

/* --- THE FIX: The Modal (Lightbox) --- */
/* This MUST be fixed position to break out of the 500px box */
.modal {
    display: none; 
    position: fixed; /* Takes it out of the container flow */
    z-index: 9999;   /* Sits on top of everything */
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    /* Set a large size relative to the SCREEN, not the box */
    width: auto;
    height: auto;
    max-width: 80vw; 
    max-height: 80vh;
    border: 2px solid #00ffff;
    box-shadow: 0 0 30px #00ffff;
    transition: transform 0.3s ease-in-out;
    cursor: zoom-in;
}

/* The Zoom state */
.modal-content.zoomed {
    transform: scale(1.3);
    cursor: zoom-out;
}