#coju-bildpopup {
    position: fixed;
    inset: 0;
    width: fit-content;
    height: fit-content;
    max-width: calc(100% - 2rem);
    max-height: calc(100% - 2rem);
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

#coju-bildpopup:not([open]) {
    display: none;
}

#coju-bildpopup::backdrop {
    background: rgb(0 0 0 / 65%);
}

#coju-bildpopup img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(52rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    object-fit: contain;
}

#coju-bildpopup .coju-bildpopup-close {
    position: absolute;
    z-index: 1;
    top: .5rem;
    right: .5rem;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid white;
    border-radius: 50%;
    background: #202020;
    color: white;
    font: 28px/1 sans-serif;
    cursor: pointer;
}
