* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #111;
}


/* LOGIN */

.login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.login-box {
    width: 100%;
    max-width: 360px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.login-box h1 {
    margin: 0 0 10px;
    font-size: 26px;
}

.login-box p {
    color: #777;
}

.login-box input {
    width: 100%;
    padding: 14px;
    margin-top: 20px;

    border: 1px solid #ddd;
    border-radius: 6px;

    font-size: 16px;
    text-align: center;
}

.login-box button {
    width: 100%;
    margin-top: 10px;
    padding: 14px;

    border: none;
    border-radius: 6px;

    background: #111;
    color: white;

    cursor: pointer;
    font-size: 16px;
}

.login-box button:hover {
    opacity: 0.8;
}

.error {
    color: red !important;
    font-size: 14px;
}


/* HEADER */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 24px 30px;

    background: white;
    border-bottom: 1px solid #ddd;
}

header h1 {
    margin: 0;
    font-size: 22px;
}

header a {
    color: #111;
    text-decoration: none;
    font-size: 14px;
}

header button {
    border: none;
    background: none;
    color: #111;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

header button:hover {
    opacity: 0.5;
}

/* GALLERY */

.gallery {
    padding: 30px;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.image-card {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;

    overflow: hidden;
}

.image-card img {
    display: block;

    width: 100%;
    height: 300px;

    object-fit: cover;

    transition: transform 0.2s ease;
}

.image-card:hover img {
    transform: scale(1.02);
}

.empty {
    color: #777;
}


/* LIGHTBOX */

.lightbox {
    position: fixed;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.92);

    padding: 40px;

    z-index: 1000;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 95%;
    max-height: 95vh;

    object-fit: contain;
}

.lightbox-close {
    position: absolute;

    top: 20px;
    right: 25px;

    background: none;
    border: none;

    color: white;

    font-size: 40px;

    cursor: pointer;
}


/* MOBILE */

@media (max-width: 600px) {

    .gallery {
        padding: 10px;
        gap: 5px;

        grid-template-columns: repeat(2, 1fr);
    }

    .image-card img {
        height: 220px;
    }

}