/* ============================================================
   사이트 전체 스타일
   - 색상, 글꼴 등을 바꾸고 싶으면 아래 :root 안의 값만 수정하면
     사이트 전체에 반영됩니다.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap');

:root {
  --bg: #0b0b0c;
  --bg-alt: #141416;
  --panel: #17171a;
  --text: #ededec;
  --text-dim: #9a9a9d;
  --accent: #b3272d;
  --accent-dim: #6e2023;
  --line: rgba(255, 255, 255, 0.08);

  /* 나눔고딕(무료 라이선스, 웹폰트로 항상 로드)을 기본으로 하고,
     혹시 로드가 늦어지는 경우를 대비해 맑은고딕 → 기본 sans-serif 순으로 대체됩니다. */
  --font-display: 'Nanum Gothic', 'Malgun Gothic', sans-serif;
  --font-body: 'Nanum Gothic', 'Malgun Gothic', sans-serif;

  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----------------------------------
   페이지 전환 시 fade in/out
   ---------------------------------- */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

main {
  animation: pageFadeIn 0.5s ease;
}

main.is-leaving {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ----------------------------------
   헤더
   ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 12, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.site-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent);
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 4px 0;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

/* ----------------------------------
   푸터
   ---------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  margin-top: 80px;
}

.site-footer .wrap {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ----------------------------------
   INFO 페이지
   ---------------------------------- */
.info-hero {
  padding: 96px 0 56px;
}

.info-hero .eyebrow {
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  margin-bottom: 18px;
}

.info-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.5;
  margin: 0 0 8px;
}

.info-hero p {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 620px;
}

.info-block {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.info-block h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-block h2::before {
  content: "";
  width: 4px;
  height: 14px;
  background: var(--accent);
  display: inline-block;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.info-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.info-list li strong {
  color: var(--text);
  font-weight: 500;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.notice {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.notice strong {
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

/* ----------------------------------
   PHOTO 페이지 - 갤러리
   ---------------------------------- */
.photo-hero {
  padding: 56px 0 32px;
}

.photo-hero .eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  margin-bottom: 14px;
}

.photo-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  margin: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding-bottom: 80px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--panel);
  cursor: zoom-in;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.4s ease;
}

.gallery figure:hover img {
  transform: scale(1.04);
}

.gallery-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  border: 1px dashed var(--line);
}

#gallery-sentinel {
  height: 1px;
  margin-bottom: 60px;
}

@media (max-width: 860px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
  .info-list li {
    grid-template-columns: 70px 1fr;
  }
  .site-nav {
    gap: 20px;
  }
}

/* ----------------------------------
   라이트박스 (사진 확대보기)
   ---------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.lightbox img.is-fading {
  opacity: 0;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 12px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  color: var(--accent);
}

.lightbox-close {
  top: 16px;
  right: 16px;
}

.lightbox-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
