dialog.ci {
    --paper: #f6f4ee;
    --ground: #151515;
    --gutter: clamp(9px, 1.1vw, 18px);
    --tile-width: 23vw;
    --tile-height: 23dvh;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    overscroll-behavior: contain; touch-action: none;
    background: var(--ground);
    color: var(--paper);
    font: 500 16px/1.15 Arial, sans-serif;
    color-scheme: dark;
}
.ci:not([open]), .ci [hidden] { display: none !important; }
.ci::backdrop { background: #151515; }

.ci-load { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); font-size: 12px; }
.ci-camera, .ci-scene, .ci-blue, .ci-art-frame { position: absolute; inset: 0; pointer-events: none; }
.ci-camera { display: flex; align-items: center; justify-content: center; gap: var(--gutter); }
.ci-column { flex: 0 0 var(--tile-width); display: grid; gap: var(--gutter); }
.ci-tile { position: relative; height: var(--tile-height); overflow: hidden; background-position: center; background-size: cover; }
.ci-scene { right: auto; bottom: auto; transform-origin: center; overflow: hidden; }
.ci-art-frame { overflow: hidden; }
.ci-art { position: absolute; max-width: none; max-height: none; margin: 0; padding: 0; border: none; }
.ci[data-recede], .ci[data-recede]::backdrop { background: transparent; }
html[data-ci-wait] :is(#site-header, .gallery-intro, .reference-progress) {
    opacity: 0 !important;
}


.ci-travel, .ci-mobile-sheet, .ci-mobile-stack { position:absolute; inset:0; pointer-events:none; }
.ci-wheel .ci-lead { position:absolute; left:50%; top:50%; pointer-events:none; }
.ci-wheel .ci-lead-art { left:0 !important; top:0 !important; translate:none !important; transform:none !important; }
.ci-wheel::backdrop { background:transparent; }
.ci-portrait-opening { position:absolute; inset:0; pointer-events:none; }
.ci-portrait-opening > * { position:absolute; margin:0; max-width:none; max-height:none; transform-origin:top left; }
