/* ============================================================
   부서별 갤러리 — 사용자(공개) 화면 전용 스타일
   planreq6 부서갤러리 · devplan8 part002
   디자인 원본(designGuide/_4_yfgschool_gallery/public/gallery-v2.html)의
   레이아웃 구성만 차용 — 아이보리 배경·그레인·듀오톤은 사용하지 않고
   기존 사이트 화이트 배경 + 블루(#0066ff) 톤으로 통일한다.
   ============================================================ */

.gal-page {
  --gal-blue: #0066ff;
  --gal-blue-dark: #0052cc;
  --gal-blue-soft: #eaf1ff;
  --gal-ink: #0f172a;
  --gal-ink-soft: #334155;
  --gal-muted: #64748b;
  --gal-line: #e2e8f0;
  --gal-line-strong: #cbd5e1;
  --gal-amber: #e0982f;
  background: #ffffff;
  color: var(--gal-ink);
}

/* 본문 링크만 글자색 상속. 버튼·칩·탭·Tailwind 색상 유틸(text-*)이 붙은 링크는 자기 색을 유지.
   :where() 로 감싸 특이도를 기존(0,1,1)과 동일하게 유지 — 그래야 .gal-subnav .gal-tabs a 등
   (0,2,1) 기존 규칙이 계속 우선한다. */
.gal-page a:where(:not([class*="gal-btn"], [class*="gal-pilltab"], [class*="gal-tagchip"], [class*="text-"])) { color: inherit; }
.gal-page .gal-link { color: var(--gal-blue); }
.gal-page .gal-link:hover { color: var(--gal-blue-dark); }

/* ── 공용 ── */
.gal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gal-blue);
  text-transform: uppercase;
}
.gal-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* 버튼 글자색 고정: 전역/상위 규칙(.gal-page a 등)에 덮이지 않도록 특이도 한 단계 상향.
   주의: 아래 각 .gal-btn-*:hover 규칙(0,2,0)보다 반드시 위에 둘 것(같은 특이도에서 뒤에 오는 hover가 이겨야 함). */
.gal-page .gal-btn-fill,
.gal-page .gal-btn-blue { color: #fff; }
.gal-page .gal-btn-line { color: var(--gal-ink); }

.gal-btn-fill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: var(--gal-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.gal-btn-fill:hover { background: var(--gal-blue); color: #fff; transform: translateY(-1px); }

.gal-btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--gal-line-strong);
  background: transparent;
  color: var(--gal-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.gal-btn-line:hover { border-color: var(--gal-blue); color: var(--gal-blue); }

.gal-btn-blue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: var(--gal-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.gal-btn-blue:hover { background: var(--gal-blue-dark); }

/* ── 서브내비 ── */
.gal-subnav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  /* 배경은 풀블리드, 내용은 헤더 컨테이너(1280px)와 동일하게 중앙 정렬 */
  padding: 14px max(24px, calc((100% - 1232px) / 2));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gal-line);
}
.gal-subnav .gal-tabs { display: inline-flex; gap: 2px; padding: 3px; background: #f1f5f9; border-radius: 999px; }
.gal-subnav .gal-tabs a {
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #475569; /* slate-600: #f1f5f9 배경 대비 6.92 (기존 --gal-muted 4.34) */
  text-decoration: none;
  white-space: nowrap;
}
.gal-subnav .gal-tabs a.on { background: #fff; color: var(--gal-ink); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.gal-subnav form.gal-search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; background: #f1f5f9; border-radius: 999px; width: 230px; }
.gal-subnav form.gal-search input { border: 0; background: transparent; outline: none; flex: 1; font-size: 13px; min-width: 0; }
.gal-subnav .gal-sort { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--gal-line-strong); font-size: 13px; font-weight: 600; color: var(--gal-ink-soft); background: #fff; }

/* ── 히어로(홈) ── */
.gal-hero { padding: 56px 24px 40px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; max-width: 1280px; margin: 0 auto; }
.gal-hero h1 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 18px 0 0; }
.gal-hero h1 em { font-style: normal; color: var(--gal-blue); }
.gal-hero p.gal-lede { margin-top: 18px; font-size: 15.5px; line-height: 1.7; color: var(--gal-muted); max-width: 52ch; }
.gal-hero .gal-acts { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }

.gal-cluster { position: relative; aspect-ratio: 1 / 0.86; }
.gal-cluster .gal-shot { position: absolute; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.35); background: #f1f5f9; }
.gal-cluster .gal-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-cluster .s1 { left: 0; top: 4%; width: 56%; aspect-ratio: 4/5; transform: rotate(-2.2deg); z-index: 2; }
.gal-cluster .s2 { right: 0; top: 0; width: 44%; aspect-ratio: 1; transform: rotate(2.4deg); z-index: 1; }
.gal-cluster .s3 { right: 4%; bottom: 0; width: 50%; aspect-ratio: 5/4; transform: rotate(-1.2deg); z-index: 3; }
.gal-cluster .gal-tagchip {
  position: absolute; left: 0; bottom: 6%; z-index: 4; background: #fff; border-radius: 999px;
  padding: 9px 16px; font-size: 11.5px; font-weight: 700; box-shadow: 0 8px 26px -8px rgba(15,23,42,0.35);
  display: flex; align-items: center; gap: 8px;
}
.gal-cluster .gal-tagchip b { color: var(--gal-blue); }
.gal-cluster .gal-tagchip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gal-amber); }

/* ── 통계바 ── */
.gal-statbar { display: flex; flex-wrap: wrap; border-top: 1px solid var(--gal-line); border-bottom: 1px solid var(--gal-line); background: #f8fafc; padding: 0 max(0px, calc((100% - 1280px) / 2)); }
.gal-statbar div { flex: 1; min-width: 140px; padding: 22px 24px; border-right: 1px solid var(--gal-line); }
.gal-statbar div:last-child { border-right: 0; }
.gal-statbar .n { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.gal-statbar .n span { font-size: 14px; color: var(--gal-muted); font-weight: 600; margin-left: 3px; }
.gal-statbar .l { font-size: 12px; color: var(--gal-muted); font-weight: 600; margin-top: 6px; }

/* ── 섹션 헤더 ── */
.gal-sec-head { padding: 44px 24px 0; max-width: 1280px; margin: 0 auto; display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.gal-sec-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; }

/* ── 부서 카드 그리드 ── */
.gal-dept-grid { padding: 26px 24px 70px; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gal-dept-card { display: block; color: inherit; text-decoration: none; }
.gal-dept-card .gal-cov {
  position: relative; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; background: #e2e8f0;
  box-shadow: 0 16px 36px -20px rgba(15,23,42,0.35); transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gal-dept-card:hover .gal-cov { transform: translateY(-4px); box-shadow: 0 28px 52px -20px rgba(15,23,42,0.42); }
.gal-dept-card .gal-cov img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gal-dept-card:hover .gal-cov img { transform: scale(1.05); }
.gal-dept-card .gal-cov .gal-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #475569; background: linear-gradient(160deg,#eef2f7,#dbe4ee); }
.gal-dept-card .gal-scrim { position: absolute; inset: 0; z-index: 4; background: linear-gradient(to top, rgba(8,11,26,0.86) 2%, rgba(8,11,26,0.3) 36%, transparent 62%); }
.gal-dept-card .gal-top { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 5; display: flex; gap: 8px; }
.gal-dept-card .gal-badge-new { background: var(--gal-amber); color: #2a1a02; font-size: 9.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; letter-spacing: 0.06em; }
.gal-dept-card .gal-badge-video { margin-left: auto; background: rgba(255,255,255,0.94); color: var(--gal-ink); font-size: 9.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; display: flex; align-items: center; gap: 5px; }
.gal-dept-card .gal-btm { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 5; color: #fff; }
.gal-dept-card .gal-age { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; color: rgba(255,255,255,0.75); text-transform: uppercase; }
.gal-dept-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 0; line-height: 1.15; }
.gal-dept-card .gal-pastor { font-size: 12px; color: rgba(255,255,255,0.78); margin-top: 4px; }
.gal-dept-card .gal-go { margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,0.22); display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.88); font-weight: 600; }
.gal-dept-card .gal-go .gal-ar { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.18); display: grid; place-items: center; font-size: 11px; transition: all 0.25s ease; }
.gal-dept-card:hover .gal-go .gal-ar { background: #fff; color: var(--gal-ink); transform: translateX(3px); }
.gal-dept-card .gal-latest { margin-top: 10px; padding: 0 2px; font-size: 12.5px; color: var(--gal-muted); display: flex; gap: 6px; align-items: center; min-width: 0; }
.gal-dept-card .gal-latest b { font-weight: 600; color: var(--gal-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-dept-card .gal-empty-note { text-align: center; padding: 60px 20px; color: var(--gal-muted); }

/* ── 부서 상세 히어로 ── */
.gal-dhero { position: relative; min-height: 420px; display: flex; align-items: flex-end; overflow: hidden; background: #0f172a; }
.gal-dhero img.gal-bgph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.85; }
.gal-dhero .gal-scrim2 { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(6,9,22,0.92) 4%, rgba(6,9,22,0.5) 45%, rgba(6,9,22,0.28) 100%); }
.gal-dhero .gal-inner { position: relative; z-index: 4; padding: 36px 24px 40px; color: #fff; width: 100%; max-width: 1280px; margin: 0 auto; }
.gal-dhero .gal-crumb { font-size: 12.5px; color: rgba(255,255,255,0.65); }
.gal-dhero .gal-crumb a { color: rgba(255,255,255,0.92); text-decoration: none; }
.gal-dhero .gal-row { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: flex-end; margin-top: 22px; }
.gal-dhero .gal-age-badge { display: inline-block; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.26); padding: 5px 13px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; }
.gal-dhero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 14px 0 0; }
.gal-dhero .gal-say { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.82); max-width: 46ch; margin-top: 14px; }
.gal-dhero .gal-facts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.gal-dhero .gal-facts span { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.2); padding: 7px 13px; border-radius: 10px; font-size: 12px; color: rgba(255,255,255,0.85); white-space: nowrap; }
.gal-dhero .gal-facts span b { color: #fff; font-weight: 700; }
.gal-dhero .gal-acts { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }

/* 대표 영상 카드 */
.gal-vcard { background: rgba(14,18,38,0.55); border: 1px solid rgba(255,255,255,0.22); border-radius: 18px; padding: 10px; }
.gal-vcard .gal-vid { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; background: #1e293b; }
.gal-vcard .gal-vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gal-vcard .gal-pl { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; }
.gal-vcard .gal-pl span { width: 52px; height: 36px; border-radius: 10px; background: #e51c1c; color: #fff; display: grid; place-items: center; font-size: 15px; padding-left: 3px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.gal-vcard .gal-cap { padding: 12px 6px 4px; color: #fff; }
.gal-vcard .gal-cap .t { font-size: 14px; font-weight: 700; }
.gal-vcard .gal-cap .s { font-size: 11.5px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* 소개문 */
.gal-dintro { padding: 44px 24px; max-width: 1280px; margin: 0 auto; border-bottom: 1px solid var(--gal-line); }
.gal-dintro p { font-size: 15px; line-height: 1.8; color: var(--gal-ink-soft); max-width: 70ch; }

/* 앨범 헤더/연도필터 */
.gal-albhead { padding: 44px 24px 0; max-width: 1280px; margin: 0 auto; display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.gal-albhead .gal-yr { margin-left: auto; display: flex; gap: 0; border-bottom: 1px solid var(--gal-line); flex-wrap: wrap; }
.gal-albhead .gal-yr a { padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--gal-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.gal-albhead .gal-yr a.on { color: var(--gal-ink); font-weight: 700; border-bottom-color: var(--gal-blue); }

/* 앨범 카드 그리드 */
.gal-alb-grid { padding: 26px 24px 70px; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 20px; }
.gal-alb { display: block; color: inherit; text-decoration: none; position: relative; }
.gal-alb .gal-cov { aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; position: relative; background: #e2e8f0; box-shadow: 0 14px 30px -18px rgba(15,23,42,0.32); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.gal-alb:hover .gal-cov { transform: translateY(-3px); box-shadow: 0 24px 44px -18px rgba(15,23,42,0.4); }
.gal-alb .gal-cov img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gal-alb:hover .gal-cov img { transform: scale(1.05); }
.gal-alb .gal-cov .gal-sc { position: absolute; inset: 0; z-index: 4; background: linear-gradient(to top, rgba(8,11,26,0.6), transparent 52%); }
.gal-alb .gal-cov .gal-n { position: absolute; bottom: 10px; left: 12px; z-index: 5; color: #fff; font-size: 11.5px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.gal-alb .gal-cov .gal-vd { display: inline-flex; align-items: center; gap: 5px; color: #ffd9a0; }
.gal-alb .gal-cov .gal-lock { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(8,11,26,0.55); color: #fff; font-size: 26px; }
.gal-alb .gal-meta { padding: 13px 2px 0; }
.gal-alb .gal-meta .gal-dt { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--gal-blue); font-variant-numeric: tabular-nums; }
.gal-alb .gal-meta h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; margin: 6px 0 4px; }
.gal-alb .gal-meta .gal-sub { font-size: 12.5px; color: var(--gal-muted); }

.gal-empty-state { padding: 70px 24px; text-align: center; color: var(--gal-muted); max-width: 1280px; margin: 0 auto; }

/* ── 행사 상세 헤더 ── */
.gal-evhead { padding: 40px 24px 28px; max-width: 1280px; margin: 0 auto; border-bottom: 1px solid var(--gal-line); }
.gal-evhead .gal-crumb { font-size: 12.5px; color: var(--gal-muted); }
.gal-evhead .gal-crumb a { color: var(--gal-muted); text-decoration: none; }
.gal-evhead .gal-crumb a:hover { color: var(--gal-blue); }
.gal-evhead h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 14px 0 0; }
.gal-evhead .gal-under { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; margin-top: 24px; align-items: end; }
.gal-evhead .gal-note { font-size: 14.5px; line-height: 1.8; color: var(--gal-muted); max-width: 62ch; }
.gal-evhead .gal-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
.gal-evhead .gal-facts .k { font-size: 10.5px; color: var(--gal-muted); letter-spacing: 0.08em; font-weight: 700; display: block; margin-bottom: 4px; text-transform: uppercase; }
.gal-evhead .gal-facts .v { font-size: 13.5px; font-weight: 600; }
.gal-evhead .gal-acts { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }

/* 필터바 */
.gal-evbar { padding: 16px 24px; max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: sticky; top: 0; background: #fff; z-index: 20; border-bottom: 1px solid var(--gal-line); }
.gal-evbar .gal-pilltab { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--gal-line-strong); background: transparent; font-size: 12.5px; font-weight: 600; color: var(--gal-muted); cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; }
.gal-evbar .gal-pilltab.on { background: var(--gal-ink); color: #fff; border-color: var(--gal-ink); }
.gal-evbar .gal-pilltab .c { font-size: 11px; margin-left: 5px; opacity: 0.7; }

/* 미디어 그리드 */
.gal-mgrid { padding: 24px 24px 8px; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gal-mitem { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: #e2e8f0; box-shadow: 0 1px 2px rgba(15,23,42,0.06); }
.gal-mitem img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gal-mitem:hover img { transform: scale(1.06); }
.gal-mitem .gal-sc { position: absolute; inset: 0; z-index: 4; background: linear-gradient(to top, rgba(8,11,26,0.55), transparent 48%); opacity: 0; transition: opacity 0.25s ease; }
.gal-mitem:hover .gal-sc { opacity: 1; }
.gal-mitem .gal-cap { position: absolute; left: 11px; right: 11px; bottom: 9px; z-index: 5; color: #fff; font-size: 11.5px; font-weight: 500; opacity: 0; transform: translateY(4px); transition: all 0.25s ease; }
.gal-mitem:hover .gal-cap { opacity: 1; transform: none; }
.gal-mitem.hidden-item { display: none; }
.gal-mitem .gal-vb { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; pointer-events: none; }
.gal-mitem .gal-vb span { width: 44px; height: 32px; border-radius: 8px; background: #e51c1c; color: #fff; display: grid; place-items: center; font-size: 12px; padding-left: 2px; box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.gal-mitem .gal-dur { position: absolute; bottom: 8px; right: 8px; z-index: 6; background: rgba(6,9,22,0.86); color: #fff; font-size: 10.5px; padding: 2px 6px; border-radius: 4px; }

.gal-evmore { padding: 6px 24px 60px; text-align: center; max-width: 1280px; margin: 0 auto; }
.gal-evmore .c { font-size: 13px; color: var(--gal-muted); margin-bottom: 14px; }
.gal-evmore button { height: 44px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--gal-line-strong); background: transparent; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--gal-ink); transition: all 0.2s ease; }
.gal-evmore button:hover { border-color: var(--gal-ink); background: var(--gal-ink); color: #fff; }

.gal-evnext { border-top: 1px solid var(--gal-line); padding: 44px 24px 56px; background: #f8fafc; }
.gal-evnext-inner { max-width: 1280px; margin: 0 auto; }
.gal-evnext .g { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }

/* ── 라이트박스 ── */
.gal-lb { position: fixed; inset: 0; z-index: 500; background: rgba(6,8,18,0.92); backdrop-filter: blur(14px); display: none; flex-direction: column; }
.gal-lb.open { display: flex; }
.gal-lb .gal-lb-top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; color: rgba(255,255,255,0.7); font-size: 12.5px; flex-wrap: wrap; }
.gal-lb .gal-lb-top .gal-ttl { color: #fff; font-weight: 700; white-space: nowrap; }
.gal-lb .gal-lb-top .gal-ix { font-size: 11.5px; padding: 3px 9px; background: rgba(255,255,255,0.1); border-radius: 999px; white-space: nowrap; }
.gal-lb .gal-lb-top .gal-sp { flex: 1; }
.gal-lb .gal-lb-top button { width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08); color: #fff; cursor: pointer; font-size: 13px; }
.gal-lb .gal-lb-top button:hover { background: rgba(255,255,255,0.2); }
.gal-lb .gal-lb-top a.gal-lb-download { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.gal-lb .gal-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 70px 8px; position: relative; min-height: 0; }
.gal-lb .gal-shotw { position: relative; width: min(1000px, 100%); max-height: 100%; aspect-ratio: 3/2; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 30px 90px -20px rgba(0,0,0,0.8); }
.gal-lb .gal-shotw img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.gal-lb .gal-shotw iframe { width: 100%; height: 100%; border: 0; display: block; }
.gal-lb .gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: #fff; cursor: pointer; font-size: 18px; }
.gal-lb .gal-nav:hover { background: rgba(255,255,255,0.2); }
.gal-lb .gal-nav.prev { left: 14px; } .gal-lb .gal-nav.next { right: 14px; }
.gal-lb .gal-cap2 { padding: 14px 20px 4px; color: rgba(255,255,255,0.78); font-size: 13px; text-align: center; }
.gal-lb .gal-strip { display: flex; gap: 7px; padding: 10px 20px 20px; overflow-x: auto; justify-content: center; }
.gal-lb .gal-strip .th { width: 62px; height: 44px; border-radius: 6px; flex: none; cursor: pointer; opacity: 0.4; overflow: hidden; position: relative; transition: opacity 0.2s ease; background: #1e293b; }
.gal-lb .gal-strip .th img { width: 100%; height: 100%; object-fit: cover; }
.gal-lb .gal-strip .th:hover { opacity: 0.75; }
.gal-lb .gal-strip .th.on { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.gal-lb .gal-strip .th.vid::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.7); }

/* ── 신고 모달 ── */
.gal-report-backdrop { position: fixed; inset: 0; z-index: 600; background: rgba(15,23,42,0.55); display: none; align-items: center; justify-content: center; padding: 20px; }
.gal-report-backdrop.open { display: flex; }
.gal-report-modal { width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 26px; box-shadow: 0 30px 70px -20px rgba(15,23,42,0.5); }
.gal-report-modal h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.gal-report-modal .gal-field { margin-top: 16px; }
.gal-report-modal label.gal-field-label { display: block; font-size: 13px; font-weight: 700; color: var(--gal-ink-soft); margin-bottom: 8px; }
.gal-report-modal .gal-radio-row { display: flex; flex-direction: column; gap: 8px; }
.gal-report-modal .gal-radio-row label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--gal-ink); cursor: pointer; }
.gal-report-modal textarea, .gal-report-modal input[type="text"] {
  width: 100%; border: 1px solid var(--gal-line-strong); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; outline: none; font-family: inherit;
}
.gal-report-modal textarea:focus, .gal-report-modal input[type="text"]:focus { border-color: var(--gal-blue); box-shadow: 0 0 0 3px var(--gal-blue-soft); }
.gal-report-modal .gal-notice { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--gal-blue-soft); color: var(--gal-blue-dark); font-size: 12.5px; line-height: 1.6; }
.gal-report-modal .gal-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.gal-report-modal .gal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.gal-report-modal .gal-actions button[type="button"] { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--gal-line-strong); background: transparent; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.gal-report-modal .gal-actions button[type="submit"] { height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--gal-blue); color: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.gal-report-modal .gal-actions button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }
.gal-report-result { margin-top: 14px; font-size: 13px; padding: 10px 12px; border-radius: 10px; }
.gal-report-result.ok { background: #ecfdf5; color: #047857; }
.gal-report-result.err { background: #fef2f2; color: #b91c1c; }

/* ── 플래시/알림 ── */
.gal-flash { max-width: 1280px; margin: 16px auto 0; padding: 0 24px; }
.gal-flash-box { padding: 12px 16px; border-radius: 12px; font-size: 13.5px; }
.gal-flash-box.success { background: #ecfdf5; color: #047857; }
.gal-flash-box.error { background: #fef2f2; color: #b91c1c; }

/* ── 반응형 ── */
@media (max-width: 1100px) {
  .gal-hero, .gal-dhero .gal-row, .gal-evhead .gal-under { grid-template-columns: 1fr; gap: 30px; }
  .gal-dept-grid, .gal-alb-grid, .gal-evnext .g { grid-template-columns: repeat(2, 1fr); }
  .gal-mgrid { grid-template-columns: repeat(3, 1fr); }
  .gal-hero .gal-cluster { max-width: 480px; }
}
@media (max-width: 768px) {
  .gal-subnav, .gal-hero, .gal-sec-head, .gal-dept-grid, .gal-dhero .gal-inner, .gal-dintro,
  .gal-albhead, .gal-alb-grid, .gal-evhead, .gal-evbar, .gal-mgrid, .gal-evmore, .gal-evnext { padding-left: 16px; padding-right: 16px; }
  .gal-dept-grid, .gal-alb-grid, .gal-evnext .g { grid-template-columns: 1fr; }
  .gal-mgrid { grid-template-columns: repeat(2, 1fr); }
  .gal-evhead .gal-facts { grid-template-columns: 1fr 1fr; }
  .gal-lb .gal-stage { padding: 0 12px 8px; }
  .gal-lb .gal-nav { display: none; }
  .gal-subnav form.gal-search { width: 100%; order: 3; }
  .gal-statbar div { min-width: 50%; padding: 16px 18px; }
}
