Also muss ich das machen:
#galerie
/* Mobile first - für schmale Viewports */
li {
display: inline-block;
list-style-type: none;
width: 45%;
}
img {
padding: 0;
margin: 0;
width: 100%; /* Bild passt sich an verfügbaren Raum im li an */
}
button {
padding: 0.1em;
}
/* Large screens */
@media all and (min-width: 35em) {
li {
width: 10em;
}
button:focus,
button:hover {
background: #09c;
}
@media all and (min-width: 35em) {
button {
padding: 0.1em;
width: 10em;
height: 7.5em;
position: relative;
}
button img {
border: 0;
position: absolute;
left: 0%;
top: 0%;
z-index: 1;
box-shadow: 0;
width: 10em;
transition: all 1s;
}
button:focus img,
button:hover img {
border: 2em solid #eee;
border-radius: 1em;
box-shadow: 1px 1px 5px #333;
width: 300%;
position: absolute;
left: -4%;
top: -4%;
z-index: 5;
transition: all 1s;
}
}
`