/* Für alle Geräte */
h1 {
	margin-left: 1em;
}

#galery {
    background-color: #4D4646;
	border-top: 5px solid rgb(60,60,60);
	border-bottom: 5px solid rgb(60,60,60);
	height: 170px;
    display: flex;
	overflow-x: scroll;
	overflow-y: hidden;
    justify-content: flex-start;
    margin: 1em 2em;
}

#galery a {
    align-items: center;
    border: 1px solid #F5EAEA;
    border-radius: 75px;
    display: flex;
    flex-direction: row;
	flex-shrink: 0;
    height: 140px;
    justify-content: center;
    margin: 1em;
    width: 140px;
}

#galery a:visited {border-color: blueviolet;}

#galery a img:hover {transform: scale(1.1);}

#modal a[id^="image"] {display: none;}

#modal a[id^="image"]:target {
    align-items: center;
    background-color: rgb(77,70,70);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;    
}

#modal a p:first-child {color: #FFD700;}

#modal img {display: block;}

#modal img[src*="w."] {
    height: auto;
    max-width: 900px;
    width: 60%;
}

#modal img[src*="h."] {
    height: 60%;
    max-height: 900px;
    width: auto;
}

/* Für Handys */
@media only screen and (orientation: landscape) and (min-height: 321px) {
    #modal img[src*="w."] {
        height: auto;
        max-width: 600px;
        width: 65%;
    }

    #modal img[src*="h."] {
        height: 75%;
        max-height: 900px;
        width: auto;
    }
}

@media only screen and (orientation: landscape) and (min-height: 415px) {
    #modal img[src*="w."] {
        height: auto;
        max-width: 600px;
        width: 100%;
    }

    #modal img[src*="h."] {
        height: 85%;
        max-height: 900px;
        width: auto;
    }
}



