:where(.wp-block-post-content, .entry-content, .post-content) img:not(.ckklein-image-lightbox__image) {
    box-sizing: border-box;
    max-width: 100% !important;
    height: auto !important;
}

:where(.wp-block-post-content, .entry-content, .post-content) figure,
:where(.wp-block-post-content, .entry-content, .post-content) picture {
    max-width: 100%;
}

:where(.wp-block-post-content, .entry-content, .post-content) img.ckklein-expandable-image {
    cursor: zoom-in;
}

body.ckklein-image-lightbox-open {
    overflow: hidden;
}

.ckklein-image-lightbox[hidden] {
    display: none !important;
}

.ckklein-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    overflow: auto;
    background: rgba(0, 0, 0, 0.88);
    overscroll-behavior: contain;
}

.ckklein-image-lightbox__stage {
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 100%;
    min-height: 100%;
    padding: 64px 24px 24px;
}

.ckklein-image-lightbox__image {
    display: block;
    flex: 0 0 auto;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: auto;
    background: #fff;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.45);
}

.ckklein-image-lightbox__close {
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 1;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font: 32px/38px Arial, sans-serif;
    text-align: center;
    cursor: pointer;
}

.ckklein-image-lightbox__close:hover,
.ckklein-image-lightbox__close:focus-visible {
    background: #fff;
    color: #111;
    outline: 2px solid #fff;
    outline-offset: 2px;
}
