#dgpc-popup-affiche {
    position: fixed;
    inset: 0;
    width: fit-content;
    height: fit-content;
    max-width: calc(100% - 24px);
    max-height: calc(100% - 24px);
    padding: 0;
    border: 0;
    border-radius: 12px;
    margin: auto;
    overflow: hidden;
    background: #07162f;
    box-shadow: 0 12px 48px rgb(0 0 0 / 50%);
}

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

#dgpc-popup-affiche::backdrop {
    background: rgb(0 0 0 / 75%);
}

#dgpc-popup-affiche img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(720px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
}

#dgpc-popup-affiche button {
    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: #07162f;
    color: #fff;
    font: 30px/1 Arial, sans-serif;
    cursor: pointer;
}

#dgpc-popup-affiche button:focus-visible {
    outline: 2px solid #ffad4d;
    outline-offset: 2px;
}
