/* Standalone, source-visible comparison galleries. */
:root{--font-sans:system-ui;--line:#ccd3c9;color:#203f35;background:#edf0e9;font-family:system-ui}
body{margin:0}main{max-width:1500px;margin:auto;padding:28px 20px}a{color:inherit}
header{max-width:900px;margin:0 0 36px}h1{font-size:clamp(2rem,4vw,3.5rem);line-height:1.1}
p{line-height:1.6}.gallery-note{padding:16px;border-left:4px solid #b27b30;background:#fff9e8}
.gallery-view{margin:32px 0 56px;scroll-margin-top:20px}
.scenario-fallback-grid figure{margin:0;min-width:0;background:#fff;border:1px solid #ccd3c9;border-radius:10px;overflow:hidden}
.scenario-fallback-grid img{display:block;object-fit:contain;aspect-ratio:var(--aspect);background:#e1e7dd}
.scenario-fallback-grid figcaption{padding:12px;font-weight:600}
.gallery-zoom{display:block;width:100%;padding:0;background:transparent;border:0;cursor:zoom-in}
.gallery-tag{display:inline-block;margin-top:8px;padding:4px 8px;background:#ffedc7;border:1px solid #b27b30;border-radius:5px;font-size:12px}
.gallery-compare{margin:16px auto;max-width:900px}.gallery-compare summary{cursor:pointer;font-weight:600;padding:12px;background:white}
.gallery-compare .ai-info{position:absolute;right:10px;top:10px}.ai-badge{padding:8px 10px;background:#ffedc7;color:#392c16;border:1px solid #b27b30;border-radius:5px;font-weight:700;cursor:pointer}
dialog{width:min(1100px,calc(100% - 40px));max-height:calc(100dvh - 40px);border:0;border-radius:12px;padding:15px;box-sizing:border-box;color:#203f35}
dialog::backdrop{background:#10231fee}.gallery-lightbox img{display:block;max-width:100%;max-height:70dvh;margin:auto;object-fit:contain}
.dialog-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0}.dialog-controls button{padding:10px;border:1px solid #bac8be;border-radius:5px;background:#f4f6f1;color:#203f35;cursor:pointer}
.dialog-caption{font-weight:600;margin:8px 0}.dialog-note{font-size:.85rem;margin:8px 0}.gallery-info{max-width:560px}.gallery-info button{padding:8px 12px;cursor:pointer}
[hidden]{display:none!important}@media(max-width:700px){main{padding:20px 12px}.scenario-fallback-grid{grid-template-columns:1fr}.gallery-view{margin-bottom:40px}}
