.gallery_content{
    display: grid;
    grid-template-columns: 100%;
    grid-gap: 10px;
}
.image-wrapper{
    margin-top: auto;
    margin-bottom: 0px;
}
.image-wrapper:hover{
    cursor: pointer;
}
#gallery_menu{
    display: grid;
    grid-template-columns: auto auto auto;
    grid-gap: 20px;
    margin: 10px 0px 20px 0px;
}
.gallery_menu_item{
    text-align: center;
    font-size: 50px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 5px;
}
.gallery_menu_item_active{
    background-color: rgba(130,100,100,0.2);
}
.gallery_menu_item:hover{
    font-style: italic;
}
.gallery_image{
}
#gallery_overlay_background{
    background-color: rgba(255,255,255,1);
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 999;
}
#gallery_overlay{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1000;
}
.gallery_overlay_glyphicon{
    font-size: 40px;
    color: #cccccc;
}
.gallery_overlay_glyphicon:hover{
    font-style: normal !important;
    color: #cccccc !important;
}
#gallery_overlay_image_wrapper{
    display: grid;
    height: 100%;
    z-index: 1001;
}
#gallery_overlay_image{
    max-width: 100%;
    max-height: 100vh;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: auto;
    margin-right: auto;
    
}

#gallery_overlay_close_button{
    position: absolute;
    top: 10px;
    right: 10px;
    width: auto;
    z-index: 1006;
}
#gallery_overlay_previous_button{
    position: absolute;
    top: 50%;
    left: 10px;
    width: auto;
    z-index: 1004;
}
#gallery_overlay_next_button{
    position: absolute;
    top: 50%;
    right: 30px;
    width: auto;
    z-index: 1004;
}
/*#gallery_overlay_previous_button:hover{
    color: var(--font-color);
}
#gallery_overlay_next_button:hover{
    color: var(--font-color);
}*/
#gallery_overlay_left_clickarea{
    left: 0%;
}
#gallery_overlay_right_clickarea{
    left: 75%;
}
#gallery_overlay_right_clickarea,
#gallery_overlay_left_clickarea{
    position: absolute;
    top: 0%;
    height: 100%;
    cursor: pointer;
    z-index: 1005;
    width: 25%;
}
#gallery_overlay_right_clickarea:hover{
    /*background-color: rgba(50, 50, 50, 0.1);*/
    background: rgba(50, 50, 50, 0.1); /* Als Fallback für alte Browser */
    background: -webkit-gradient(to right, rgba(50, 50, 50, 0), rgba(50, 50, 50, 0.1));
    background: -moz-linear-gradient(to right, rgba(50, 50, 50, 0), rgba(50, 50, 50, 0.1));
    background: -moz-linear-gradient(to right, rgba(50, 50, 50, 0), rgba(50, 50, 50, 0.1));
    background: linear-gradient(to right, rgba(50, 50, 50, 0), rgba(50, 50, 50, 0.1));
}
#gallery_overlay_left_clickarea:hover{
    /*background-color: rgba(50, 50, 50, 0.1);*/
    background: rgba(50, 50, 50, 0.1); /* Als Fallback für alte Browser */
    background: -webkit-gradient(to right, rgba(50, 50, 50, 0.1), rgba(50, 50, 50, 0));
    background: -moz-linear-gradient(to right, rgba(50, 50, 50, 0.1), rgba(50, 50, 50, 0));
    background: -moz-linear-gradient(to right, rgba(50, 50, 50, 0.1), rgba(50, 50, 50, 0));
    background: linear-gradient(to right, rgba(50, 50, 50, 0.1), rgba(50, 50, 50, 0));
}
@media only screen and (pointer: coarse){
    
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .gallery_content{
        grid-template-columns: 100%;
        grid-gap: 10px;
    }
    #gallery_menu{
        grid-gap: 10px;
    }
    .image-wrapper{
        margin-top: auto;
        margin-bottom: auto;
    }
    .gallery_menu_item{
        font-size: 30px;
        padding-top: 5px;
        padding-bottom: 5px;
        border-radius: 5px;
    }
    #gallery_overlay_previous_button{
        display: block !important;
    }
    #gallery_overlay_next_button{
        display: block !important;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .gallery_content{
        grid-template-columns: auto auto;
        grid-gap: 10px;
    }
    #gallery_menu{
        grid-gap: 10px;
    }
    .gallery_menu_item{
        font-size: 50px;
        padding-top: 10px;
        padding-bottom: 10px;
        border-radius: 5px;
    }
    #gallery_overlay_previous_button{
        display: block !important;
    }
    #gallery_overlay_next_button{
        display: block !important;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    #gallery_overlay_close_button{
        width: 50px;
    }
    .gallery_content{
        grid-template-columns: auto auto auto;
        grid-gap: 15px;
    }
    #gallery_menu{
        grid-gap: 15px;
    }
    .gallery_menu_item{
        font-size: 50px;
        padding-top: 10px;
        padding-bottom: 10px;
        border-radius: 5px;
    }
    #gallery_overlay_previous_button{
        display: block !important;
    }
    #gallery_overlay_next_button{
        display: block !important;
    }
} 

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .gallery_content{
        grid-template-columns: auto auto auto auto;
        grid-gap: 20px;
    }
    #gallery_menu{
        grid-gap: 20px;
    }
    .gallery_menu_item{
        font-size: 50px;
        padding-top: 10px;
        padding-bottom: 10px;
        border-radius: 5px;
    }
    #gallery_overlay_previous_button{
        display: none;
    }
    #gallery_overlay_next_button{
        display: none;
    }
} 

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .gallery_content{
        grid-template-columns: auto auto auto auto;
        grid-gap: 20px;
    }
    #gallery_menu{
        grid-gap: 20px;
    }
    .gallery_menu_item{
        font-size: 60px;
        padding-top: 15px;
        padding-bottom: 15px;
        border-radius: 5px;
    }
    #gallery_overlay_previous_button{
        display: none;
    }
    #gallery_overlay_next_button{
        display: none;
    }

}
/* Incredible large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 2500px) {
    .gallery_content{
        grid-template-columns: auto auto auto auto auto;
        grid-gap: 50px;
    }
    #gallery_menu{
        grid-gap: 50px;
    }
    .gallery_menu_item{
        font-size: 70px;
        padding-top: 50px;
        padding-bottom: 50px;
        border-radius: 5px;
    }
    #gallery_overlay_previous_button{
        display: none;
    }
    #gallery_overlay_next_button{
        display: none;
    }
}