.glb { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #030303; opacity: 0; transition: opacity .25s; }
.glb::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url("../tex/grunge-dark.webp") 50% 50% / cover; opacity: .3; pointer-events: none; }
.glb.open { opacity: 1; }
.glb[hidden] { display: none; }
.glb__stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 72px 110px 8px; touch-action: pinch-zoom; user-select: none; }
.glb__img { display: block; max-width: 100%; max-height: calc(100svh - 250px); width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); -webkit-user-drag: none; }
.glb__cap { display: grid; justify-items: center; gap: 4px; padding: 14px 20px 24px; text-align: center; }
.glb__k { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.glb__k:empty { display: none; }
.glb__t { margin: 0; font-family: var(--head); font-weight: 700; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.15; text-transform: uppercase; color: #fff; text-wrap: balance; max-width: 40ch; }
.glb__n { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #8a8a8a; }
:where(.glb button) { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; color: #fff; }
.glb__x { position: absolute; top: 14px; right: 14px; width: 52px; height: 52px; border: 1px solid #3a3a3a; background: #000; transition: border-color .2s, color .2s; }
.glb__nav { position: absolute; top: calc(50% - 60px); width: 60px; height: 76px; border: 1px solid #3a3a3a; background: #000; transition: border-color .2s, color .2s, transform .2s; }
.glb__nav--prev { left: 24px; } .glb__nav--next { right: 24px; }
.glb__x:hover, .glb__nav:hover { border-color: var(--accent); color: var(--accent); }
.glb__nav--prev:hover { transform: translateX(-3px); } .glb__nav--next:hover { transform: translateX(3px); }
.glb button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.glb svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.glb button[hidden] { display: none; }
.glb a.glb__cta { margin-top: 12px; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px; font-size: 13px; letter-spacing: .12em; }
.glb__cta svg { width: 16px; height: 16px; stroke-width: 2.2; }
.glb__cta:hover svg { transform: translateX(3px); } .glb__cta svg { transition: transform .2s; }

@media (max-width: 767px), (max-height: 500px) and (max-width: 1023px) {
  .glb__stage { padding: 62px 0 0; }
  .glb__img { max-height: calc(100svh - 236px); }
  .glb__cap { position: relative; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); gap: 2px; }
  .glb__k, .glb__t, .glb__n { padding: 0 60px; }
  .glb__nav { top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); width: 48px; height: 48px; }
  .glb__nav--prev { left: 10px; } .glb__nav--next { right: 10px; }
  .glb__x { top: 8px; right: 8px; }
  .glb__t { font-size: 16px; }
  .glb a.glb__cta { width: 100%; justify-content: center; margin-top: 10px; min-height: 50px; }
}
@media (max-height: 500px) and (max-width: 1023px) { .glb__stage { padding: 10px 80px 0; } .glb__img { max-height: calc(100svh - 150px); } .glb__cap { padding-top: 6px; padding-bottom: 10px; } .glb a.glb__cta { width: auto; min-height: 42px; margin-top: 6px; } }
@media (prefers-reduced-motion: reduce) { .glb, .glb__nav, .glb__cta svg { transition: none; } }
