html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
main {
    display: block;
    position: relative;
}

    main::after {
        content: "";
        /*background: url("../images/sprout_from_tree.jpeg");*/
        background-color: rgb(19,16,11);
        background-size: 100%;
        opacity: 0.5;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        position: fixed;
        z-index: -1;
    }

footer {
    background-color: white;
}

.grid {
    border: 1px solid #333;
}

    /* clear fix */
    .grid:after {
        content: '';
        display: block;
        clear: both;
    }

/* ---- .element-item ---- */

.grid-item {
    position: relative;
    float: left;
    width: 150px;
    height: 150px;
    margin: 5px;
}

    .grid-item > img {
        max-width: 100%;
        max-height: 100%;
    }

.grid-item--width2 {
    width: 310px;
}

.grid-item--height2 {
    height: 310px;
}

.galleryImages { 
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.galleryImages:hover {
    opacity: 0.5;
}

/* The Modal (background) */
.galmodal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
    align-items: center;
}

/* Modal Content (Image) */
.galmodal-content {
    margin: auto;
    display: block;
    /*width: 90%;*/
    max-width: 100vh;
    max-height: 80vh;
    width: auto;
    height: auto;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation - Zoom in the Modal */
.galmodal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* The Close Button */
.galclose {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

    .galclose:hover,
    .galclose:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
    .galmodal-content {
        width: 100%;
    }
}