#galleries {
    margin: 15px auto;
    text-align: center;
}

#pathwayGallery,
#coreGallery {
    width: 100%;
}

#galleries .row {
    margin: 10px auto;
}

.galleryGroups img {
    max-width: 555px;
    max-height: 300px;
}

.galleryGroups,
.thumbnail a,
.thumbnail a:hover {
    min-height: 407px;
}

.caption {
    text-align: center;
    min-width: 100%;
}

.imagePreview img {
    max-height: 550px;
    max-width: 550px;
}

.imagePreview img,
#coreGallery img,
#pathwayGallery img {
    margin: 0 auto;
    background: url(../images/loader.gif) 50% no-repeat;
    background-size: contain;
    background-color: white;
    min-width: 100px;
    min-height: 100px;
}

.imagePreview,
#imgPreview:not(.show),
.thumbnail:not(.show) a .caption p,
.expand img + i.fa,
#coreGallery:not(.show),
#pathwayGallery:not(.show) {
    display: none;
}

.galleria-image-nav button, .galleria-thumbnails-container button {
    padding: 0px;
}

.galleria-thumbnails-container button {
    padding-top: 5px;
}

.thumbnail a:hover .caption p,
.thumbnail a:focus .caption p {
    display: block;
}

.thumbnail.active .caption,
.thumbnail a:hover .caption,
.thumbnail a:focus .caption,
.expand:hover span,
.expand:focus span {
    top: 0;
    left: 0;
    position: absolute;
    min-height: 95%;
    min-width: 95%;
    padding: 10px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid black;
    color: white;
}

.thumbnail.active .caption p,
.thumbnail a:hover .caption p,
.thumbnail a:focus .caption p {
    color: white;
}

.thumbnail a .caption p {
    line-height: 1.5;
}

.thumbnail a:hover .caption p.show,
.thumbnail a:focus .caption p,
.expand:hover i.fa,
.expand:focus i.fa {
    -moz-transition-duration: 0.3s;
    -webkit-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -moz-transition-timing-function: ease-in;
    -webkit-transition-timing-function: ease-in;
    -o-transition-timing-function: ease-in;
    transition-timing-function: ease-in;
    display: inline-block;
}

.core:not(.show), .pathway:not(.show) {
    display: none;
}

.download {
    margin: 20px auto;
}

@media (max-width: 768px) {
    .thumbnail.active .caption,
    .thumbnail a:hover .caption,
    .thumbnail a:focus .caption,
    .expand:hover span,
    .expand:focus span {
        min-height: 100%;
    }
}

