/* Google Maps
----------------------------------------------------------------------------- */
@media all {
    #map {
        height: 675px;
    }

    .gm-style-iw button.gm-ui-hover-effect {
        display: none !important;
    }
}

/* Modal Window
----------------------------------------------------------------------------- */
@media all {
    /* prevent the body from scrolling when modal window is open */
    body.modal-open {
        overflow: hidden;
    }

    .gam-event-modal-inactive {
        display: none;
    }

    .gam-event-modal-active {
        display: block;
        width: 75%;
        margin: 0 auto;
    }

    .gam-event-details {
        position: fixed;
        width: 100%;
        z-index: 100;
        background: rgba(0,0,0,0.5);
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .gam-event-details-wrapper {
        position: absolute;
        top: 10%;
        right: 10%;
        left: 10%;
        bottom: 10%;
        padding: 0 3em;
        color: rgb(0,0,0);
        max-width: 90%;
        background: #fff;
        margin: 0 auto;
        overflow: auto;
        box-shadow: 0 0 4em rgba(0,0,0,0.3);

        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .gam-event-modal-header-wrapper {
        position: sticky;
        z-index: 1;
        top: 0px;
        background-color: rgba(255,255,255,0.95);
        padding: 1.5em 0;
    }

    .gam-event-modal-header {
        position: relative;
        /*margin-bottom: 1.5rem;*/
    }

    .gam-event-modal-header .header-item {
        display: block;
    }

    .gam-event-modal-header .event-title {
        font-size: 1.5rem;
    }

    .gam-event-modal-header .event-location {
        font-size: 1.25rem;
    }

    .gam-event-modal-footer {
        position: sticky;
        z-index: 1;
        bottom: 0;
        padding: 1.5em 0;
        background-color: rgba(255,255,255,0.95);
    }

    .gam-event-modal-close {
        position: absolute;
        top: 0;
        right: 0;
        cursor: pointer;
        margin: -1rem -1rem -1rem auto;
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1;
        color: #000;
        text-shadow: 0 1px 0 #fff;
        opacity: .5;
    }
}

@media all and (min-width: 47.5em) {
    .gam-event-details-wrapper {
        top: 20%;
        bottom: 20%;
    }
}

@media all and (min-width: 62.5em) {
    .gam-event-details-wrapper {
        max-width: 75%;
        top: 15%;
        bottom: 15%;
    }
}

@media all and (min-width: 82.5em) {
    .gam-event-details-wrapper {
        max-width: 60%;
        top: 10%;
        bottom: 10%;
    }
}

/* 2-Klick Lösung */
.js-gme-preview{
    position: relative;
    display: grid;
    place-content: center;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
}
.js-gme-preview > * {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}
.js-gme-background{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(var(--color-yellow-rgb), .75);
    z-index: 10;
}
.js-gme-info{
    color: var(--color-darkpurple);
    position: relative;
    max-width: 32rem;
    margin-inline: auto;
    padding: 1rem;
    z-index: 12;
    display: block;
    place-content: center;
    text-align: center;
}
.js-gme-privacy-policy{
    font-weight: 600;
    text-decoration: underline;
    color: inherit;
}

.js-gme-show{
    white-space: normal;
}
@media all and (min-width: 30em) {
    .js-gme-info{
        /*! top: 50%; */
        /*! font-size: 125%; */
        /*! transform: translateX(-50%) translateY(-50%); */
        /*! -webkit-transform: translateX(-50%) translateY(-50%); */
        /*! -ms-transform: translateX(-50%) translateY(-50%); */
        inset: 0;
    }
}
@media all and (min-width: 47.5em) {
    .js-gme-info{
        /*! top: 25%; */
    }
}
@media (max-height: 43.75em) and (min-width: 87.5em) {
    .js-gme-info{
        /*! top: 25%; */
    }
}
@media (max-height: 31.25em) and (min-width: 125em) {
    .js-gme-info{
        top: 10%;
    }
    .js-gme-info br + br{
        display: none;
    }
}

.js-gme-preview .js-gme-img{
    /*! width: 100%; */
    /*! height: 100%; */
    object-fit: cover;
    filter: blur(.5rem);
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    inset: 0;
}