#gm-popup {
    position: fixed;
    inset: 0;
    margin: auto;
    width: 75vw;
    max-width: 75vw;
    max-height: 90vh;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: transparent;
}

#gm-popup:not([open]) {
    display: none;
}

#gm-popup::backdrop {
    background: rgba(0, 0, 0, .7);
}

#gm-popup img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

#gm-popup .gm-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #161616;
    color: #fff;
    font: 30px/1 sans-serif;
    cursor: pointer;
}

@media (max-width: 767px) {
    #gm-popup {
        width: 90vw;
        max-width: 90vw;
    }
}
