/* Project films and images: restrained motion, generous spacing, original framing. */
.project-dialog-gallery{width:min(1240px,calc(100% - 64px));max-height:92dvh;background:#f6f5ef;overscroll-behavior:contain;border-radius:3px;box-shadow:0 32px 100px #0005;color:#181916}
.project-dialog-gallery[open]{animation:project-arrive .55s cubic-bezier(.22,1,.36,1) both}
.project-dialog-gallery[open]::backdrop{background:#10110fe0;backdrop-filter:blur(12px);animation:project-backdrop .45s ease both}
.project-dialog-gallery.is-closing{animation:project-leave .2s ease both}
.project-dialog-gallery.is-closing::backdrop{animation:project-backdrop .2s ease reverse both}
.project-dialog-bar{position:sticky;top:0;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px 24px;background:#f6f5ef;border-bottom:1px solid #1819161c}
.project-dialog-bar>span{font-size:10px;letter-spacing:.15em;line-height:1.5;text-transform:uppercase}
.project-dialog-bar .dialog-close{position:static;flex:none;width:36px;height:36px;font-size:24px;background:transparent;color:#181916;border-color:#18191638;transition:transform .3s,background .3s}
.project-dialog-bar .dialog-close:hover{transform:rotate(90deg);background:#e5a91c}
.gallery-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start}
.project-gallery{min-width:0;background:#181916;color:#f6f5ef;padding:22px 24px 24px;--gallery-progress:0}
.gallery-stage{position:relative;height:clamp(340px,59dvh,650px);overflow:hidden;isolation:isolate;background:#11120f;touch-action:pan-y;cursor:grab;outline-offset:-4px}
.gallery-stage:active{cursor:grabbing}
.gallery-slide{position:absolute;inset:0;margin:0;opacity:0;visibility:hidden;pointer-events:none;transform:translateX(calc(var(--gallery-direction,1)*25px)) scale(.985);transition:opacity .4s ease,transform .65s cubic-bezier(.22,1,.36,1),visibility .65s;will-change:opacity,transform}
.gallery-slide.is-active{opacity:1;visibility:visible;transform:translateX(0) scale(1);pointer-events:auto;z-index:1}
.gallery-slide>img,.gallery-slide>video{display:block;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none;background:#11120f}
.gallery-slide>.fit-cover{object-fit:cover}
.gallery-media-kind{position:absolute;left:14px;top:14px;z-index:2;font-size:9px;letter-spacing:.14em;text-transform:uppercase;padding:7px 10px;background:#181916c9;border:1px solid #ffffff25;border-radius:30px;pointer-events:none}
.gallery-video-tools{position:absolute;left:12px;right:12px;bottom:12px;z-index:3;display:flex;align-items:center;justify-content:space-between;pointer-events:none}
.gallery-video-tools>button{pointer-events:auto;border:1px solid #ffffff40;border-radius:24px;background:#181916d9;color:#fff;padding:10px 14px;font:inherit;font-size:10px;cursor:pointer;backdrop-filter:blur(8px);transition:background .25s}
.gallery-video-tools>button:hover{background:#181916}
.gallery-sound{display:flex;gap:8px;align-items:center}
.gallery-pause{min-width:38px}
.gallery-video-tools[hidden],.gallery-play[hidden],.gallery-error[hidden]{display:none}
.gallery-play{position:absolute;inset:0;margin:auto;width:max-content;height:46px;z-index:4;display:flex;gap:12px;align-items:center;padding:12px 20px;border:1px solid #ffffff70;border-radius:40px;background:#181916dc;color:#fff;font:inherit;font-size:12px;cursor:pointer}
.gallery-error{position:absolute;inset:auto 20px 60px;z-index:5;padding:16px;background:#181916ed;color:#fff;font-size:12px;text-align:center}
.gallery-error button{display:block;margin:10px auto 0;color:#e5a91c;background:none;border:0;border-bottom:1px solid currentColor;font:inherit;cursor:pointer}
.gallery-toolbar{display:flex;align-items:center;gap:18px;padding:19px 0 16px;border-bottom:1px solid #ffffff21}
.gallery-counter{font-size:12px;font-variant-numeric:tabular-nums;letter-spacing:.06em;white-space:nowrap}
.gallery-counter b{font-weight:500}.gallery-counter>span{color:#aaa99f}
.gallery-fullscreen{display:inline-flex;align-items:center;justify-content:center;gap:7px;margin-left:auto;flex-shrink:0;padding:10px 12px;min-height:38px;border:1px solid #ffffff40;border-radius:24px;background:transparent;color:#f6f5ef;font:inherit;font-size:10px;cursor:pointer;transition:background .25s,border-color .25s}
.gallery-fullscreen svg{width:15px;height:15px;flex:none}.gallery-fullscreen:hover{background:#ffffff10;border-color:#ffffff80}.gallery-fullscreen:disabled{opacity:.5;cursor:wait}
.gallery-fullscreen[hidden],.gallery-fullscreen-note[hidden]{display:none}
.gallery-toolbar:has(.gallery-fullscreen:not([hidden])){gap:12px}
.gallery-toolbar:has(.gallery-fullscreen:not([hidden])) .gallery-instruction{display:none}
.gallery-fullscreen-note{font-size:11px;line-height:1.5;color:#d9d6c8;margin:12px 0 0}
.gallery-slide>video:fullscreen{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;background:#11120f}
.gallery-slide>video:-webkit-full-screen{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;background:#11120f}
.gallery-instruction{margin-left:auto;font-size:10px;color:#aaa99f}
.gallery-arrows{display:flex;gap:7px}
.gallery-arrows>button{width:37px;height:37px;display:grid;place-items:center;background:none;border:1px solid #ffffff40;color:inherit;border-radius:50%;font-size:19px;cursor:pointer;transition:background .25s,color .25s,transform .25s}
.gallery-arrows>button:hover{background:#f6f5ef;color:#181916;transform:translateX(2px)}
.gallery-arrows>button:first-child:hover{transform:translateX(-2px)}
.gallery-arrows>button:disabled{opacity:.25;cursor:default;transform:none}
.gallery-thumbnails{display:flex;gap:10px;overflow-x:auto;padding:17px 2px 2px;scrollbar-width:thin;scrollbar-color:#7777 transparent}
.gallery-thumb{flex:0 0 70px;height:64px;position:relative;border:1px solid #ffffff25;padding:0;background:#23241f;cursor:pointer;color:#fff;opacity:.55;transition:opacity .25s,border-color .25s,transform .3s}
.gallery-thumb img{width:100%;height:100%;object-fit:cover;pointer-events:none}
.gallery-thumb-number{position:absolute;inset:auto 0 0;background:linear-gradient(transparent,#000b);padding:12px 5px 4px;font-size:9px;text-align:left}
.gallery-thumb.is-current{opacity:1;border-color:#e5a91c;box-shadow:0 0 0 1px #e5a91c}
.gallery-thumb:hover{opacity:1;transform:translateY(-2px)}
.project-dialog-gallery .dialog-copy{padding:clamp(30px,4vw,58px);align-self:center}
.project-dialog-gallery .dialog-copy>.eyebrow{font-size:10px;color:#68695f;letter-spacing:.12em}
.project-dialog-gallery .dialog-copy h2{font-size:clamp(32px,3.1vw,48px);line-height:1.08;letter-spacing:-.045em;margin:26px 0}
.project-dialog-gallery .dialog-copy>p{font-size:14px;line-height:1.85}
.project-dialog-gallery .tag-list{gap:8px;margin:28px 0 36px}
.project-dialog-gallery .tag-list>span{font-size:10px;padding:7px 10px;border-color:#18191630;line-height:1.5}
.project-dialog-gallery .text-link{font-size:12px}
.project-dialog-gallery :focus-visible{outline:2px solid #b58015;outline-offset:4px}
.project-gallery :focus-visible{outline-color:#e5a91c}
.motion-paused .project-dialog-gallery,.motion-paused .project-dialog-gallery::backdrop{animation:none}
.motion-paused .gallery-slide,.motion-paused .gallery-thumb,.motion-paused .gallery-arrows>button{transition:none;transform:none}
@keyframes project-arrive{from{opacity:0;transform:translateY(24px) scale(.985)}to{opacity:1;transform:none}}
@keyframes project-leave{to{opacity:0;transform:translateY(12px) scale(.99)}}
@keyframes project-backdrop{from{opacity:0}to{opacity:1}}
@media(max-width:900px){.project-dialog-gallery{width:calc(100% - 32px)}.gallery-layout{grid-template-columns:1.1fr 1fr}.project-gallery{padding:16px}.project-dialog-gallery .dialog-copy{padding:28px}.gallery-instruction{display:none}.gallery-arrows{margin-left:auto}}
@media(max-width:680px){.project-dialog-gallery{width:calc(100% - 16px);max-height:96dvh}.gallery-layout{grid-template-columns:1fr}.project-dialog-bar{padding:10px 16px}.project-dialog-bar>span{font-size:9px}.project-gallery{padding:12px 16px 18px}.gallery-stage{height:55svh;min-height:265px;max-height:560px}.gallery-toolbar{padding:12px 0}.gallery-instruction{display:block;font-size:9px}.gallery-arrows{margin-left:0}.gallery-thumbnails{padding-top:14px}.gallery-thumb{height:54px;flex-basis:58px}.project-dialog-gallery .dialog-copy{padding:32px 24px 40px}.project-dialog-gallery .dialog-copy h2{font-size:36px}.project-dialog-gallery .tag-list{margin:24px 0}.gallery-slide{transform:translateX(calc(var(--gallery-direction,1)*18px))}}
@media(prefers-reduced-motion:reduce){.project-dialog-gallery[open],.project-dialog-gallery[open]::backdrop{animation:none}.gallery-slide,.gallery-thumb,.gallery-arrows>button,.project-dialog-bar .dialog-close{transition:none;transform:none}}
