/* Gript -- Gallery */
.page-hero{padding:var(--hero-pad-top) var(--hero-pad-x) 16px;text-align:center}
.page-hero h1{font-family:var(--font);font-size:var(--hero-h1-size);font-weight:700;letter-spacing:var(--hero-h1-tracking);line-height:var(--hero-h1-leading);margin-bottom:16px}
.page-hero p{font-size:var(--hero-sub-size);color:var(--ink-2);max-width:560px;margin:0 auto;line-height:var(--hero-sub-leading)}
/* The hero already opens the page, so the gallery does not need its full section padding on top. */
.page-hero + .wld{padding-top:clamp(24px,4vw,48px)}

/* ═══ SAME TOOL, DIFFERENT WORLDS — gallery (namespaced wld-) ═══ */
:root{
  --wld-stage-1:#eef0f3; --wld-stage-2:#e6e8ee;
  --wld-sh-card:0 2px 4px rgba(0,0,0,0.04), 0 12px 28px rgba(17,17,17,0.07);
  --wld-sh-card-hover:0 6px 14px rgba(0,0,0,0.06), 0 22px 48px rgba(17,17,17,0.12);
}
.wld { background: var(--bg); padding: clamp(56px,8vw,96px) 0; }
.wld-inner { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px,5.6vw,48px); }
.wld-head { text-align: center; margin-bottom: 48px; }
.wld-head h2 { font-family: var(--font); font-size: clamp(24px,3vw,36px); font-weight: 700; letter-spacing: -1.5px; margin-bottom: 10px; }
.wld-head p { color: var(--ink-2); font-size: clamp(14px,1.2vw,16px); max-width: 560px; margin: 0 auto; }
.wld-group { margin-bottom: 44px; }
.wld-group:last-child { margin-bottom: 0; }
.wld-group-label { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.wld-group-label h3 { font-family: var(--font); font-size: 18px; font-weight: 600; letter-spacing: -0.4px; }
.wld-group-label span { color: var(--ink-3); font-size: 13px; }
.wld-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.wld-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform .22s var(--ease), box-shadow .22s var(--ease); text-align: left; padding: 0; font-family: inherit; width: 100%; display: block; box-shadow: var(--wld-sh-card); }
.wld-card:hover { transform: translateY(-4px); box-shadow: var(--wld-sh-card-hover); }
.wld-card:active { transform: translateY(-2px) scale(0.998); }
.wld-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wld-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); }
.wld-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; transition: transform .45s var(--ease); }
.wld-card:hover .wld-thumb img { transform: scale(1.05); }
.wld-name { padding: 12px 14px; font-family: var(--font); font-weight: 600; font-size: 14px; letter-spacing: -0.3px; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wld-name svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.wld-lb { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: clamp(16px,3vw,40px); z-index: 9999; background: rgba(17,17,17,0.80); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .62s var(--ease), visibility 0s linear .62s; }
.wld-lb.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .62s var(--ease), visibility 0s linear 0s; }
.wld-frame { max-width: 1500px; width: 100%; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.35); transform: none; opacity: 0; transition: transform .62s var(--ease), opacity .42s var(--ease); will-change: transform,opacity; }
.wld-lb.open .wld-frame { transform: none; opacity: 1; }
.wld-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.wld-dot { width: 9px; height: 9px; border-radius: 50%; }
.wld-dot:nth-child(1) { background: #ff5f57; } .wld-dot:nth-child(2) { background: #febc2e; } .wld-dot:nth-child(3) { background: #28c840; }
.wld-title { flex: 1; margin-left: 10px; font-family: var(--font); font-weight: 600; font-size: 13px; color: var(--ink); }
.wld-count { font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--ink-3); margin-right: 10px; white-space: nowrap; }
.wld-close { border: none; background: none; cursor: pointer; color: var(--ink-2); font-size: 22px; line-height: 1; padding: 2px 8px; border-radius: 6px; }
.wld-close:hover { background: var(--line); color: var(--ink); }
.wld-frame img { display: block; width: 100%; height: auto; max-height: calc(92vh - 100px); object-fit: contain; transition: transform .35s var(--ease); cursor: zoom-in; }
.wld-frame img.wld-zoomed { transform: scale(1.9); cursor: zoom-out; }
.wld-cap { padding: 13px 18px; border-top: 1px solid var(--line); font-family: var(--body); font-size: 13px; color: var(--ink-2); }
.wld-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: rgba(17,17,17,0.55); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s var(--ease), transform .2s var(--ease); }
.wld-nav:hover { background: rgba(17,17,17,0.85); transform: translateY(-50%) scale(1.06); }
.wld-nav svg { width: 22px; height: 22px; }
.wld-prev { left: 24px; } .wld-next { right: 24px; }
.wld-close:focus-visible, .wld-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 860px) { .wld-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .wld-grid { grid-template-columns: 1fr; } .wld-nav { width: 40px; height: 40px; } .wld-prev { left: 8px; } .wld-next { right: 8px; } }
@media (prefers-reduced-motion: reduce) { .wld-card, .wld-lb, .wld-frame, .wld-thumb img { transition: none !important; } .wld-frame { transform: none !important; opacity: 1 !important; } }
