*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    background:#eceff3;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color:#333;

}

header{

    background:white;

    padding:25px;

    box-shadow:0 3px 10px rgba(0,0,0,.08);

    position:sticky;

    top:0;

    z-index:100;

}

h1{

    text-align:center;

    margin-bottom:20px;

    font-size:34px;

}

form{

    display:flex;

    justify-content:center;

    gap:10px;

    flex-wrap:wrap;

}

input[type=file]{

    background:white;

}

button{

    background:#1976d2;

    color:white;

    border:none;

    padding:12px 20px;

    border-radius:8px;

    cursor:pointer;

    font-size:15px;

}

button:hover{

    background:#1565c0;

}

.gallery{

    padding:30px;

    display:grid;

    grid-template-columns:
        repeat(auto-fill,minmax(220px,1fr));

    gap:18px;

}

.gallery a{

    display:block;

}

.gallery img{

    width:100%;

    aspect-ratio:1;

    object-fit:cover;

    border-radius:10px;

    transition:.25s;

    box-shadow:0 5px 15px rgba(0,0,0,.15);

    background:white;

}

.gallery img:hover{

    transform:scale(1.03);

}

.pages{

    text-align:center;

    padding:40px;

}

.pages a{

    display:inline-block;

    padding:10px 15px;

    background:white;

    margin:5px;

    border-radius:8px;

    text-decoration:none;

    color:#1976d2;

}

.pages a:hover{

    background:#1976d2;

    color:white;

}

.counter{
    text-align:center;
    margin:20px;
    font-size:18px;
}



#lightbox{

    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.92);

    justify-content:center;

    align-items:center;

    z-index:9999;

}

#lightbox.open{

    display:flex;

}

#lightbox img{

    max-width:95%;

    max-height:90%;

    border-radius:8px;

    box-shadow:0 0 40px rgba(0,0,0,.6);

}

#close{

    position:absolute;

    top:20px;

    right:30px;

    color:white;

    font-size:45px;

    cursor:pointer;

    user-select:none;

}