*, *:after, *:before {
    padding:0;
    margin:0;
    font-family:Arial;
}

body {
}
.photo-grid {
    height: 100%;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-auto-rows: 240px;
}

.card {
    height: 100%;
    width: 100%;
    border-radius: 4px;
    /*transition: transform 200ms ease-in-out;*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%);

}
.card:hover {
    box-shadow: rgba(2, 8, 20, 0.1) 0px 0.35em 1.175em,
    rgba(2, 8, 20, 0.08) 0px 0.175em 0.5em;
    /*transform: translateY(-3px) scale(1.1);*/
    filter: grayscale(0%);
    /*transition: greyscale 50ms ease-out;*/
    -webkit-animation: greyscale 5s ease-out;
}

/*.card:hover {*/
/*    transition: bouncy 5000ms ease-in-out;*/
/*    display: block;*/
/*    !*width: 1500px;*!*/
/*    !*height: 1000px;*!*/
/*    vertical-align: middle;*/
/*    text-align: center;*/
/*    position: absolute;*/
/*    height: 90%;*/
/*    width: 90%;*/
/*    !*top: 50%;*!*/
/*    !*left: 50%;*!*/
/*    !*transform: translateX(-50%) translateY(-50%);*!*/
/*}*/


@media screen and (min-width: 600px) {
    .card-tall {
        grid-row: span 2 / auto;
    }

    .card-wide {
        grid-column: span 2 / auto;
    }
}

#center_that {
    vertical-align: middle;
    text-align: center;
    position: absolute;
    height: 90%;
    width: 90%;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}
#center_that >h3{
    font-size:50px;
}

#hingergrund {
    background-image: url("../img/Drinkglasses.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 100vh;
    width: 100%;
}
#hingergrund1 {
    background-image: url("../img/seeside.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size:auto;
    height: 100vh;
    width: 100%;
}
.ueberschriftBild {
    font-size: 80px;
}

ul {
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
    margin:auto;
    list-style:none;
    width:955px;
    height:450px;
    border-radius:3px;
    overflow:hidden;
    box-shadow:1px 1px 3px 1px;
}


li {
    position:relative;
    width:190px;
    height:450px;
    float:left;
    border-left:1px solid white;
    -webkit-transition:all 0.7s;
    -moz-transition:all 0.7s;
    transition:all 0.7s;
    box-shadow:-2px 0 10px 2px;
}

ul li:first-child {
    border:none;
}

span {
    display:block;
    position:absolute;
    bottom:0;
    width:50%;
    color:white;
    white-space:nowrap;
    padding:20px;
    background: -moz-linear-gradient(left,  rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(0,0,0,0.65)), color-stop(100%,rgba(0,0,0,0))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(left,  rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(left,  rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(left,  rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); /* IE10+ */
    background: linear-gradient(to right,  rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=1 ); /* IE6-9 */

}

img{
    width:955px;
    height:450px;
}

ul:hover li {
    width:50px;
}


ul li:hover {
    width:750px;
}


.fullscreen {
    /*width: 1500px;*/
    /*height: 1000px;*/
    vertical-align: middle;
    text-align: center;
    position: absolute;
    height: 90%;
    width: 90%;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}


@keyframes bouncy {
    from {/*transform: rotate(-0.5deg);*/}
    to {transform: scaleX(0.98) scaleY(1.2) rotate(7deg);
        bottom: 0.1vh;
        left: 0.1vw;
    }
}

.overlay {
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s;
}

.overlay img{
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    transform: scale(0.95);
    transition: transform .3s;
}

.overlay:target {
    visibility: visible;
    outline: none;
    cursor: default;
}

.overlay:target img {
    transform: scale(1) translateX(100%) translateY(0);
}

.greyscale {
    -webkit-animation: greyscale 1s ease-out;
}

@-webkit-keyframes greyscale {
   0% { filter: grayscale(100%);
        z-index: 5;}

    50% {
        transform: scale(1.1);
        z-index: 5;
        -webkit-filter: grayscale(50%);
    }
    100%{
        transform: scale(1);
        -webkit-filter: grayscale(0%);
    }
}

/*.photo-grid div:hover {*/
/*    vertical-align: middle;*/
/*    text-align: center;*/
/*    position: absolute;*/
/*    max-width: 90%;*/
/*    max-height: 90%;*/
/*    width: auto;*/
/*    height: auto;*/
/*    top: 50%;*/
/*    left: 50%;*/
/*    transform: scale(2) translateX(-50%) translateY(-50%);*/
/*    transition: transform .9s;*/
/*}*/
/*.photo-grid div:target {*/
/*    transform: scale(2);*/
/*    transition: transform .9ms;*/
/*}*/