/* ═══════════════════════════════════════════
   WorkM Homepage – Visitor-Facing Stylesheet
   Generated from admin panel settings
   Supports Light & Dark mode
═══════════════════════════════════════════ */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Theme Variables ── */
:root {
  --hp-bg: #ffffff;
  --hp-bg-alt: #f8f9fb;
  --hp-bg-card: #ffffff;
  --hp-text: #1a1a2e;
  --hp-text-secondary: #475569;
  --hp-text-muted: #94a3b8;
  --hp-border: #e5e7eb;
  --hp-shadow: rgba(0,0,0,0.06);
  --hp-shadow-lg: rgba(0,0,0,0.1);
  --hp-accent: #4f6ef7;
  --hp-accent-light: rgba(79,110,247,0.1);
  --hp-overlay: rgba(0,0,0,0.4);
  --hp-hero-bg: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  --hp-hero-text: #ffffff;
  --hp-loader-bg: #ffffff;
  --hp-loader-ring: #e5e7eb;
  --hp-drawer-bg: #ffffff;
}

[data-theme="dark"] {
  --hp-bg: #0f0f1a;
  --hp-bg-alt: #161625;
  --hp-bg-card: #1c1c2e;
  --hp-text: #e2e8f0;
  --hp-text-secondary: #94a3b8;
  --hp-text-muted: #64748b;
  --hp-border: #2d2d44;
  --hp-shadow: rgba(0,0,0,0.25);
  --hp-shadow-lg: rgba(0,0,0,0.4);
  --hp-accent: #6d8cff;
  --hp-accent-light: rgba(109,140,255,0.12);
  --hp-overlay: rgba(0,0,0,0.6);
  --hp-hero-bg: linear-gradient(135deg, #0a0a18, #1a1a35, #12122a);
  --hp-hero-text: #f1f5f9;
  --hp-loader-bg: #0f0f1a;
  --hp-loader-ring: #2d2d44;
  --hp-drawer-bg: #161625;
}

/* ── Reset & Base ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--hp-text);
  background: var(--hp-bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ═══════════════════════════
   테마 토글 버튼
═══════════════════════════ */
.hp-theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--hp-border);
  background: var(--hp-bg-card);
  color: var(--hp-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 300;
  box-shadow: 0 4px 16px var(--hp-shadow-lg);
  transition: all 0.3s ease;
}

.hp-theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px var(--hp-shadow-lg);
  border-color: var(--hp-accent);
}



/* ═══════════════════════════
   상단 리벳 (공지 바)
═══════════════════════════ */
.hp-rivet {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.hp-rivet .rivet-content {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.hp-rivet .rivet-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ═══════════════════════════
   헤더 & 네비게이션
═══════════════════════════ */
.hp-header {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 40px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  transition: all 0.35s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hp-header.scrolled {
  box-shadow: 0 2px 20px var(--hp-shadow);
}

.hp-header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 100%;
  margin-right: 32px;
}

.hp-header-logo img {
  max-height: 70%;
  width: auto;
  object-fit: contain;
}

/* ── 로고 반응형 전환: 가로=PC, 세로=모바일 ── */
/* 헤더 로고 */
.hp-header-logo .hp-logo-v {
  display: none;
}
.hp-header-logo .hp-logo-h {
  display: block;
}

/* 푸터 로고 */
.hp-footer-logo .hp-logo-v {
  display: none;
}
.hp-footer-logo .hp-logo-h {
  display: block;
}

@media (max-width: 768px) {
  /* 헤더: 가로 숨기고 세로 표시 */
  .hp-header-logo .hp-logo-h {
    display: none !important;
  }
  .hp-header-logo .hp-logo-v {
    display: block !important;
  }
  /* 푸터: 가로 숨기고 세로 표시 */
  .hp-footer-logo .hp-logo-h {
    display: none !important;
  }
  .hp-footer-logo .hp-logo-v {
    display: block !important;
  }
}

.hp-header-logo .logo-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #4f6ef7, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-header-nav {
  flex: 1;
  display: flex;
  align-items: center;
}

.hp-header-nav a {
  position: relative;
  font-weight: 600;
  transition: opacity 0.2s ease;
  padding: 6px 2px;
}

.hp-header-nav a:hover {
  opacity: 0.7;
}

.hp-header-nav > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.hp-header-nav > a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* 메가메뉴 */
.hp-mega-menu {
  will-change: opacity, transform;
}

.hp-mega-menu a:hover {
  opacity: 1 !important;
}

/* 모바일 메뉴 버튼 */
.hp-mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
  margin-left: auto;
}

.hp-mobile-menu-btn:hover {
  background: var(--hp-accent-light);
}

.hp-mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hp-mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hp-mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.hp-mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 모바일 드로어 */
.hp-mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--hp-drawer-bg);
  box-shadow: -4px 0 30px var(--hp-shadow-lg);
  z-index: 200;
  padding: 80px 30px 30px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.hp-mobile-drawer.open {
  right: 0;
}

.hp-mobile-drawer a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--hp-text);
  border-bottom: 1px solid var(--hp-border);
  transition: color 0.2s, padding-left 0.2s;
}

.hp-mobile-drawer a:hover {
  color: var(--hp-accent);
  padding-left: 8px;
}

.hp-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--hp-overlay);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s;
}

.hp-mobile-overlay.show {
  opacity: 1;
}

/* ═══════════════════════════
   메인 컨텐츠 영역
═══════════════════════════ */
.hp-main-content {
  width: 100%;
  min-height: 50vh;
  position: relative;
  z-index: 1;
}

/* ── 이미지형 컨텐츠 라인 ── */
.hp-content-line {
  width: 100%;
  overflow: hidden;
}

.hp-content-line .line-grid {
  display: grid;
  gap: 0;
  width: 100%;
}

.hp-content-line .line-grid.cols-1 { grid-template-columns: 1fr; }
.hp-content-line .line-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.hp-content-line .line-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.hp-content-line .line-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.hp-content-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.hp-content-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hp-content-item:hover img {
  transform: scale(1.05);
}

.hp-content-item .item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hp-content-item:hover .item-overlay {
  opacity: 1;
}

/* 텍스트 오버레이 — 항상 표시 */
.hp-content-item .item-overlay-text {
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 1;
}

.hp-content-item .item-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 24px 20px;
  width: 100%;
}

.hp-content-item .item-tag {
  display: inline-block;
  padding: 5px 18px;
  border: 1.5px solid rgba(255,255,255,.45);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  letter-spacing: 1.2px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hp-content-item .item-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}

.hp-content-item .item-desc {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 80%;
}

/* 반응형 이미지 토글 (PC: 가로, 모바일: 세로) */
.hp-content-item .mc-img-v {
  display: none;
}

@media (max-width: 768px) {
  .hp-content-item.has-vertical {
    aspect-ratio: 4/5;
  }
  .hp-content-item.has-vertical .mc-img-h {
    display: none !important;
  }
  .hp-content-item.has-vertical .mc-img-v {
    display: block !important;
  }
}

/* ═══════════════════════════
   슬라이드쇼 캐루셀
═══════════════════════════ */
.hp-carousel-section {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0a0a12;
}

/* 슬라이드 트랙 */
.hp-cs-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 개별 슬라이드 */
.hp-cs-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1), visibility 0.9s;
}

.hp-cs-slide.active {
  opacity: 1;
  visibility: visible;
}

/* 슬라이드 이미지 */
.hp-cs-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* 반응형 이미지 토글 (슬라이드 내) */
.hp-cs-slide .hp-cs-img-v {
  display: none;
}

@media (max-width: 768px) {
  .hp-carousel-section {
    aspect-ratio: 4/5;
  }
  .hp-cs-slide .hp-cs-img-h {
    display: none !important;
  }
  .hp-cs-slide .hp-cs-img-v {
    display: block !important;
  }
}

/* 이미지 클릭 링크 */
.hp-cs-link {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
  text-decoration: none;
}

/* 텍스트 오버레이 */
.hp-cs-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.52) 100%);
  z-index: 2;
}

.hp-cs-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 30px 20px;
  width: 100%;
  position: relative;
  z-index: 3;
}

/* 캐루셀 오버레이 텍스트 스타일 */
.hp-cs-tag {
  display: inline-block;
  padding: 5px 20px;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.95);
  letter-spacing: 1.2px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(0,0,0,.2);
}

.hp-cs-title {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.5px;
  text-shadow: 0 3px 20px rgba(0,0,0,.6);
}

.hp-cs-desc {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  max-width: 70%;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

@media (max-width: 768px) {
  .hp-cs-title { font-size: 24px; }
  .hp-cs-desc { font-size: 13px; max-width: 88%; }
}


/* 화살표 버튼 - 항상 표시 */
.hp-cs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.42);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  opacity: 1;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.hp-cs-arrow:hover {
  background: rgba(0,0,0,.7);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-50%) scale(1.1);
}

.hp-cs-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.hp-cs-prev { left: 20px; }
.hp-cs-next { right: 20px; }

/* 닷 인디케이터 */
.hp-cs-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hp-cs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
}

.hp-cs-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
  border-color: #fff;
}

/* 슬라이드 카운터 */
.hp-cs-counter {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  background: rgba(0,0,0,.3);
  padding: 3px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10;
  letter-spacing: 0.5px;
}


/* ── 솔루션형 컨텐츠 ── */
.hp-solution-line {
  padding: 60px 40px;
  background: var(--hp-bg-alt);
}

.hp-solution-line .solution-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--hp-text);
  margin-bottom: 40px;
}

.hp-solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.hp-solution-card {
  background: var(--hp-bg-card);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--hp-border);
  box-shadow: 0 4px 20px var(--hp-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hp-solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px var(--hp-shadow-lg);
}

.hp-solution-card .sol-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f6ef7, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #fff;
}

.hp-solution-card .sol-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--hp-text);
}

/* ── 히어로/배너 기본 ── */
.hp-hero {
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hp-hero-bg);
  position: relative;
  overflow: hidden;
}

.hp-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,110,247,0.25) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hp-hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.2) 0%, transparent 70%);
  bottom: -150px;
  left: -50px;
  animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.2) translate(30px, -20px); }
}

.hp-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--hp-hero-text);
  padding: 40px;
}

.hp-hero-content h1 {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-hero-content p {
  font-size: 18px;
  font-weight: 400;
  opacity: 0.8;
  max-width: 500px;
  margin: 0 auto;
  color: rgba(255,255,255,0.8);
}

/* ═══════════════════════════
   푸터 영역
═══════════════════════════ */
.hp-footer-logo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 20px 40px;
}

.hp-footer-logo img {
  max-height: 80%;
  width: auto;
  object-fit: contain;
}

.hp-footer-menu {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.hp-footer-menu a {
  font-weight: 400;
  transition: opacity 0.2s;
}

.hp-footer-menu a:hover {
  opacity: 0.6;
}

.hp-footer-text {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.hp-footer-text-content {
  white-space: pre-wrap;
  line-height: 1.8;
}

.hp-copyright {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.hp-copyright-content {
  white-space: pre-wrap;
}

/* ═══════════════════════════
   스크롤 애니메이션
═══════════════════════════ */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════
   반응형
═══════════════════════════ */
@media (max-width: 768px) {
  .hp-header {
    padding: 0 16px;
  }

  .hp-header-nav {
    display: none;
  }

  .hp-mobile-menu-btn {
    display: flex;
  }

  .hp-mobile-drawer {
    display: block;
  }

  .hp-hero-content h1 {
    font-size: 28px;
  }

  .hp-hero-content p {
    font-size: 15px;
  }

  .hp-content-item .item-title {
    font-size: 22px;
  }

  .hp-content-item .item-tag {
    font-size: 11px;
    padding: 3px 12px;
  }

  .hp-content-item .item-desc {
    font-size: 12px;
    max-width: 90%;
  }

  .hp-content-line .line-grid.cols-2,
  .hp-content-line .line-grid.cols-3,
  .hp-content-line .line-grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .hp-solution-line {
    padding: 40px 16px;
  }

  .hp-footer-logo,
  .hp-footer-menu,
  .hp-footer-text,
  .hp-copyright {
    padding: 0 16px;
  }

  .hp-footer-menu {
    flex-wrap: wrap;
  }

  .hp-rivet {
    font-size: 11px !important;
    padding: 6px 12px;
  }

  .hp-theme-toggle {
    bottom: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hp-hero {
    min-height: 300px;
  }

  .hp-hero-content h1 {
    font-size: 24px;
  }

  .hp-solution-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ═══════════════════════════
   솔루션 페이지
═══════════════════════════ */
.hp-solution-page {
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 120px 40px 60px;
  background: var(--hp-bg);
}

.hp-solution-page-inner {
  max-width: 900px;
  width: 100%;
}

.hp-sol-header {
  text-align: center;
  margin-bottom: 48px;
}

.hp-sol-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #4f6ef7, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(79,110,247,0.25);
}

.hp-sol-icon-wrap i,
.hp-sol-icon-wrap svg {
  width: 32px;
  height: 32px;
}

.hp-sol-header h1 {
  font-size: 36px;
  font-weight: 900;
  color: var(--hp-text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hp-sol-header p {
  font-size: 16px;
  color: var(--hp-text-secondary);
  line-height: 1.7;
}

.hp-sol-body {
  background: var(--hp-bg-card);
  border-radius: 20px;
  border: 1px solid var(--hp-border);
  box-shadow: 0 4px 24px var(--hp-shadow);
  overflow: hidden;
}

.hp-sol-placeholder {
  padding: 80px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: var(--hp-text-muted);
}

.hp-sol-placeholder p {
  font-size: 15px;
  line-height: 1.6;
}

.hp-sol-placeholder strong {
  color: var(--hp-text-secondary);
}

@media (max-width: 768px) {
  .hp-solution-page {
    padding: 100px 16px 40px;
  }

  .hp-sol-header h1 {
    font-size: 26px;
  }

  .hp-sol-placeholder {
    padding: 40px 20px;
  }
}

/* ═══════════════════════════
   로딩 스피너
═══════════════════════════ */
.hp-loading {
  position: fixed;
  inset: 0;
  background: var(--hp-loader-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s;
}

.hp-loading.hide {
  opacity: 0;
  pointer-events: none;
}

.hp-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--hp-loader-ring);
  border-top-color: var(--hp-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════
   서브메뉴 페이지 (이미지형)
═══════════════════════════ */
.hp-submenu-page {
  width: 100%;
  min-height: 80vh;
  background: var(--hp-bg);
}

/* ── 히어로 / 브레드크럼 ── */
.hp-submenu-hero {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  padding: 120px 40px 60px;
  position: relative;
  overflow: hidden;
}

.hp-submenu-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,110,247,0.2) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.hp-submenu-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hp-submenu-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.hp-submenu-breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  font-weight: 500;
}

.hp-submenu-breadcrumb a:hover {
  color: rgba(255,255,255,0.9);
}

.hp-submenu-breadcrumb .bc-sep {
  color: rgba(255,255,255,0.3);
  font-size: 16px;
}

.hp-submenu-breadcrumb .bc-current {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.hp-submenu-hero h1 {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 갤러리 그리드 ── */
.hp-submenu-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

.hp-submenu-grid {
  display: grid;
  gap: 24px;
}

.hp-submenu-grid.sm-cols-1 { grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; }
.hp-submenu-grid.sm-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hp-submenu-grid.sm-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ── 카드 ── */
.hp-submenu-card {
  background: var(--hp-bg-card);
  border-radius: 16px;
  border: 1px solid var(--hp-border);
  overflow: hidden;
  box-shadow: 0 4px 24px var(--hp-shadow);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s ease;
}

.hp-submenu-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px var(--hp-shadow-lg);
}

.hp-submenu-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.hp-submenu-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--hp-bg-alt);
}

.hp-submenu-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}

.hp-submenu-card:hover .hp-submenu-img-wrap img {
  transform: scale(1.06);
}

.hp-submenu-card-body {
  padding: 16px 20px 12px;
}

.hp-submenu-card-body p {
  font-size: 14px;
  color: var(--hp-text-secondary);
  line-height: 1.6;
}

.hp-submenu-card-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 20px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-accent);
  transition: gap 0.2s;
}

.hp-submenu-card:hover .hp-submenu-card-link {
  gap: 8px;
}

/* ── 반응형 ── */
@media (max-width: 768px) {
  .hp-submenu-hero {
    padding: 100px 16px 40px;
  }

  .hp-submenu-hero h1 {
    font-size: 28px;
  }

  .hp-submenu-gallery {
    padding: 24px 16px 48px;
  }

  .hp-submenu-grid.sm-cols-2,
  .hp-submenu-grid.sm-cols-3 {
    grid-template-columns: 1fr;
  }

  .hp-submenu-grid {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hp-submenu-hero h1 {
    font-size: 24px;
  }

  .hp-submenu-breadcrumb {
    font-size: 12px;
  }
}

/* ═══════════════════════════════════════════
   컨텐츠관리 (카드형 그리드, 테마 대응)
═══════════════════════════════════════════ */
.hp-ct-page { max-width: 1200px; margin: 0 auto; padding: 80px 20px 60px; }

.hp-ct-title-box {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-bottom: 28px; padding: 6px 0 20px;
  border-bottom: 2px solid var(--hp-border);
}
.hp-ct-title-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.hp-ct-title-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(59,130,246,.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hp-ct-title-icon svg { color: #3b82f6; }
.hp-ct-title-icon svg, .hp-ct-title-icon i { width: 26px; height: 26px; color: #fff; }
.hp-ct-h1 { font-size: 22px; font-weight: 900; color: var(--hp-text); margin: 0 0 3px; letter-spacing: -.5px; }
.hp-ct-sub { font-size: 12px; color: var(--hp-text-muted); margin: 0; }

.hp-ct-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.hp-ct-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.hp-ct-filter-btn {
  padding: 7px 18px; border-radius: 20px; border: 1.5px solid var(--hp-border);
  background: var(--hp-bg-card); color: var(--hp-text-muted);
  font-size: 12px; font-weight: 700; cursor: pointer; transition: all .2s;
}
.hp-ct-filter-btn:hover { border-color: var(--hp-accent); color: var(--hp-accent); background: var(--hp-accent-light); }
.hp-ct-filter-btn.hp-ct-active { background: var(--hp-accent); color: #fff; border-color: var(--hp-accent); box-shadow: 0 2px 10px rgba(79,110,247,.3); }
.hp-ct-toolbar .hp-gal-search-wrap { flex: 1; min-width: 220px; margin-bottom: 0; }

.hp-ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* 카드 */
.hp-ct-card {
  background: var(--hp-bg-card); border: 1px solid var(--hp-border);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 14px var(--hp-shadow);
  transition: transform .22s, box-shadow .22s;
  display: flex; flex-direction: column; cursor: pointer;
}
.hp-ct-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px var(--hp-shadow-lg); }

/* 썸네일 */
.hp-ct-card-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hp-ct-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.hp-ct-card:hover .hp-ct-card-thumb img { transform: scale(1.06); }
.hp-ct-card-thumb.no-img { background: var(--hp-bg-alt); }
.hp-ct-thumb-icon { font-size: 36px; opacity: .25; }
.hp-ct-thumb-icon i { width: 40px; height: 40px; }

/* 유튜브 플레이 버튼 오버레이 */
.hp-ct-yt-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.18); transition: background .2s;
}
.hp-ct-card:hover .hp-ct-yt-play { background: rgba(0,0,0,.32); }
.hp-ct-yt-play svg { width: 52px; height: 36px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }

/* 카드 바디 */
.hp-ct-card-body { display: flex; flex-direction: column; gap: 9px; padding: 16px 18px 14px; flex: 1; }
.hp-ct-card-header { display: flex; justify-content: space-between; align-items: center; }
.hp-ct-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 800; letter-spacing: .2px;
}
.hp-ct-date { font-size: 11px; color: var(--hp-text-muted); }

.hp-ct-card-title {
  font-size: 15px; font-weight: 800; color: var(--hp-text); line-height: 1.45; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hp-ct-card-summary {
  font-size: 12px; color: var(--hp-text-secondary); line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hp-ct-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.hp-ct-tag {
  font-size: 11px; padding: 2px 9px; border-radius: 12px;
  background: var(--hp-accent-light); color: var(--hp-accent); font-weight: 600;
}
.hp-ct-card-footer {
  display: flex; gap: 8px; align-items: center; margin-top: auto;
  padding-top: 10px; border-top: 1px solid var(--hp-border);
}
.hp-ct-link-btn {
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 14px;
  border: 1.5px solid; background: transparent; cursor: pointer; text-decoration: none;
  transition: all .2s;
}
.hp-ct-link-btn:hover { opacity: .75; }
.hp-ct-detail-btn {
  margin-left: auto; font-weight: 700;
  font-size: 11px; background: none; border: 1.5px solid;
  border-radius: 14px; padding: 4px 14px; cursor: pointer; transition: all .2s;
}
.hp-ct-detail-btn:hover { opacity: .75; }
.hp-ct-empty { text-align: center; padding: 80px 20px; color: var(--hp-text-muted); }

/* 상세보기 페이지 */
.hp-ct-detail-page { max-width: 880px; margin: 0 auto; padding: 80px 20px 60px; }
.hp-ct-back-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--hp-accent);
  background: var(--hp-accent-light); border: none; border-radius: 20px;
  cursor: pointer; padding: 8px 18px; margin-bottom: 24px; transition: opacity .2s;
}
.hp-ct-back-btn:hover { opacity: .75; }
.hp-ct-detail-card {
  background: var(--hp-bg-card); border: 1px solid var(--hp-border);
  border-radius: 22px; overflow: hidden; box-shadow: 0 6px 32px var(--hp-shadow-lg);
}
.hp-ct-detail-img { width: 100%; aspect-ratio: 16/7; overflow: hidden; background: var(--hp-bg-alt); }
.hp-ct-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.hp-ct-detail-body { padding: 28px 32px 32px; }
.hp-ct-detail-title { font-size: 24px; font-weight: 900; color: var(--hp-text); line-height: 1.35; margin: 0 0 14px; letter-spacing: -.3px; }
.hp-ct-detail-summary { font-size: 15px; color: var(--hp-text-secondary); line-height: 1.85; margin: 0; white-space: pre-wrap; }
.hp-ct-detail-stats { display: flex; gap: 20px; margin-top: 20px; font-size: 14px; color: var(--hp-text-muted); }
.hp-ct-goto-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; padding: 12px 26px; border-radius: 12px;
  background: var(--hp-accent); color: #fff; border: none;
  font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 16px rgba(79,110,247,.35); transition: transform .15s, box-shadow .15s;
}
.hp-ct-goto-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(79,110,247,.4); }
.hp-ct-iframe-wrap { margin-top: 28px; border-radius: 16px; overflow: hidden; border: 1px solid var(--hp-border); box-shadow: 0 4px 20px var(--hp-shadow); }
.hp-ct-iframe-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; background: var(--hp-bg-alt); border-bottom: 1px solid var(--hp-border); }
.hp-ct-iframe-url { font-size: 12px; color: var(--hp-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.hp-ct-iframe-close { font-size: 12px; font-weight: 700; color: var(--hp-text-secondary); background: none; border: 1px solid var(--hp-border); border-radius: 8px; padding: 4px 12px; cursor: pointer; transition: all .2s; }
.hp-ct-iframe-close:hover { background: var(--hp-accent); color: #fff; border-color: var(--hp-accent); }
.hp-ct-iframe { width: 100%; height: 70vh; display: block; background: #fff; }

@media (max-width: 700px) {
  .hp-ct-grid { grid-template-columns: 1fr; }
  .hp-ct-toolbar { flex-direction: column; align-items: stretch; }
  .hp-ct-detail-body { padding: 20px 16px 24px; }
  .hp-ct-detail-title { font-size: 20px; }
  .hp-ct-iframe { height: 50vh; }
}

/* ═══════════════════════════════════════════
   게시판 (아코디언형, 테마 대응)
═══════════════════════════════════════════ */
.hp-bd-page { max-width: 960px; margin: 0 auto; padding: 80px 20px 60px; }

.hp-bd-title-box {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px; padding: 6px 0 20px;
  border-bottom: 2px solid var(--hp-border);
}
.hp-bd-title-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hp-bd-title-icon svg, .hp-bd-title-icon i { width: 24px; height: 24px; }
.hp-bd-h1 { font-size: 22px; font-weight: 900; color: var(--hp-text); margin: 0 0 3px; letter-spacing: -.5px; }
.hp-bd-sub { font-size: 12px; color: var(--hp-text-muted); margin: 0; }

/* 검색 */
.hp-bd-search-wrap { margin-bottom: 18px; position: relative; }
.hp-bd-search {
  width: 100%; padding: 12px 44px 12px 18px;
  border: 1.5px solid var(--hp-border); border-radius: 12px;
  background: var(--hp-bg-card); color: var(--hp-text); font-size: 14px;
  outline: none; box-sizing: border-box; transition: border-color .2s;
}
.hp-bd-search:focus { border-color: var(--hp-accent); }
.hp-bd-search::placeholder { color: var(--hp-text-muted); }

.hp-bd-wrap { border: 1px solid var(--hp-border); border-radius: 18px; overflow: hidden; background: var(--hp-bg-card); box-shadow: 0 4px 28px var(--hp-shadow); }
.hp-bd-col-hdr {
  display: grid; grid-template-columns: 50px 1fr 80px 100px 56px 28px;
  padding: 10px 20px; background: var(--hp-bg-alt);
  border-bottom: 2px solid var(--hp-border);
  font-size: 11px; font-weight: 800; color: var(--hp-text-muted); letter-spacing: .6px; text-transform: uppercase;
}
.hp-bd-row { border-bottom: 1px solid var(--hp-border); }
.hp-bd-row:last-child { border-bottom: none; }
.hp-bd-hdr {
  display: grid; grid-template-columns: 50px 1fr 80px 100px 56px 28px;
  padding: 15px 20px; align-items: center; cursor: pointer;
  transition: background .15s; user-select: none;
}
.hp-bd-hdr:hover { background: var(--hp-accent-light); }
.hp-bd-hdr.hp-open { background: var(--hp-accent-light); }
.hp-bd-num { font-size: 12px; font-weight: 800; text-align: center; color: var(--hp-text-muted); }
.hp-bd-ttl { font-size: 14px; font-weight: 700; color: var(--hp-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 12px; }
.hp-bd-mt { text-align: center; font-size: 12px; color: var(--hp-text-muted); white-space: nowrap; }
.hp-bd-chev { transition: transform .25s; color: var(--hp-text-muted); font-size: 12px; text-align: center; line-height: 1; }
.hp-bd-hdr.hp-open .hp-bd-chev { transform: rotate(180deg); color: var(--hp-accent); }

.hp-bd-body { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .25s; opacity: 0; }
.hp-bd-body.hp-open { max-height: 900px; opacity: 1; border-top: 2px solid var(--hp-accent-light); background: var(--hp-bg-alt); }
.hp-bd-inner { padding: 22px 26px 26px; }
.hp-bd-label { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; opacity: .6; }
.hp-bd-content-title { font-size: 17px; font-weight: 800; color: var(--hp-text); margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--hp-border); line-height: 1.4; }
.hp-bd-content-body { margin: 0; font-size: 14px; color: var(--hp-text-secondary); line-height: 2; white-space: pre-wrap; }
.hp-bd-footer { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hp-border); display: flex; gap: 18px; font-size: 12px; color: var(--hp-text-muted); flex-wrap: wrap; }
.hp-bd-empty { text-align: center; padding: 80px 20px; color: var(--hp-text-muted); }

/* 게시판 공지 배지 */
.hp-bd-notice-badge {
  display: inline-block; font-size: 10px; font-weight: 800;
  padding: 2px 7px; border-radius: 6px;
  background: #ef444418; color: #ef4444; margin-right: 6px; flex-shrink: 0;
}
/* 이미지 첨부 */
.hp-bd-content-img { margin-top: 16px; }
.hp-bd-content-img img { max-width: 100%; border-radius: 10px; border: 1px solid var(--hp-border); }
.hp-bd-content-img figcaption { font-size: 11px; color: var(--hp-text-muted); margin-top: 6px; }

/* 모바일 게시판 */
@media (max-width: 640px) {
  .hp-bd-col-hdr, .hp-bd-hdr { grid-template-columns: 36px 1fr 60px 28px; }
  .hp-bd-col-hdr span:nth-child(3), .hp-bd-col-hdr span:nth-child(5),
  .hp-bd-hdr > *:nth-child(3), .hp-bd-hdr > *:nth-child(5) { display: none; }
}

/* ═══════════════════════════════════════════
   미디어 자료 갤러리 (테마 대응)
═══════════════════════════════════════════ */
.hp-gal-page { max-width: 1200px; margin: 0 auto; padding: 80px 20px 60px; }

.hp-gal-title-box {
  display: flex; align-items: center; gap: 16px; margin-bottom: 32px;
  padding: 6px 0 20px;
  border-bottom: 2px solid var(--hp-border);
}
.hp-gal-title-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(124,58,237,.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hp-gal-title-icon svg { color: #7c3aed; }
.hp-gal-title-icon svg, .hp-gal-title-icon i { width: 26px; height: 26px; color: #fff; }
.hp-gal-h1 { font-size: 22px; font-weight: 900; color: var(--hp-text); margin: 0 0 3px; letter-spacing: -.5px; }
.hp-gal-sub { font-size: 12px; color: var(--hp-text-muted); margin: 0; }

/* 검색창 (라이트/다크 양쪽 지원) */
.hp-gal-search-wrap { margin-bottom: 24px; position: relative; }
.hp-gal-search {
  width: 100%; padding: 12px 16px 12px 42px; border-radius: 12px;
  border: 1px solid var(--hp-border);
  background: var(--hp-bg-card); color: var(--hp-text);
  font-size: 14px; outline: none; transition: border .2s, box-shadow .2s;
  box-shadow: 0 2px 8px var(--hp-shadow);
}
.hp-gal-search:focus {
  border-color: var(--hp-accent);
  box-shadow: 0 0 0 3px var(--hp-accent-light);
}
.hp-gal-search::placeholder { color: var(--hp-text-muted); }
.hp-gal-search-ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--hp-text-muted); pointer-events: none;
}

.hp-gal-grid { columns: 3; column-gap: 14px; }
@media (max-width: 800px) { .hp-gal-grid { columns: 2; } }
@media (max-width: 500px) { .hp-gal-grid { columns: 1; } }

.hp-gal-item {
  break-inside: avoid; margin-bottom: 14px; border-radius: 12px; overflow: hidden;
  position: relative; cursor: pointer; background: var(--hp-bg-alt);
  border: 1px solid var(--hp-border);
  box-shadow: 0 2px 10px var(--hp-shadow); transition: transform .2s, box-shadow .2s;
}
.hp-gal-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px var(--hp-shadow-lg); }
.hp-gal-item img { width: 100%; display: block; object-fit: cover; }

.hp-gal-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 55%);
  opacity: 0; transition: opacity .22s;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 14px;
}
.hp-gal-item:hover .hp-gal-overlay { opacity: 1; }
.hp-gal-ttl { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 4px; line-height: 1.3; }
.hp-gal-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.hp-gal-tag {
  font-size: 10px; padding: 2px 7px; border-radius: 20px;
  background: rgba(255,255,255,.18); color: rgba(255,255,255,.85);
}

/* 라이트박스 */
.hp-gal-lb {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center;
  animation: gal-lb-fade .15s ease;
}
@keyframes gal-lb-fade { from { opacity: 0; } to { opacity: 1; } }
.hp-gal-lb-inner { max-width: 90vw; max-height: 90vh; position: relative; }
.hp-gal-lb-inner img { max-width: 90vw; max-height: 80vh; border-radius: 12px; box-shadow: 0 8px 48px rgba(0,0,0,.6); }
.hp-gal-lb-close {
  position: absolute; top: -16px; right: -16px; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255,255,255,.15); border: none; color: #fff;
  font-size: 18px; cursor: pointer; line-height: 36px; text-align: center;
}
.hp-gal-lb-info { margin-top: 14px; text-align: center; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 600; }
.hp-gal-empty { text-align: center; padding: 80px 20px; color: var(--hp-text-muted); }
