*, *:before, *:after { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: monospace;
    font-size: 12px;
    background-color: rgb(145, 145, 145);
    color: black;
    text-align: center;
}

h1 {
    padding-top: 1em;
}

#thumbs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 3em;
    padding-left: 5em;
    padding-right: 5em;
    padding-bottom: 5em;
    padding-top: 2em;
    width: 100%;
    z-index: 100;
}

#viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    background-color: rgb(145, 145, 145);
    z-index: 1000;
    display: none;
    cursor: zoom-out;
}

#viewer img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    display: none;
    z-index: 1000;
}

#thumbs .thumb img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    cursor: zoom-in;
}
#thumbs .thumb {
    color: azure;
    /* cursor: zoom-in;*/
}
a {
    color: darkslateblue;
    cursor: crosshair;
}

p {
    font-size: 12px;
    line-height: 14px;
    color: white;
}
#loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    z-index: 1;
    font-size: 14px;
}

#bigloading {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    z-index: 100;
    font-size: 14px;
}

@media(max-width:600px) {
    #thumbs {
        grid-template-columns: repeat(2, 1fr);
    }
}