
body {
    background: #eee;
}

#header-wrapper {
    width: 100%;
    height: 80px;
    position: relative;
}

.caption-nav {
    display: block;
    font-size: 1.5rem;
    color: #a55;
    padding: 10px 0 0 10px;
    margin-top: -20px;
}

#thumbnails {
    max-width: 1080px;
    margin: 0 auto;
}

#thumbnails img {
    margin: 8px 10px;
    object-fit: cover;
    width: 340px;
    height: 340px;
    transition: transform 0.3s ease;
}

#thumbnails img:hover {
    transform: scale(1.07);
}

#thumbnails a {
    text-decoration: none;
    color: #444;
}

#thumbnails a:hover {
    color: black;
}

.footer {
    margin-top: 80px;
}

#modal-left, #modal-right {
    position: fixed;
    top: 46vh;
    left: 2vw;
    width: 100px;
    height: 100vh;
    font-size: 3rem;
}

#modal-right {
    left: 96vw;
}

#modal-left a, #modal-right a, #modal-close a{
    text-decoration: none;
    color: #DDD;
}

#modal-left a:hover, #modal-right a:hover, #modal-close a:hover {
    color: #FFF;
}

#modal-wrapper {
    display: none;
    height: 100vh;
    position: relative;
    background: #444;
}

#modal-viewer, #modal-viewer2 {
    top: 4vh;
    height: 90vh;
    overflow-x: hidden;
    position: absolute;
}

.image-display, .image-display2 {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.image-display img, .image-display2 img {
  max-width: 90vw; /* was 1200px */
  max-height: 80vh; /* was 100% */
  transition: opacity 0.5s linear;
  box-shadow: 5px 5px 15px #111;
}

#modal-close {
    position: fixed;
    top: 0;
    left: 96vw;
    font-size: 4rem;
}

#image-path {
    position: absolute;
    top: 10px;
    left: 10px;
    color:#fff;
}

#image-description1, #image-description2 {
    position: absolute;
    width: 100%;
    bottom: 20px;
    color: #fff;
    text-align: center;
    font-size: 1.1em;
}

#pic-info1, #pic-info2 {
    transition: opacity 0.5s linear;
}

@media (max-width:850px) {
    .caption-nav {
        margin-top: 20px;
    }
}

@media (max-width:650px) {

    #thumbnails {
        margin-top: 10px;
    }

    #thumbnails img {
        width: 100%;
        max-width: 95%;
        height: auto;
    }

    .inner-thumbs a {
        /* Prevent clicking on thumbnails when on mobile screens - don't show modal viewer */
        pointer-events: none;
    }

    .footer {
        margin-top: 50px;
    }
}
