/* This feature owns its grid and detail view; other viewers are unchanged. */
.ua-document { background: #191a18; scrollbar-gutter: stable; }
.ua-document::before { display: none; }
.unadulterated-page { background: #191a18; color: #eee9df; margin: 0; padding: 0; max-width: none; min-height: 100vh; overflow-anchor: none; }
.unadulterated-page * { box-sizing: border-box; }
.unadulterated-page a { color: inherit; }
.ua-header { padding: max(1.5rem, env(safe-area-inset-top)) max(6vw, env(safe-area-inset-right)) 1.5rem max(6vw, env(safe-area-inset-left)); border-bottom: 1px solid #44473b; }
.ua-header nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.ua-header a, .ua-label, .ua-detail button { font-family: 'Jost', sans-serif; font-size: .8rem; letter-spacing: .1em; }
.ua-header a { text-decoration: none; padding: .5rem 0; }
.ua-main { max-width: 90rem; margin: auto; padding: 5rem 6vw 6rem; }
.ua-label { color: #c1b390; text-transform: uppercase; }
.ua-main h1, .ua-main h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; }
.ua-main h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); line-height: 1.08; margin: .8rem 0 2rem; }
.ua-introduction, .ua-commentary { max-width: 40rem; font: 400 1.3rem/1.65 'Cormorant Garamond', Georgia, serif; overflow-wrap: anywhere; }
.ua-introduction:empty, .ua-commentary:empty { display: none; }
.ua-collections { margin-top: 5rem; border-top: 1px solid #44473b; padding-top: 2rem; }
.ua-collections h2 { font-size: 2rem; }
.ua-empty { color: #c2c1b7; margin: 3rem 0; }
.ua-collections:has(.gallery-item) .ua-empty { display: none; }
.ua-collections .gallery-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 3rem 2rem; }
.ua-collections .gallery-item { width: auto; max-width: 30rem; margin: 0; }
.ua-collections .gallery-caption-title, .ua-collections .gallery-caption-title a, .ua-collections a.gallery-caption-title { color: #eee9df; }
.ua-collections .gallery-caption-title a:is(:visited, :hover, :focus, :focus-visible), .ua-collections a.gallery-caption-title:is(:visited, :hover, :focus, :focus-visible) { color: #eee9df; }
.ua-collections .gallery-item img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.ua-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.ua-tile { display: block; position: relative; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 2px; background: #24251f; color: #eee9df; cursor: zoom-in; }
.ua-tile img, .ua-tile video { display: block; width: 100%; height: 100%; object-fit: contain; }
.ua-tile[data-video]::after { content: '▶ Video'; position: absolute; bottom: 1rem; left: 1rem; background: #191a18; padding: .5rem; }
.ua-status { min-height: 1.5em; color: #d1c6aa; }
.ua-detail[hidden] { display: none; }
.ua-detail { position: fixed; z-index: 10000; inset: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: #161713; padding: max(.75rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-right)) max(.75rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left)); }
.ua-detail-toolbar { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding-bottom: .6rem; }
.ua-detail button { background: #eee9df; color: #22251b; border: 1px solid #c5c5ad; border-radius: 3px; min-height: 44px; padding: .55rem 1rem; cursor: pointer; }
.ua-detail button:disabled { opacity: .5; cursor: default; }
.ua-detail button[hidden] { display: none; }
.ua-detail figure { margin: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ua-detail-media { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ua-detail-media img, .ua-detail-media video { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ua-detail figcaption { flex: 0 1 auto; overflow: auto; max-height: 28vh; margin: .75rem auto 0; padding: 1rem; width: min(100%, 42rem); background: #292b23; color: #f5efe4; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 1.2rem/1.5 'Cormorant Garamond', Georgia, serif; }
.ua-detail figcaption[hidden] { display: none; }
.unadulterated-page :focus-visible { outline: 2px solid #d4c292; outline-offset: 5px; }
::view-transition-group(ua-photo) { animation-duration: 320ms; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
::view-transition-old(ua-photo), ::view-transition-new(ua-photo) { height: 100%; object-fit: contain; }
/* One opaque photo moves between its two bounds, rather than fading two copies. */
.ua-document::view-transition-old(ua-photo) { display: none; }
.ua-document::view-transition-new(ua-photo) { animation: none; mix-blend-mode: normal; }
@media (max-width: 700px) { .ua-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } .ua-main { padding-top: 3rem; } .ua-collections { margin-top: 3rem; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(ua-photo) { animation-duration: 0s; } }
