* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

body {
    background: #000;
    background-image: url('5007.png'); /* Background-image from background-tiles.com*/
margin: 0 auto;
}

h1 {
    color: #fff;
    text-align: center;
    margin: 20px;
    padding: 5px;
    font-size: 50px;
    font-family: 'Times New Roman', Times, serif;
}

p {
    color: #fff;
    text-align: center;
}

/* From here on is code for the gallery */

.img-gallery {
    width: 80%;
    margin: 100px auto 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* auto-fit: automatic number of columns */
    grid-gap: 50px;
}

.img-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Makes the image fill its container (it gets cropped if needed) */
    aspect-ratio: 1; /* This makes the preview image a square */
    cursor: pointer;
    background-color: #ecf4fb;
    padding: 5px; /* The frame around the preview image*/
    border: 1px solid #dedede;
    filter: grayscale(100%); /* Makes the preview image appear in graysale */
}

.img-gallery img:hover {
    transform: scale(1.02) rotate(-4deg); /* Enlargies the image and rotates it slightly on hover */
    filter: none; /* Removes the greyscale filter on hover */
}

.full-img {
    display: none; /* This is so that the image isn't displayed in fullsize by default */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background: #000;
    position: fixed;
    top: 0;
    left: 0; 
    z-index: 100;
}

.full-img img {   
    display: flex;
    max-width: 80%;
    max-height: 80%;
}

.full-img span {
    position: absolute;
    top: 3%;
    right: 5%;
    font-size: 30px;
    color: #ecf4fb;
    cursor: pointer;
}