:root{
  --glb-ink: #E9E9E9;
  --glb-silver: #C0C0C0;
  --glb-accent: #B4CF32;
}

body.glb-open{ overflow: hidden; }

.glb{
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  padding: clamp(10px, 3vw, 24px);
  background: rgba(6,8,12,.78);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.glb.is-open{ opacity: 1; visibility: visible; }

.glb__stage{
  position: relative;
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  border-radius: 16px;
  background: rgba(12,14,18,.6);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 48px rgba(0,0,0,.6);
  overflow: hidden;
}

.glb__img{
  display: block;
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  transform: scale(.985);
  opacity: .0;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .28s ease;
}
.glb.is-open .glb__img{
  transform: scale(1);
  opacity: 1;
}

.glb__cap{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  font-weight: 700; font-size: 14px; line-height: 1.5;
  color: var(--glb-silver);
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55));
}

.glb__close{
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(16,18,22,.7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--glb-ink);
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}
.glb__close:hover{ transform: translateY(-1px); filter: brightness(1.06); }
.glb__close svg{ width: 20px; height: 20px; }
.glb__close svg *{
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.glb__back{ position: absolute; inset: 0; }
.glb__stage{ pointer-events: auto; }
