.grid-gallery{
    display: grid;
    grid-gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
}
.grid-gallery .gallery > a{
    display: flex;
    min-height: 18rem;
    max-height: 100%;
}
.grid-gallery img{
    margin-top: auto;
    max-height: 100%;
    max-width: 100%;
}
div.gallery img{
    margin: auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}
div.gallery{
    border: none;
}
div.gallery:hover{
    border: none;
    background: #eff1f1;
    cursor: pointer;
}
@media only screen and (max-width: 700px) {
    .grid-gallery .gallery > a {
        height: 100%;
    }
}
@media only screen and (min-width: 576px){
    .grid-gallery{
        grid-template-columns: repeat(4, 1fr);
    }
}
@media only screen and (min-width: 701px){
    .grid-gallery{
        grid-template-columns: repeat(4, 1fr);
    }
}
@media only screen and (min-width: 991px){
    .grid-gallery{
        grid-template-columns: repeat(4, 1fr);
    }
}
.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #FDFDFD;
    overflow-x: hidden;
    transition: 0.5s;
}
#overlay-image-section{
    text-align: center;
    background: #f8f6f6ed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 500;
    flex-wrap: wrap;
}
#overlay-show-img {
    display: initial;
    max-height: 75vh;
    max-width: 100%;
    margin: auto;
}
#cross-burger-gallery {
    width: 2rem;
    margin-top: 1rem;
    margin-left: 1rem;
}
#overlay-image-section .closebtn {
    padding-top: 0;
    margin-top: 0.5rem;
}
.cross_st0 {
    fill: none;
    stroke: #1a1919;
    opacity: 0.8;
    stroke-width: 2;
}
#cross-burger-gallery > .cross_st0{
   stroke-width: 1;
}
.overlay .closebtn {
    position: absolute;
    height: 20vh;
    width: 6vw;
    right: 0;
}
p#gallery-text-overlay{
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    max-height: 20vh;
}
.overlay-arrow {
    position: fixed;
    top: 10vh;
    height: 100%;
    padding-top: 35vh;
    width: 2rem;
}
.overlay-arrow:hover{
    cursor: pointer;
}
.overlay-arrow.left {
    left: 1vw;
}
.overlay-arrow.right {
    right: 1vw;
}
@media only screen and (max-width: 700px) {
    #closebtn-gallery{
        position: fixed;
        top: 1.5rem;
        right: 2rem;
        height: 1.5rem;
    }
    #overlay-image-section .closebtn{
        margin: unset;
    }
    #cross-burger-gallery{
        margin: 0.5rem;
    }
    #overlay-image-section{
        padding-top: 82px;
    }
}
div.desc{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    padding: unset;
    font-size: 80%;
    text-align: center;
}
@media only screen and (min-width: 1500px) {
    #overlay-show-img{
        max-height: 90vh;
        width: auto;   
    }
}
p#gallery-text-overlay{
    overflow: scroll !important;
    position: relative;
    font-size: 80%;
}
div.foot-notes{
    font-size: 80%;
}
.image-container{
    margin-left: auto;
    margin-right: auto;
    height: 22vw;
    display:flex;
    padding-right: 1rem;
    padding-left: 1rem;
    max-height: 18rem;
}
@media only screen and (max-width: 700px) { 
    #overlay-image-section {
        padding-top: 0;
    }
}
@media only screen and (max-height: 500px) {
    #overlay-image-section {
        padding-top: 0vh;
    }
}
@media only screen and (max-width: 575px) {
    .image-container{
        height: 50vw;
    }   
}
a:focus, a:hover{
    color: unset;
}
@media (orientation: portrait) {
   #overlay-show-img{
    max-height: 75vh;
    padding-top: 0;
   }
}
.overlay-container{
    margin: auto;
}
p#gallery-text-overlay::-webkit-scrollbar {
    display: none;
}
p#gallery-text-overlay {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
