#header {
    position: relative;
}

.gallery {
    width: 95%;
    margin: 0 auto 30px auto;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
}

.thumbnails img, a {
    transition: linear 150ms all;
    -webkit-transition: linear 150ms all;
    -moz-transition: linear 150ms all;
}

.thumbnailsContainer {
    margin-bottom: 10px;
    padding: 10px 0 0 10px;
    border: none;
    overflow-x: auto;
}

.thumbnails {
    width: 2000px;
}

.thumbnails img {
    margin-right: 10px;
    border: solid 2px #a0a0a0;
    position: relative;
    top: 0;
}

.thumbnails a {
    border: none;
}

.thumbnails a.active img {
    border-color: #5f4d93;
}

.thumbnails a:hover img,
.thumbnails a:focus img {
    top: -5px;
}

div.previewContainer {
    position: relative;
    height: auto;
}

.previewImage img {
    position: relative;
    margin-right: auto;
    margin-left: auto;
    display: none;
    box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.3);
    max-width: 100%;
    max-height: 600px;
}

img.shown {
    display: block;
}

.previewArrows a {
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
    display: block;
    height: 70px;
    width: 70px;
    font-size: 30px;
    color: #fff;
    line-height: 70px;
    text-align: center;
    border-radius: 100px;
    background-color: rgba(0,0,0,0.2);
    position: absolute;
    top:50%;
    left: 20px;
    margin-top: -35px;
    border: none;
}

a.nextArrow {
    right: 20px;
    left: auto;
}

.previewArrows a:hover,
.previewArrows a:focus {
    background-color: rgba(0,0,0,0.8);
}

.galleryBullets {
    position: relative;
    margin: 15px auto 5px auto;
    text-align: center;
    border: none;
}

.galleryBullets a {
    width: 20px;
    height: 20px;
    background-color: rgba(0,0,0,0.2); 
    display: inline-block;
    margin: 2px;
    border: none;
}

.galleryBullets a.active,
.galleryBullets a:hover {
    background-color: rgba(0,0,0,0.8)
}

.descriptionContainer {
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    bottom: 2px;
    width: 100%;
}

.descriptionContainer > div{
    display: none;
    line-height: 20px;
    text-align: center;
    
}

.descriptionContainer > div span {
    padding: 2px 5px;
    background-color: rgba(0,0,0,0.3);
    color: #fff;
}

.descriptionContainer > div.visible {
    display: block;
}

.checkDiv {
    float: right;
    font-size: 80%;
}

h2 {
    margin-top: 1em;
}

@media screen and (max-width: 480px) {
    .thumbnailsContainer{
        display: none;
    }

    .descriptionContainer > div.visible {
        display: none;
    }

    .galleryBullets {
        display: none;
    }

    .previewArrows a {
        height: 40px;
        width: 40px;
        font-size: 16px;
        line-height: 40px;
        margin-top: -20px;
    }
}

@media screen and (max-width: 720px) {
    .checkDiv {
        display: none;
    }
}