.masthead .install-button{background:#c69b55;color:#100e0c;font-weight:800;cursor:pointer;white-space:nowrap}
.masthead .install-button:is(:hover,:focus-visible){background:#edcb84;color:#100e0c}

.gallery-page{background:#100e0c;min-height:70vh}
.gallery-intro{max-width:680px;margin-bottom:40px}
.gallery-intro h1{font-size:clamp(3.1rem,8vw,6.6rem);margin:8px 0 14px}
.gallery-collection{margin-top:clamp(45px,7vw,85px)}
.gallery-collection h2{font-size:clamp(1.85rem,4.2vw,3.4rem);margin-bottom:17px}
.gallery-grid{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr));gap:14px}
.gallery-grid a{display:grid;place-items:center;aspect-ratio:4/3;background:#171310;border:1px solid #665031;border-radius:5px;overflow:hidden}
.gallery-grid img{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.gallery-grid a:hover{border-color:var(--gold-light)}
.gallery-page .video-frame{max-width:800px}
.gallery-page .video-frame video{object-fit:contain}

.app-dialog,.photo-dialog{color:#f1eee7;background:#15110e;border:1px solid #765d37;border-radius:9px;box-shadow:0 16px 55px #09090acc;padding:0;width:min(430px,calc(100% - 28px));max-height:calc(100dvh - 28px)}
.app-dialog::backdrop,.photo-dialog::backdrop{background:#09090ac9}
.app-dialog :focus-visible,.photo-dialog :focus-visible,.gallery-page :focus-visible,.assistant-launcher:focus-visible{outline:2px solid #edcb84;outline-offset:3px}
.app-dialog h2{font-size:1.55rem;margin:0}
.dialog-bar{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #4c3c29}
.dialog-close{cursor:pointer;display:grid;place-items:center;width:44px;height:44px;flex:none;border:1px solid #765d37;border-radius:5px;color:#edcb84;background:#211a13;font-size:1.45rem;line-height:1}
.dialog-copy{padding:18px}
.dialog-copy p:last-child{margin-bottom:0}
.dialog-copy ol{padding-inline-start:20px}
.assistant-launcher{position:fixed;z-index:9;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));width:62px;height:62px;padding:0;cursor:pointer;border-radius:50%;overflow:hidden;border:1px solid #c69b55;background:#0d0c0a;box-shadow:0 9px 26px #09090abf}
.assistant-launcher img{display:block;width:100%;height:100%;object-fit:cover}
.assistant-launcher:hover,.dialog-close:hover{border-color:#edcb84;background:#302519}
.assistant-dialog{inset:auto max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) auto;margin:0}
.assistant-dialog .dialog-bar img{width:42px;height:42px;border-radius:50%;flex:none}
.assistant-dialog .dialog-bar div{flex:1}
.assistant-dialog .dialog-bar p{margin:4px 0 0;color:#d4c5aa;font-size:.85rem}
.assistant-log{display:flex;flex-direction:column;gap:10px;height:clamp(100px,30dvh,280px);overflow:auto;padding:14px 16px;overscroll-behavior:contain}
.assistant-log p{border:1px solid #4c3c29;border-radius:8px 8px 8px 2px;margin:0;padding:9px 12px;width:fit-content;max-width:94%;font-size:.94rem;white-space:pre-wrap;overflow-wrap:anywhere;background:#211a13}
.assistant-log .question{align-self:flex-end;border-radius:8px 8px 2px 8px;color:#15110e;background:#edcb84}
.assistant-shortcuts{display:flex;flex-wrap:wrap;gap:7px;padding:0 16px 10px}
.assistant-shortcuts button{border-radius:100px;border:1px solid #765d37;padding:5px 10px;background:transparent;color:#edcb84;cursor:pointer;font-size:.8rem}
.assistant-form{padding:12px 16px;border-top:1px solid #4c3c29}
.assistant-form label{display:block;font-size:.85rem;color:#e8dfce;margin-bottom:5px}
.assistant-form div{display:flex;gap:8px}
.assistant-form input{min-width:0;flex:1;border:1px solid #765d37;border-radius:5px;background:#0e0d0b;color:#f1eee7;padding:8px;font:inherit}
.assistant-form button{border:0;border-radius:5px;padding:8px 12px;background:#c69b55;color:#100e0c;font-weight:800;cursor:pointer}
.assistant-form button:disabled,.assistant-shortcuts button:disabled{opacity:.55;cursor:wait}
.assistant-status{min-height:1.3em;margin:6px 0 0;color:#edcb84;font-size:.8rem}
.assistant-status a{text-decoration:underline}
.photo-dialog{width:min(1000px,calc(100% - 28px))}
.photo-dialog img{display:block;width:100%;height:min(72dvh,740px);object-fit:contain;background:#0d0c0a}
@media(max-width:480px){.assistant-launcher{width:54px;height:54px}.assistant-shortcuts button{font-size:.75rem}}
