.image-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10101;
    /* background-image: url('../images/Johann_Conrad_Fischer-transp.gif'); */
    /* background-repeat: no-repeat;
    background-position: center center; */
    background-color: white;
}
.image-gallery-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    height: 100vh;
}

.image-gallery-text {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30%; /* Set the width to 30% */
    padding: 1rem;
    /*background: rgba(0, 0, 0, 0.6);*/
    background: rgba(0, 122, 83,.8);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.image-gallery-text * {
    color: #fff;
}
.image-gallery-text a,
.image-gallery-text a:link, 
.image-gallery-text a:visited {
    color: #fff;
    text-decoration: underline;
    font-size: smaller;
}

@media (max-width: 64rem) {
    .image-gallery-overlay img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .image-gallery-text {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px;
        background: rgba(0, 122, 83,.8);
        color: #fff;
        width:100%;
    }

}

/*
.image-gallery-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-gallery-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}
*/

.title {
    font-family: var(--pb-content-font-family);        
    font-size: 1.5rem;
    font-weight: bold;
}

.caption {
    font-size: var(--pb-base-font-size);
}

.btn-previous,
.btn-next,
.btn-close {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: #fff;
    cursor: pointer;

    height: 3rem;
    width: 3rem;
    opacity: .7;
    background-repeat: no-repeat;
    background-position: center;
    padding: 0;
    background-color: rgba(255,255,255,.9);
    border-radius: 50%;
    transition: all ease-in-out .2s;
    font-size:xx-large;
    text-align: center;
    border:thin solid white;
    color: black;
    margin:0;
    z-index: 10103;
    line-height: 3rem;
}

.btn-previous {
    left: 1rem;
}

.btn-next {
    right: 1rem;
}

.btn-close {
    right: 1rem;
    top: 1rem;
}

.btn-previous:hover,
.btn-next:hover,
.btn-close:hover {
    background-color: rgba(255,255,255,1);
}


.image-gallery-overlay .image-gallery-loading {
    font-weight: bold;
    padding: 10px 20px;
    background-color: rgba(255,255,255,.4);
    position: absolute;
    background-image: url(../images/Johann_Conrad_Fischer-transp.gif);
    z-index: 10102;
}

/*
body.blur { filter: blur(3px); }

image-gallery div{
    display: none;
}


image-gallery img{
    visibility: visible;
    max-width: 12rem;
    max-height: 6rem;
    height: auto;
}
image-gallery span{
    display: none;
}
image-gallery > .image-gallery-text {
    display:none;
}

.image-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/Johann_Conrad_Fischer-transp.gif');
    background-repeat: no-repeat;
    background-position: center center;
    background-color: white;
    height: 100vh;

    padding:1rem;
}

.image-gallery-overlay .image-gallery-loading {
    font-weight: bold;
    padding: 10px 20px;
    background-color: rgba(255,255,255,.4);
    position: absolute;
    background-image: url(../images/Johann_Conrad_Fischer-transp.gif);
}

.image-gallery-overlay figure{
    position: absolute;
}

.image-gallery-overlay img {
    max-width: 100vw;
    max-height: 100%;
    flex-shrink: 0;
    max-height: 90vh;
    object-fit: cover;
}

.image-gallery-overlay div {
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.image-gallery-overlay div.no-title {
    justify-content: flex-end;
}

.image-gallery-overlay img,
.image-gallery-overlay section
{
    align-self: center;
}
.image-gallery-overlay section{
    visibility: hidden;
}

.image-gallery-overlay.img-loaded section{
    visibility: visible;
    background-color: white;
}

.image-gallery-overlay section .textWrapper{
    padding: 1em;
    background: #333;
    color:white;
}
.image-gallery-overlay section .caption{
    background: #333;
    color:white;
    padding:1em;
}

.image-gallery-overlay section div{
    display: block;
    position: relative;
}

.image-gallery-overlay div span {
}

.image-gallery-overlay .btn-previous,
.image-gallery-overlay .btn-next {
    display: block;
    position: absolute;
    height: 3rem;
    width: 3rem;
    opacity: .7;
    background-repeat: no-repeat;
    background-position: center;
    padding: 0 0px 0.5rem 0.5rem;
    margin: 15px;
    background-color: rgba(220,220,220,.9);
    border-radius: 50%;
    transition: all ease-in-out .2s;
    font-size:3rem;
    line-height: 3rem;
    text-align: center;
}
.image-gallery-overlay .btn-previous {
    left: 0;
    padding: 0 0 0.5rem 0;
}
.image-gallery-overlay .btn-next {
    right: 0;
}

.image-gallery-overlay .btn-previous:hover,
.image-gallery-overlay .btn-next:hover {
    opacity: .5;
}

.image-gallery-overlay.mobile .btn-previous,
.image-gallery-overlay.mobile .btn-next,
.image-gallery-overlay.keyboard .btn-previous,
.image-gallery-overlay.keyboard .btn-next {
    display: none;
}

@media (min-width: 1300px) {
    .image-gallery-overlay div {
        right: auto;
        max-width: 1300px;
    }
}
*/
