:root {
    background-color: var(--markart-gold);
}

.galerie-titel {
    margin-left: 30px;
    margin-top: 40px;
    color: var(--markart-gold);
}

.galerie-div {
    display: flex;
    margin: 20px 20px 20px 20px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    flex-wrap: wrap;
}

.galerie-div div {
    margin-bottom: 10px;
    display: flexbox;
    flex: 1;
    max-width: 220px;
}

.galerie-div > * > img {
    margin: 10px;
    height: 200px;
    width: 200px;
    object-fit: cover;
    border-radius: 7%;
}

.galerie-div > * > img:hover {
    opacity: 70%;
}

/* .galerie-div > * > video {
    margin: 10px;
    height: 200px;
    width: 200px;
    object-fit: cover;
    border-radius: 7%;
} */

.galerie-div > * > a {
    margin-left: 10px;
    align-self: flex-start;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, .9);
}

.modal-img {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 75vh;
    max-width: 75vw;
    object-fit: contain;
}

/* Animation */
.modal-img {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: .6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform: scale(0);}
    to {-webkit-transform: scale(1);}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: .3s;
}

.close:hover, .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}