:root{color-scheme:dark;background:#101b1c;color:#f5f3e7;font:16px/1.55 system-ui,sans-serif}
body{max-width:78rem;margin:auto;padding:clamp(1rem,4vw,3rem)}
a{color:#e6be7f}p,label span{color:#c0cfca}h1,h2{font-family:Georgia,serif;font-weight:500;line-height:1.1}
h1{font-size:clamp(3rem,9vw,6rem);margin:.35em 0 .15em}h2{font-size:1.85rem;margin:.7em 0 .45em}
nav,.actions{display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:center}
#viewer{overflow:hidden;border-radius:.65rem;background:#0b1517;border:1px solid #47605d}
canvas{display:none;width:100%;height:clamp(18rem,53vw,39rem);cursor:grab;touch-action:none}
canvas:active{cursor:grabbing}canvas:fullscreen{width:100%;height:100%}
#fallback{width:100%;height:auto;display:block}
[hidden]{display:none!important}.actions{margin-top:.8rem}
button,input,textarea,select{font:inherit;color:inherit;border:1px solid #69807b;border-radius:.35rem;background:#182729;padding:.5rem .7rem}
button{min-height:44px;cursor:pointer}button:hover{border-color:#e6be7f}#xr{color:#182729;background:#e6be7f}
:focus-visible{outline:2px solid #e6be7f;outline-offset:3px}
.field{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:clamp(1rem,4vw,3rem);margin-top:2rem;border-top:1px solid #47605d;padding-top:1rem}
label{display:block;margin-top:.6rem}textarea,input:not([type=file]),select{width:100%;box-sizing:border-box;margin:.3rem 0 .75rem}
textarea{resize:vertical}#status:empty{display:none}
@media(max-width:44rem){.field{grid-template-columns:1fr}}
.date-caption{font-size:.95rem;margin:.15rem 0 1.25rem}
.tulum-tour{max-width:58rem}
.tulum-tour h1{font-size:clamp(2.6rem,7vw,4rem)}
.tulum-tour canvas:not(:fullscreen){height:clamp(13.5rem,42vw,26rem)}
.view-selector{display:flex;align-items:center;gap:.65rem;margin:.9rem 0 0}
.view-selector select{width:auto;max-width:100%;margin:0}
.camera-views{display:flex;gap:.8rem;margin:1.35rem 0}
.camera-views a{display:grid;gap:.3rem;width:min(42%,10rem);font-size:.9rem}
.camera-views img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:.35rem}
.tour-notes{margin-top:1.25rem}
.tour-notes p{margin:.35rem 0}
.tour-notes small{font-size:.8rem}
.viewer-instructions{margin:0 0 .75rem}
#panorama-strip{overflow-x:auto;overscroll-behavior-x:contain}
#panorama-strip #fallback{width:auto;max-width:none;height:clamp(13.5rem,42vw,26rem)}
#panorama-strip:focus-visible{outline-offset:-4px}
.tulum-tour #play{color:#182729;background:#e6be7f;border-color:#e6be7f}
.tulum-tour .camera-views{margin-top:.65rem}
#tour{scroll-margin-top:1rem}
#viewer{margin-top:.75rem}
#photo-album{margin-top:1.5rem}
.album-group{border-top:1px solid #47605d;padding:.64rem 0}
.album-group summary{cursor:pointer;color:#e6be7f}
.album-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(7rem,1fr));gap:.55rem;margin-top:.7rem}
.album-grid a{display:block}
.album-grid img{display:block;width:100%;height:100%;aspect-ratio:4/3;object-fit:cover;border-radius:.35rem}
#album-viewer{color:#f5f3e7;background:#101b1c;border:1px solid #69807b;border-radius:.55rem;max-width:min(94vw,56rem);max-height:90vh}
#album-viewer::backdrop{background:#000b}
#album-viewer figure{margin:.6rem 0 0}
#album-photo{display:block;width:100%;max-height:69vh;object-fit:contain}
.album-toolbar{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.album-toolbar form{margin-left:auto}

.panorama-choices{display:grid;align-items:stretch;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.25rem,1vw,.7rem);margin:.8rem 0;scroll-margin-top:.6rem}
.panorama-choices a{display:grid;align-content:start;gap:.2rem;min-width:0;padding:clamp(.25rem,1vw,.55rem);border:1px solid #69807b;border-radius:.4rem;color:#f5f3e7;background:#182729;text-decoration:none;line-height:1.2}
.panorama-choices a:hover,.panorama-choices a[aria-current=true]{border-color:#e6be7f;color:#e6be7f}
.panorama-choices img{display:block;width:100%;height:clamp(2.25rem,7vw,4.25rem);object-fit:cover;border-radius:.25rem}
.panorama-choices strong{font-size:clamp(.75rem,2.2vw,1rem);overflow-wrap:anywhere}
.panorama-choices span,.scene-note{font-size:.8rem;color:#c0cfca}
