/* Styling for the three CSS-3D photo walls. Local only; no external assets. */
.wall3d{position:fixed;inset:0;z-index:120;display:flex;flex-direction:column;overflow:hidden;
  background:radial-gradient(ellipse at 50% 35%,#2b2130,#171320 62%,#100d16);
  color:#f3ece4;outline:none}
.wall3d[hidden]{display:none}
body.wall3d-open{overflow:hidden}
.wall3d-scene{position:absolute;inset:0;perspective:1200px;perspective-origin:50% 46%;touch-action:none;cursor:grab}
.wall3d.is-dragging .wall3d-scene{cursor:grabbing}
.wall3d-cloud{position:absolute;left:50%;top:50%;width:0;height:0;transform-style:preserve-3d;will-change:transform;transform:translateZ(0)}
.wall3d-card{position:absolute;left:0;top:0;width:230px;height:150px;margin:-75px 0 0 -115px;padding:0;border:0;border-radius:10px;
  overflow:hidden;background:#221b28;cursor:pointer;transform-style:preserve-3d;
  box-shadow:0 14px 38px #00000073,0 0 0 1px #ffffff17;
  transition:opacity .18s linear,filter .18s linear;
  backface-visibility:hidden;-webkit-backface-visibility:hidden}
.wall3d-card img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-drag:none}
.wall3d-card::after{content:"";position:absolute;inset:0;border-radius:10px;box-shadow:inset 0 0 0 1px #ffffff1f;pointer-events:none}
.wall3d-card:hover{box-shadow:0 18px 48px #000000a6,0 0 0 2px #f0cfa6b8}
.wall3d[data-kind="cylinder"] .wall3d-card{width:186px;height:124px;margin:-62px 0 0 -93px}
.wall3d[data-kind="spiral"] .wall3d-card{width:168px;height:112px;margin:-56px 0 0 -84px}
/* Sphere packs many cards onto one closed surface, so each card is sized to touch its
   neighbours: the shell must read as solid, not as separated floating tiles. */
.wall3d[data-kind="sphere"] .wall3d-card{width:86px;height:58px;margin:-29px 0 0 -43px}

.wall3d-top{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;pointer-events:none}
.wall3d-top>*{pointer-events:auto}
.wall3d-title{display:flex;flex-direction:column;gap:4px;min-width:0}
.wall3d-kicker{font-size:9px;letter-spacing:2.4px;color:#b09b93}
.wall3d-title strong{font-size:17px;font-weight:500;font-family:"Noto Serif SC","Songti SC","SimSun",serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wall3d-modes{display:flex;gap:3px;padding:3px;border-radius:999px;background:#ffffff12;border:1px solid #ffffff1f}
.wall3d-mode{border:0;background:transparent;color:#cdc0bb;font-size:12px;padding:7px 14px;border-radius:999px;cursor:pointer;font-family:inherit;white-space:nowrap}
.wall3d-mode:hover{color:#fff;background:#ffffff14}
.wall3d-mode.active{background:#f0d5b8;color:#3b2b25;font-weight:500}
.wall3d-close{background:#ffffff1a;border-color:#ffffff2b;color:#fff}
.wall3d-close:hover{background:#ffffff2e}
.wall3d-hint{position:relative;z-index:3;align-self:center;margin-top:-6px;font-size:11px;color:#a2918d;background:#00000033;padding:6px 14px;border-radius:999px;pointer-events:none}
.wall3d-caption{position:relative;z-index:3;margin-top:auto;display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:18px 26px 14px;background:linear-gradient(transparent,#100d16d9 60%);pointer-events:none}
.wall3d-caption strong{font-size:14px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wall3d-caption span{font-size:11px;color:#a2918d;white-space:nowrap}
.wall3d-bar{position:relative;z-index:3;height:2px;background:#ffffff1c}
.wall3d-bar span{display:block;height:100%;width:0;background:#e7c39a}
.wall3d *:focus-visible{outline:2px solid #e7c39a;outline-offset:3px}

@media(max-width:760px){
  .wall3d-top{flex-wrap:wrap;padding:14px 14px 8px;gap:10px}
  .wall3d-modes{order:3;width:100%;justify-content:space-between}
  .wall3d-mode{flex:1;padding:8px 6px;font-size:11px}
  .wall3d-title strong{font-size:15px}
  .wall3d-hint{font-size:10px;margin-top:2px;padding:5px 12px;max-width:calc(100% - 28px);text-align:center}
  .wall3d-card{width:150px;height:100px;margin:-50px 0 0 -75px}
  .wall3d[data-kind="cylinder"] .wall3d-card{width:128px;height:86px;margin:-43px 0 0 -64px}
  .wall3d[data-kind="spiral"] .wall3d-card{width:116px;height:78px;margin:-39px 0 0 -58px}
  .wall3d-caption{padding:14px 16px 12px}
  .wall3d-scene{perspective:900px}
}
@media(prefers-reduced-motion:reduce){
  .wall3d-card{transition:none}
}
