/* WOORIM — 공간 제안 */
.space-tabs { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); transition: top .35s var(--ease); }
body:has(.site-top:not(.is-hidden)) .space-tabs { top: var(--top-h, 0px); }
.space-tabs .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.space-tabs .container::-webkit-scrollbar { display: none; }
.space-tabs button { flex: none; height: 36px; padding: 0 16px; border: 1px solid var(--line); font-size: 14px; }
.space-tabs button:hover { border-color: var(--ink); }
.space-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.space-tabs button span { font-size: 11px; color: var(--muted); margin-left: 4px; }
.space-tabs button[aria-selected="true"] span { color: #bdbdbd; }

.gallery-sec { padding: 24px 0 96px; }
.g-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 8px; }
@media (min-width: 900px) { .g-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 16px; } }
.g-item.is-wide { grid-column: span 2; }
.g-item button { display: block; width: 100%; text-align: left; }
.g-img { position: relative; overflow: hidden; background: var(--surface); aspect-ratio: 4 / 5; }
.g-item.is-wide .g-img { aspect-ratio: 8 / 5; } /* 2칸 너비 = 옆 세로 사진과 같은 높이 */
.g-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-item button:hover .g-img img { transform: scale(1.03); }
.g-img .tag { position: absolute; left: 10px; top: 10px; }
.g-space { font-size: 12px; color: var(--accent); font-weight: 500; margin-top: 12px; }
.g-title { font-size: 15px; font-weight: 400; margin-top: 2px; }
.g-meta { font-size: 13px; color: var(--muted); }
.g-item[hidden] { display: none; }
.g-item { animation: gIn .5s var(--ease) both; }
@keyframes gIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* 크게 보기 */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox[open] { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; }
.lb-figure { height: 100%; display: grid; grid-template-rows: 1fr auto; min-height: 0; padding: 56px 0 16px; }
.lb-figure img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.lb-cap { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 16px; }
.lb-space { font-size: 12px; color: var(--accent); font-weight: 500; }
.lb-title { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.lb-meta { font-size: 13px; color: var(--muted); }
.lb-close { position: absolute; right: 12px; top: 8px; width: 44px; height: 44px; font-size: 30px; font-weight: 300; z-index: 2; }
.lb-nav { width: 56px; height: 56px; font-size: 22px; }
.lb-nav:hover, .lb-close:hover { color: var(--accent); }
@media (max-width: 599px) {
  .lightbox[open] { grid-template-columns: 40px 1fr 40px; }
  .lb-nav { width: 40px; }
  .lb-cap { flex-direction: column; align-items: flex-start; }
}
