.grid * {
    transition: 3s transform;
}

.grid {
    display: grid;
    width: 100%;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, 7cm);
    grid-auto-flow: row dense;
    grid-auto-rows: 6cm;
    justify-content: center;
}

.grid .card:first-child,
.big {
    grid-column: span 2;
    grid-row: span 2;
}

.grid .card:first-child .standort {
    width: 15.8cm;
}

h1 {
    margin-top: auto;
    margin-bottom: auto;
}

.card {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    overflow: hidden;
    color: white;
}

.card img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(0, -100%);
}

.card:hover img {
    transform: translate(0, -100%) scale(1.1);
}

.wrapper {
    z-index: 2;
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(50, 50, 50, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 20px;

}

.date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(87.48deg, rgba(200, 48, 136, 1) -10.15%, rgba(72, 126, 206, 1) 158.56%);
    padding: .1cm;
    border-radius: .2cm;
}

.date hr {
    margin: 0;
}

.text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 90%;

    font-size: 1.25rem;
}

.standort {
    font-size: 1rem;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 6.8cm;
    white-space: nowrap;
    display: block;

    color: white;
}

.standort-icon {
    display: inline-block;
    width: .5cm;
    height: .5cm;
    background-image: url("platzhalter.png");
    filter: invert();
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* ####################################################### */

.overview {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 12;
}

.overview * {
    color: black;
}

.detail-warpper {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    width: 60%;
    height: 60%;

    display: grid;
    grid-template-columns: 45% 45%;
    gap: 1cm;
}

#img_detail,
#vid_detail {
    width: 100%;
    width: -webkit-fill-available;
    /* Mozilla-based browsers will ignore this. */
    width: fill-available;
    height: 100%;
    height: -webkit-fill-available;
    /* Mozilla-based browsers will ignore this. */
    height: fill-available;
    object-fit: contain;
    background-color: var(--navbar);
    border-radius: 0px;

    /* background-image: url("/Bilder/wbf_pattern_light.png"); */
    background-size: 5cm;
}

#close {
    position: absolute;
    right: .2cm;
    top: .2cm;
    border: none;
    padding: 0;

    font-size: 2rem;
    color: grey;

}

#header {
    font-size: 2rem;
    margin: .5cm 0;
    color: #3e4e6a;
}

#standort {
    margin: 0;
}

#standort .standort-icon {
    filter: invert(0);
}

#standort .standort {
    width: 100%;
    white-space: normal;
    overflow: none;
    margin-bottom: .5cm;

}

#text {
    margin: 0;
    margin-top: .5cm;
}

#text {
    margin: 0;
    height: 60%;
    overflow: scroll;
}

#date {
    position: absolute;
    bottom: 0px;
    right: .2cm;
    font-size: 2rem;

    margin: 0;

    background: linear-gradient(87.48deg, rgba(200, 48, 136, 1) -10.15%, rgba(72, 126, 206, 1) 158.56%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
}

@media (max-width: 35cm) {
    .detail-warpper {
        width: 80%;
        height: 80%;
    }
}

@media (max-width: 22cm) {

    .detail-warpper {
        grid-template-columns: 100%;
        grid-template-rows: 35% 65%;
        gap: 0;
    }

    #header {
        margin-top: 0;
    }

    .detail-text {
        margin: 0 .2cm;
    }

    #img_detail,
    #vid_detail object-fit: cover;
}
}

@media (max-width: 19cm) {
    main {
        margin: 1rem;
        margin-top: 6rem;
    }

    .grid .card:first-child,
    .big {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 17.5cm) {
    .grid {
        grid-template-columns: 100%;
    }
}
