html:has(image-fullscreen-overlay) {
    overflow: hidden;
}

image-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.822);
    z-index: 1000;
}

image-fullscreen-overlay button {
    padding: 5px 10px;
    position: fixed;
    right: 32px;
    top: 32px;
    background: white;
    border: unset;
    color: black;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

image-fullscreen-overlay .container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

image-fullscreen-overlay img {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
}