body.single-post .page-header > .fk-film-qr-trigger {
    display: none;
}

@media (min-width: 1024px) {
    body.single-post .page-header:has(> .fk-film-qr-trigger) {
        position: relative;
    }

    body.single-post .page-header > .fk-film-qr-trigger {
        display: block;
        position: absolute;
        z-index: 4;
        inset-block-start: 12px;
        inset-inline-end: 24px;
        width: 68px;
        height: 68px;
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 5px;
        background: #fff;
        box-shadow: 0 2px 9px rgb(0 0 0 / 24%);
        cursor: zoom-in;
    }

    body.single-post .page-header.background-image-page-header > .fk-film-qr-trigger {
        inset-block-start: 36px;
        inset-inline-end: 36px;
    }

    body.single-post .page-header.background-image-page-header:has(> .fk-film-qr-trigger) .page-header-title {
        padding-block-start: 88px !important;
    }

    body.single-post .page-header:not(.background-image-page-header):has(> .fk-film-qr-trigger) {
        min-height: 92px;
    }

    body.single-post .page-header:not(.background-image-page-header):has(> .fk-film-qr-trigger) .page-header-inner {
        padding-inline: 90px;
    }
}

body.single-post .page-header > .fk-film-qr-trigger img,
.fk-film-qr-dialog img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: inherit;
    image-rendering: pixelated;
}

body.single-post .page-header > .fk-film-qr-trigger:focus-visible,
.fk-film-qr-dialog .fk-film-qr-close:focus-visible {
    outline: 3px solid #d48740;
    outline-offset: 3px;
}

.fk-film-qr-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(920px, calc(100vw - 48px), calc(100dvh - 92px));
    max-width: none;
    max-height: calc(100dvh - 24px);
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #242424;
    overflow: auto;
}

.fk-film-qr-dialog:not([open]) {
    display: none;
}

.fk-film-qr-dialog::backdrop {
    background: rgb(0 0 0 / 75%);
}

.fk-film-qr-close-form {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 8px 10px 0;
}

.fk-film-qr-dialog .fk-film-qr-close {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: #eee;
    color: #242424;
    font: 26px / 1 sans-serif;
}

html:has(.fk-film-qr-dialog[open]) {
    overflow: hidden;
}
