/* --- The Standard 500x500 Layout --- */
body {
    margin: 0;
    height: 100vh;
    background: url('lain.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #000;
}

.container {
    width: 500px;
    height: 500px;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #00ffff;
    padding: 20px;
    box-shadow: 0 0 15px #00ffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

/* --- THE FULLSCREEN EXPAND (Modal) --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Fixes it to the SCREEN, not the box */
    z-index: 1000;   /* Sits on top of everything */
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9); /* Dim the background */
    backdrop-filter: blur(8px);
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically */
}

.modal-content {
    max-width: 80vw;  /* 80% of screen width */
    max-height: 80vh; /* 80% of screen height */
    border: 2px solid #00ffff;
    box-shadow: 0 0 30px #00ffff;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

/* Optional extra zoom when clicking the big image */
.modal-content.zoomed {
    transform: scale(1.3);
    cursor: zoom-out;
}