/* Approved dark prototype, scoped to the dark homepage. */
.photo-space-page{--space-page:#20221f;--space-paper:#30332e;--space-panel:#333630;--space-ink:#efeee8;--space-muted:#b8bcb2;--space-line:#454940;--space-relay:#bec8b0;background:var(--space-page);color:var(--space-ink);color-scheme:dark}
.photo-space-page .site-header,.photo-space-page>footer,.photo-space-page .mobile-menu nav{background:var(--space-page);color:var(--space-ink);border-color:var(--space-line)}
.photo-space-page .site-header a,.photo-space-page .site-header summary,.photo-space-page .mobile-menu button,.photo-space-page>footer a,.photo-space-page>footer p,.photo-space-page>footer small{color:var(--space-ink)}
.photo-space-page .brand img,.photo-space-page>footer img{filter:none;opacity:1;mix-blend-mode:normal}
.photo-space-page>main{padding:0;max-width:none;margin:0}.photo-space-page>footer{margin-top:0;border-top:1px solid var(--space-line)}
.photo-space-page .preview-banner{background:var(--space-panel);color:var(--space-muted);border-color:var(--space-line)}
.photo-space-page :focus-visible{outline:2px solid var(--space-relay);outline-offset:4px}
#photo-space{--space-available:440px;max-width:1440px;margin:auto;position:relative;font-family:-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN','Yu Gothic',sans-serif;line-height:1.7;color:var(--space-ink)}
#photo-space *{box-sizing:border-box}#photo-space [hidden]{display:none!important}
#photo-space h1,#photo-space h2,#photo-space p{margin:0}#photo-space a{color:inherit}#photo-space button,#photo-space input,#photo-space select{font:inherit;color:inherit;max-width:100%}#photo-space button{cursor:pointer;border-radius:0;background:transparent;border:1px solid var(--space-line);min-height:44px;padding:8px 12px}#photo-space button:disabled{opacity:.4;cursor:default}#photo-space img{display:block;max-width:100%}
#photo-space h1,#photo-space h2,#photo-space .selected-line,#photo-space .relay-reason{font-family:'Hiragino Mincho ProN','Yu Mincho',YuMincho,Georgia,serif;font-weight:400;word-break:normal;overflow-wrap:anywhere}
#photo-space .space-heading{display:flex;justify-content:space-between;gap:14px;padding:16px 24px 12px;align-items:start}
#photo-space .room-kicker{font-size:11px;letter-spacing:.13em;color:var(--space-muted)}#photo-space h1{font-size:26px;line-height:1.5;margin-top:6px}#photo-space .always-list{font-size:12px;min-height:44px;display:inline-flex;align-items:center;gap:8px;flex-shrink:0}
#photo-space .space-filters{padding:0 24px 10px;font-size:13px}#photo-space .space-filters>summary{min-height:44px;cursor:pointer;width:fit-content;display:list-item}#photo-space .space-filters form{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px 0}#photo-space .space-filters label{min-width:0}#photo-space .space-filters select,#photo-space .space-filters input{display:block;width:100%;min-height:44px;background:var(--space-panel);border:1px solid var(--space-line);font-size:16px;padding:6px}#photo-space .space-filters a{align-self:center}
#photo-space .exploration{display:none;margin-inline:16px}#photo-space.js:not(.is-static) .exploration{display:block}
/* Draw the boundary inside the same clipping/gesture element, without shifting projection coordinates. */
#photo-space .photo-field{position:relative;height:var(--space-available);min-height:280px;border-radius:6px;outline:1px solid #555b50;outline-offset:-1px;overflow:hidden;overflow:clip;perspective:840px;perspective-origin:50% 50%;touch-action:auto;cursor:grab;user-select:none;-webkit-user-select:none;background:var(--space-paper)}#photo-space .photo-field.is-dragging{cursor:grabbing}
#photo-space .photo-plane{position:absolute;inset:0;transform-style:preserve-3d;transform:translateZ(0);z-index:2}
#photo-space .photo-card{position:absolute;left:50%;top:50%;display:block;background:#d7d8d0;padding:2px;box-shadow:0 4px 14px #00000014,0 1px 3px #00000026;border-radius:1px;transform-origin:50% 50%;backface-visibility:hidden;touch-action:auto;cursor:inherit;-webkit-user-drag:none;will-change:transform}
#photo-space .photo-card img{width:100%;height:100%;object-fit:contain;pointer-events:none;background:#333630;-webkit-user-drag:none}
#photo-space .photo-card.is-selected,#photo-space .photo-card:focus-visible{outline:2px solid var(--space-relay);outline-offset:4px}#photo-space .photo-card.is-related{outline:1px solid #909a86;outline-offset:4px}#photo-space .photo-card.is-distant{opacity:.16;transition:opacity 180ms ease}
#photo-space .relay-threads{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}#photo-space .relay-threads path{fill:none;stroke:var(--space-relay);stroke-width:1.2;vector-effect:non-scaling-stroke}#photo-space .thread-hidden{opacity:0}#photo-space .thread-active{opacity:.85}
#photo-space .space-tools{position:absolute;right:16px;bottom:12px;z-index:10;display:flex;background:var(--space-panel);border:1px solid var(--space-line)}#photo-space .space-tools button{width:44px;height:44px;border:0;background:transparent;font-size:21px;font-weight:300;line-height:1;touch-action:manipulation}#photo-space .space-tools button+button{border-left:1px solid var(--space-line)}
#photo-space .space-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding:8px 24px 18px;font-size:12px;color:var(--space-muted)}#photo-space .space-controls>p{flex-basis:50%}#photo-space .space-controls button{border:0;font-size:12px;padding:0}#photo-space .motion-setting{display:none;align-items:center;gap:8px;min-height:44px;font-size:14px}#photo-space.js .motion-setting{display:flex}#photo-space .motion-setting input{width:18px;height:18px;accent-color:#829078}#photo-space .space-more{min-height:44px;display:flex;align-items:center}
#photo-space .person-dialog{position:relative;width:calc(100% - 28px);margin:0 14px 12px;padding:14px 18px;border:1px solid var(--space-line);background:var(--space-panel);color:var(--space-ink);box-shadow:0 8px 24px #0000001a;max-height:min(400px,50svh);overflow-y:auto;overscroll-behavior:contain;z-index:12;scrollbar-gutter:stable}
#photo-space .close-person{position:absolute;right:4px;top:4px;width:44px;height:44px;display:grid;place-items:center;font-size:26px;font-weight:300;border:0;padding:0}
#photo-space .selected-photo{display:none}#photo-space .selected-copy{padding-right:30px;display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 18px;min-width:0}#photo-space .selected-copy .person-meta{flex-basis:100%}#photo-space .person-meta{font-size:12px;line-height:1.7;color:var(--space-muted);overflow-wrap:anywhere}#photo-space .selected-copy h2{font-size:24px;line-height:1.5;min-width:0;max-width:100%}#photo-space .know-person{display:inline-flex;align-items:center;min-height:44px;font-size:13px;text-decoration:underline;text-underline-offset:5px}
#photo-space .selected-line{font-size:16px;line-height:1.85;margin:8px 0 0}#photo-space .relay-intro{border-top:1px solid var(--space-line);margin-top:8px;padding-top:8px}#photo-space .relay-directions{display:flex;gap:16px;border-bottom:1px solid var(--space-line)}#photo-space .relay-directions button{border:0;border-bottom:2px solid transparent;padding:0 1px;font-size:13px;color:var(--space-muted)}#photo-space .relay-directions button[aria-pressed=true]{color:var(--space-ink);border-bottom-color:var(--space-relay)}
#photo-space .relay-people{display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:10px 3px 7px;touch-action:pan-x pan-y}
#photo-space .relay-person-choice{flex:0 0 82px;border:0;padding:0 2px;text-align:left;scroll-snap-align:start}#photo-space .relay-person-choice img{width:44px;height:52px;object-fit:contain;border:2px solid transparent}#photo-space .relay-person-choice[aria-pressed=true] img{border-color:var(--space-relay);outline:1px solid var(--space-relay);outline-offset:2px}#photo-space .relay-person-choice span{display:block;font-size:12px;line-height:1.5;margin-top:5px;overflow-wrap:anywhere}
#photo-space .relay-author{font-size:12px;color:var(--space-muted);margin:4px 0 5px;overflow-wrap:anywhere}#photo-space .relay-reason{font-size:14px;line-height:1.8;white-space:pre-wrap}#photo-space .relay-meet,#photo-space .relay-back{border:0;text-align:left;text-decoration:underline;text-underline-offset:4px;min-height:44px;font-size:14px;padding:3px 0;overflow-wrap:anywhere}#photo-space .relay-back{padding-right:32px;font-size:12px;color:var(--space-muted)}#photo-space .outside-region{font-size:12px;color:var(--space-muted);padding-right:32px}#photo-space .relay-empty{font-size:14px;padding:6px 0 12px;color:var(--space-muted)}#photo-space small{display:block;font-size:11px;color:var(--space-muted)}
#photo-space.has-selection:not(.is-static) .intro,#photo-space.has-selection:not(.is-static) .space-filters{display:none}#photo-space.has-selection:not(.is-static) .space-heading{padding-block:0;justify-content:flex-end}#photo-space.has-selection:not(.is-static) .photo-field{height:clamp(150px,24svh,200px);min-height:150px}#photo-space.has-selection .space-controls>p{display:none}
#photo-space .space-static{padding:24px}#photo-space .static-select{display:none;font-size:13px}#photo-space.js .static-select{display:block}#photo-space.js:not(.is-static) .space-static{display:none}#photo-space.is-static .exploration,#photo-space:not(.js) .space-controls{display:none}#photo-space .space-empty{padding:30px 24px}#photo-space .space-empty h2{font-size:26px;margin-bottom:24px}
#photo-space .space-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:700px){#photo-space .space-heading,#photo-space .space-filters,#photo-space .space-controls{padding-inline:40px}#photo-space h1{font-size:32px}#photo-space h1 br{display:none}#photo-space .space-static{padding:40px}#photo-space .person-dialog{position:absolute;top:64px;right:30px;width:380px;max-height:calc(100svh - 200px)}#photo-space.has-selection:not(.is-static) .photo-field{height:max(540px,var(--space-available))}#photo-space.has-selection .photo-field{padding-right:390px}#photo-space .space-filters form{grid-template-columns:repeat(4,minmax(0,1fr))}#photo-space.is-static .person-dialog{position:relative;margin-left:auto;inset:auto}}
@media(max-width:350px){#photo-space .space-heading{padding-inline:18px;gap:10px}#photo-space h1{font-size:24px}#photo-space .always-list{font-size:11px}#photo-space .space-controls{padding-inline:18px}#photo-space .person-dialog{padding-inline:14px}#photo-space .space-filters form{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#photo-space *,#photo-space *:before,#photo-space *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
#photo-space.is-static *,#photo-space.is-static *:before,#photo-space.is-static *:after{animation:none!important;transition:none!important}

@media(min-width:700px) and (max-width:1099px){#photo-space .person-dialog{position:relative;inset:auto;width:calc(100% - 48px);max-height:50svh;margin:0 24px 12px}#photo-space.has-selection:not(.is-static) .photo-field{height:320px}}

#photo-space .space-static-image{display:none}#photo-space.js .space-static-image{display:block}

/* Controls stay outside the clipped gesture surface. */
#photo-space .space-heading{display:block}
#photo-space .space-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:0 12px;padding:0 24px 12px}
#photo-space .space-views{grid-column:2;grid-row:1;display:flex;gap:0;align-self:start;white-space:nowrap;border:1px solid var(--space-line);border-radius:3px}
#photo-space .space-views a{min-height:44px;min-width:52px;padding:8px 12px;display:grid;place-items:center;font-size:13px;text-decoration:none;color:var(--space-muted)}
#photo-space .space-views a[aria-current=true]{background:#333630;color:var(--space-ink);box-shadow:inset 0 -2px #bec8b0}
#photo-space .space-filters{grid-column:1/-1;grid-row:1;padding:0;min-width:0}
#photo-space .space-filters>summary{max-width:calc(100% - var(--space-view-width,130px));min-height:46px;font-size:13px;line-height:1.5;display:flex;align-items:center;gap:6px;list-style:none}
#photo-space .space-filters>summary:before{content:'＋';flex:none}#photo-space .space-filters[open]>summary:before{content:'−'}
#photo-space .space-filters>summary::-webkit-details-marker{display:none}
#photo-space .space-views{z-index:1}
#photo-space .space-pagination{padding:12px 24px 28px}#photo-space.js:not(.is-static) .space-pagination{display:none}
#photo-space.is-static .space-controls{display:none}
#photo-space.has-selection:not(.is-static) .space-toolbar{display:none}
.photo-space-page .official-instagram{position:fixed;top:var(--official-instagram-top,250px);right:max(28px,calc((100vw - 1440px)/2 + 28px));width:48px;height:48px;display:grid;place-items:center;padding:10px;background:#20221fee;border:1px solid #555b50;border-radius:6px;z-index:8;touch-action:auto}
.photo-space-page .official-instagram img{display:block;width:28px;height:28px;max-width:none;filter:none;opacity:1;pointer-events:none}
.photo-space-page:has(.mobile-menu[open]) .official-instagram,#photo-space.has-selection~.official-instagram{visibility:hidden;pointer-events:none}
@media(min-width:700px){#photo-space .space-toolbar,#photo-space .space-pagination{padding-inline:40px}}
@media(max-width:350px){#photo-space .space-toolbar{padding-inline:18px;gap:0 8px}#photo-space .space-views a{min-width:48px;padding-inline:10px}#photo-space .space-filters>summary{max-width:calc(100% - var(--space-view-width,118px));font-size:12px}}

/* "いま、となりで。" stays secondary to the photo space. */
.photo-space-page .activity-home{max-width:1180px;margin:0 auto;color:var(--space-ink);border-top:1px solid var(--space-line)}
.photo-space-page .activity-home-heading p,.photo-space-page .activity-meta,.photo-space-page .activity-person{color:var(--space-muted)}
.photo-space-page .activity-card{border-color:var(--space-line)}
.photo-space-page .activity-card a{color:var(--space-ink)}
.photo-space-page .activity-card-image img{background:var(--space-panel)}

/* Discreet event entry next to the photo-space filters, before the photo field. */
#photo-space .space-updates-entry{padding:0 24px 12px;font-size:12px;color:var(--space-muted);text-align:right}
#photo-space .space-updates-entry a{display:inline-flex;align-items:center;min-height:40px;gap:8px;color:var(--space-ink);text-decoration:none;border-bottom:1px solid var(--space-line)}
#photo-space .space-updates-entry a:hover{border-color:var(--space-ink)}
#photo-space.has-selection:not(.is-static) .space-updates-entry{display:none}
.photo-space-page .activity-more a{color:var(--space-ink);border-color:var(--space-line)}
@media(min-width:700px){#photo-space .space-updates-entry{padding-inline:40px}}
@media(max-width:350px){#photo-space .space-updates-entry{padding-inline:18px}}
