.cycle-preview{display:grid;grid-template-columns:1fr 1fr;gap:0;align-items:stretch;height:170px;border-bottom:0;background:var(--display)}
.cycle-preview img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:cover}
.experiment-cycle{cursor:pointer}
.cycle-gallery-open{font:inherit;font-size:12px;text-align:left;color:var(--ink);background:none;border:0;border-bottom:1px solid var(--rule);padding:0 0 4px;margin-top:auto;align-self:flex-start;cursor:pointer}
.cycle-gallery-open:focus-visible,.cycle-gallery-close:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
.cycle-gallery{width:min(744px,calc(100vw - 24px));max-height:90svh;padding:0;border:1px solid var(--rule);background:var(--paper);color:var(--ink);overscroll-behavior:contain}
.cycle-gallery::backdrop{background:rgba(0,0,0,.76)}
.cycle-gallery-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 28px;background:var(--paper);border-bottom:1px solid var(--rule)}
.cycle-gallery-head p{font-size:11px;color:var(--muted);margin-bottom:8px}
.cycle-gallery-head h2{font-size:22px;font-weight:500;margin:0}
.cycle-gallery-close{flex-shrink:0;font:inherit;font-size:13px;color:inherit;background:none;border:1px solid var(--rule);min-height:44px;padding:10px 14px;cursor:pointer}
.cycle-gallery-body{padding:28px;display:grid;gap:28px}
.cycle-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.cycle-pair figure{margin:0;min-width:0}
.cycle-pair img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:var(--display)}
.cycle-pair figcaption{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted);padding-top:10px}
html[data-theme="dark"] .cycle-preview img{filter:invert(1)}
html[data-theme="dark"] .cycle-gallery{--paper:#171b18;--display:#222822;--ink:#edf0ec;--muted:#a5b0a7;--rule:#424b43}
@media(max-width:480px){.cycle-gallery-head{padding:16px}.cycle-gallery-head h2{font-size:18px}.cycle-gallery-body{padding:16px;gap:22px}.cycle-pair{gap:10px}.cycle-pair figcaption{font-size:11px}}

.cycle-gallery-foot{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:auto}
.cycle-gallery-foot .cycle-gallery-open,.cycle-gallery-foot > a{margin-top:0;align-self:auto}
.cycle-gallery-foot time{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
