/* spin3d.css -- the sheet the 3D piece opens into. 15 Aug 2026.
   Deliberately theme-neutral: this loads on a navy Fundraising page, a cream
   Make It Yours page and a walnut Ready-Made shelf, so it brings its own
   colours rather than inheriting eight different sets of variables. */

.sp3{position:fixed;inset:0;z-index:9000;display:none}
.sp3.on{display:block}

.sp3-back{position:absolute;inset:0;background:rgba(12,9,6,.82);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  animation:sp3fade .2s ease-out}
@keyframes sp3fade{from{opacity:0}to{opacity:1}}

.sp3-card{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:min(94vw,620px);border-radius:20px;padding:14px 14px 18px;
  background:linear-gradient(180deg,#221a12,#171009);
  box-shadow:0 30px 70px rgba(0,0,0,.6);
  animation:sp3rise .26s cubic-bezier(.22,.61,.36,1)}
@keyframes sp3rise{from{opacity:0;transform:translate(-50%,-46%) scale(.96)}
                   to{opacity:1;transform:translate(-50%,-50%) scale(1)}}

/* HIS ASK, LITERALLY: "bigger, like half the screen". 62vh leaves the page it
   came from visible around the edges, so it reads as a look rather than a
   place you have navigated to. */
.sp3-stage{height:62vh;max-height:560px;min-height:280px;
  border-radius:14px;overflow:hidden;
  background:radial-gradient(120% 90% at 50% 8%,#3a2c1d,#141009 70%)}
.sp3-stage model-viewer{width:100%;height:100%;background:transparent;
  --poster-color:transparent;display:block}

.sp3-x{position:absolute;right:12px;top:12px;z-index:2;
  width:46px;height:46px;border:0;border-radius:50%;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.12);color:#f4e6c8}
@media (hover:hover){.sp3-x:hover{background:rgba(255,255,255,.2)}}
.sp3-x:focus-visible{outline:2px solid #d9a85c;outline-offset:2px}
.sp3-x svg{width:20px;height:20px}

.sp3-name{margin:12px 0 0;text-align:center;color:#f4e6c8;
  font-weight:800;font-size:1.02rem;font-style:italic}
.sp3-hint{margin:5px 0 0;text-align:center;color:#a89377;
  font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;font-weight:700}

@media (prefers-reduced-motion:reduce){
  .sp3-back,.sp3-card{animation:none}
}
@media (max-width:360px){
  .sp3-card{width:96vw;padding:11px 11px 15px}
  .sp3-stage{height:56vh}
}
