/* 북한강옆 작업실 — 강물·안개 톤 */
:root {
  --bg: #f4f3ef;          /* 안개 낀 아침 */
  --ink: #1f2a2c;         /* 깊은 강물 */
  --muted: #6b7774;
  --river: #2f4a47;       /* 강물 초록 */
  --line: #d9dbd4;
  --serif: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 4rem; }
@media (max-width: 760px) { section[id] { scroll-margin-top: 5.5rem; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.8;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--river); color: var(--bg); }

/* 머리말 */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem var(--pad);
  background: rgba(244, 243, 239, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--serif); font-weight: 600; text-decoration: none; font-size: 1.05rem; letter-spacing: -.01em; }
.site-header nav { display: flex; gap: clamp(.9rem, 2.4vw, 2rem); flex-wrap: wrap; font-size: .88rem; }
.site-header nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.site-header nav a:hover { color: var(--ink); }

/* 첫 화면 */
.hero {
  position: relative;
  min-height: calc(100vh - 62px);
  display: flex; align-items: flex-end;
  padding: clamp(2.5rem, 7vw, 6rem) var(--pad);
  color: #f4f3ef;
  overflow: hidden;
  isolation: isolate;
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
/* images/hero.jpg 가 있으면 산·강 그림 위를 덮습니다 */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("images/hero.jpg") center / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(22, 34, 33, .75), rgba(22, 34, 33, .35) 45%, rgba(22, 34, 33, 0) 72%);
}
.mist { opacity: .55; filter: blur(30px); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-120px); } to { transform: translateX(120px); } }
@media (prefers-reduced-motion: reduce) { .mist { animation: none; } }

.hero-text { max-width: 40rem; }
.eyebrow { letter-spacing: .18em; text-transform: uppercase; font-size: .72rem; opacity: .85; margin: 0 0 1.25rem; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 5.6vw, 4.2rem); line-height: 1.28; letter-spacing: -.02em; margin: 0 0 1.25rem; }
.lede { font-size: clamp(1rem, 1.5vw, 1.12rem); margin: 0 0 2.25rem; opacity: .9; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.text-link { font-size: .92rem; text-decoration: none; opacity: .85; border-bottom: 1px solid rgba(244, 243, 239, .5); padding-bottom: .15rem; }
.text-link:hover { opacity: 1; }
.hero-vertical {
  position: absolute; right: var(--pad); top: clamp(2rem, 6vw, 4rem); margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--serif); font-size: clamp(.95rem, 1.4vw, 1.15rem); letter-spacing: .5em;
  color: var(--river); opacity: .75;
}

/* 버튼 */
.button {
  display: inline-block;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  background: var(--river);
  color: var(--bg);
  text-decoration: none;
  font-size: .92rem;
  border: 1px solid var(--river);
  transition: background .2s, color .2s, border-color .2s;
}
.button:hover { background: var(--ink); border-color: var(--ink); }
.button.light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.button.light:hover { background: #fff; border-color: #fff; }
.button.ghost { background: transparent; color: var(--river); }
.button.ghost:hover { background: var(--river); color: var(--bg); }

/* 공통 구역 */
.section { padding: clamp(5rem, 10vw, 8rem) var(--pad); max-width: 1240px; margin: 0 auto; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; }
.section h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.02em; line-height: 1.3; margin: 0 0 .6rem; }
.section-lede { color: var(--muted); margin: 0; }

/* 사진 자리 표시 — 실제 사진을 넣으면 <img> 로 바꿉니다 */
.ph { position: relative; width: 100%; height: 100%; min-height: 12rem; }
.ph::after {
  content: attr(data-label);
  position: absolute; left: 1rem; bottom: .8rem;
  font-size: .72rem; letter-spacing: .04em; color: rgba(255, 255, 255, .7);
}
.ph.tall { aspect-ratio: 3 / 4; height: auto; }
.t1 { background: linear-gradient(170deg, #c9d1ca, #7e948d); }
.t2 { background: linear-gradient(200deg, #e3ddd1, #b3a690); }
.t3 { background: linear-gradient(160deg, #aebfba, #4d6762); }
.t4 { background: linear-gradient(190deg, #dad8cf, #9aa49c); }
.t5 { background: linear-gradient(170deg, #e7e2da, #c3b4a3); }
.t6 { background: linear-gradient(180deg, #5d726d, #1f2f2d); }
img.ph { object-fit: cover; display: block; }

/* 갤러리 — 크기가 서로 다른 칸 */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(70px, 8vw, 110px);
  gap: clamp(.75rem, 1.6vw, 1.25rem);
}
.gallery figure { margin: 0; position: relative; overflow: hidden; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1rem .8rem;
  font-size: .85rem; color: #fff;
  background: linear-gradient(to top, rgba(20, 30, 30, .55), transparent);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.gallery figure:hover figcaption { opacity: 1; transform: none; }
.gallery figure:hover .ph::after { opacity: 0; }
.gallery .ph { transition: transform .6s ease; }
.gallery figure:hover .ph { transform: scale(1.02); }
.g1 { grid-column: span 4; grid-row: span 5; }
.g2 { grid-column: span 2; grid-row: span 5; }
.g3 { grid-column: span 2; grid-row: span 4; }
.g4 { grid-column: span 2; grid-row: span 4; }
.g5 { grid-column: span 2; grid-row: span 4; }
.g6 { grid-column: span 6; grid-row: span 5; }

/* 사진 + 글 두 칸 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split p { max-width: 32rem; }
.facts { list-style: none; padding: 0; margin: 2rem 0; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 1.5rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.facts span { flex: 0 0 5rem; color: var(--muted); font-size: .85rem; padding-top: .1rem; }
.address { font-size: 1.05rem; }

/* 소식 */
.news { border-top: 1px solid var(--ink); }
.news article { display: grid; grid-template-columns: 10rem 1fr; column-gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.news time { color: var(--muted); font-size: .85rem; letter-spacing: .04em; grid-row: span 2; padding-top: .35rem; }
.news h3 { margin: 0 0 .35rem; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.news p { margin: 0; color: var(--muted); }

.contact-links { display: flex; gap: .75rem; flex-wrap: wrap; margin: 2rem 0 1.5rem; }
.small { font-size: .85rem; color: var(--muted); }

.site-footer { text-align: center; padding: 4rem 1rem 3rem; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer p { margin: .2rem 0; }
.site-footer .logo { color: var(--ink); font-size: 1.1rem; margin-bottom: .4rem; }
.site-footer .small { margin-top: 1.5rem; font-size: .75rem; }

/* 휴대폰 */
@media (max-width: 760px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: .35rem; padding-block: .8rem; }
  .hero { min-height: 82vh; }
  .hero-vertical { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 64px; }
  .g1, .g6 { grid-column: span 2; grid-row: span 4; }
  .g2, .g3, .g4, .g5 { grid-column: span 1; grid-row: span 4; }
  .gallery figcaption { opacity: 1; transform: none; font-size: .78rem; }
  .gallery .ph::after { display: none; }
  .split { grid-template-columns: 1fr; }
  #visit .ph { order: -1; }
  .news article { grid-template-columns: 1fr; }
  .news time { grid-row: auto; padding: 0; }
}

/* ================= 게시판 · 관리자 ================= */
[hidden] { display: none !important; }
.site-header nav a[aria-current="page"] { color: var(--ink); }
.page main.section { min-height: 70vh; }
.board h1, .admin h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.02em; line-height: 1.3; margin: 0 0 .6rem; }
.admin h2 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; margin: 0 0 1rem; }
.board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.back { display: inline-block; font-size: .88rem; color: var(--muted); text-decoration: none; margin-bottom: 2rem; }
.back:hover { color: var(--ink); }

.filters { display: flex; gap: .4rem; margin-bottom: 1rem; }
.filters button {
  font: inherit; font-size: .85rem; padding: .4rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
}
.filters button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.post-list a {
  display: grid; grid-template-columns: 3.5rem 1fr auto auto; align-items: center; gap: 1rem;
  padding: 1.1rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background .15s;
}
.post-list a:hover, .post-list a.active { background: rgba(47, 74, 71, .06); }
.post-list .notice a { background: rgba(47, 74, 71, .04); }
.post-list .tag { font-size: .75rem; color: var(--muted); }
.post-list .notice .tag { color: var(--river); font-weight: 600; }
.post-list .title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-list .notice .title { font-weight: 600; }
.post-list .meta { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.status { font-size: .72rem; padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.status.done { border-color: var(--river); color: var(--river); }
.post-list.compact a { grid-template-columns: 1fr auto; row-gap: .1rem; padding: .85rem .5rem; }
.post-list.compact .meta { grid-column: 1 / -1; }
.empty { color: var(--muted); padding: 2rem 0; text-align: center; }
.pager { display: flex; justify-content: center; gap: .3rem; margin-top: 2rem; }
.pager a { min-width: 2.2rem; text-align: center; padding: .3rem; text-decoration: none; color: var(--muted); border-radius: 4px; }
.pager a[aria-current] { background: var(--ink); color: var(--bg); }

/* 글 읽기 */
.post { max-width: 46rem; }
.post-meta { font-size: .82rem; color: var(--muted); margin: 0 0 .5rem; }
.post-body { white-space: pre-wrap; margin: 1.5rem 0; }
.inquiry-info { display: grid; grid-template-columns: 6rem 1fr; gap: .5rem 1rem; margin: 1.5rem 0; padding: 1.25rem 0; border-block: 1px solid var(--line); font-size: .92rem; }
.inquiry-info dt { color: var(--muted); }
.inquiry-info dd { margin: 0; }
.reply { margin-top: 2.5rem; padding: 1.5rem 1.75rem; background: rgba(47, 74, 71, .07); border-left: 3px solid var(--river); }
.reply-label { margin: 0; font-size: .85rem; color: var(--river); font-weight: 600; }
.reply-label span { color: var(--muted); font-weight: 400; margin-left: .5rem; }
.reply .post-body { margin: .5rem 0 0; }
.waiting { color: var(--muted); font-size: .9rem; margin-top: 2rem; }

/* 폼 */
input, select, textarea {
  font: inherit; font-size: .95rem; color: var(--ink); width: 100%;
  padding: .7rem .85rem; margin-top: .35rem;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(47, 74, 71, .35); border-color: var(--river); }
textarea { resize: vertical; line-height: 1.7; }
label { display: block; font-size: .88rem; color: var(--muted); margin-bottom: 1.1rem; }
label b { color: #a0523c; font-weight: 400; }
button.button { font: inherit; font-size: .92rem; cursor: pointer; }
button.button:disabled { opacity: .5; cursor: wait; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row input { flex: 1; min-width: 10rem; margin: 0; }
.form-error { color: #a0523c; font-size: .88rem; min-height: 1.4em; margin: .5rem 0; }

.write-form { max-width: 46rem; margin-top: 2.5rem; }
.write-form .grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
.write-form .pw { max-width: 22rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { font-size: .85rem; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: .8rem 1rem; margin-bottom: 1rem; }
.privacy summary { cursor: pointer; }
.privacy ul { margin: .75rem 0 0; padding-left: 1.2rem; }
label.check { display: flex; gap: .6rem; align-items: center; color: var(--ink); font-size: .92rem; }
label.check input { width: auto; margin: 0; accent-color: var(--river); }

.unlock { margin: 2rem 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; max-width: 30rem; }
.unlock p:first-child { margin: 0 0 1rem; }

/* 관리자 */
.site-header .logo small { font-family: var(--sans); font-weight: 400; font-size: .75rem; color: var(--muted); margin-left: .4rem; }
.login { max-width: 22rem; margin: 4rem auto; }
.login input { margin-bottom: 1rem; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.detail { padding-bottom: 2rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.detail h2 { font-size: 1.5rem; }
.notice-form { padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.button.danger { color: #a0523c; border-color: #a0523c; }
.button.danger:hover { background: #a0523c; color: #fff; }
#more { margin-top: 1rem; }

@media (max-width: 760px) {
  .post-list a { grid-template-columns: 2.6rem 1fr auto; }
  .post-list a .meta { grid-column: 2 / -1; }
  .write-form .grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
}
.news-link { text-decoration: none; display: block; }
.news-link:hover h3 { color: var(--river); }
.more-link { margin-top: 1.5rem; text-align: right; }
.text-link.dark { border-bottom-color: var(--line); color: var(--muted); opacity: 1; }
.text-link.dark:hover { color: var(--ink); }
.done-msg { max-width: 46rem; padding: 1rem 1.25rem; margin: 0 0 2rem; background: var(--river); color: var(--bg); border-radius: 8px; font-size: .92rem; }

/* ================= 갤러리 ================= */
.gallery-page h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -.02em; line-height: 1.3; margin: 0 0 .6rem; }
.gallery-page .section-lede { margin-bottom: 2rem; }
.gallery-page .filters { margin-bottom: 2rem; flex-wrap: wrap; }

.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem); }
.album-card { text-decoration: none; display: block; }
.album-cover { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #dfe3dc; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.album-card:hover .album-cover img { transform: scale(1.03); }
.album-card h2 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin: .9rem 0 .15rem; }
.album-sub { margin: 0; font-size: .82rem; color: var(--muted); }
.badge { position: absolute; top: .6rem; left: .6rem; font-size: .72rem; padding: .15rem .55rem; border-radius: 999px; background: var(--ink); color: var(--bg); }

.album-desc { max-width: 40rem; color: var(--muted); white-space: pre-wrap; margin: 0 0 2.5rem; }
#album-title { margin-bottom: 1rem; }
.masonry { columns: 3 280px; column-gap: clamp(.6rem, 1.4vw, 1rem); margin-top: 2rem; }
.tile { display: block; width: 100%; padding: 0; border: 0; background: #dfe3dc; cursor: zoom-in; margin: 0 0 clamp(.6rem, 1.4vw, 1rem); break-inside: avoid; }
.tile img { display: block; width: 100%; height: auto; transition: opacity .25s; }
.tile:hover img { opacity: .88; }
.album-cta { text-align: center; padding: clamp(3rem, 7vw, 5rem) 0 0; }
.album-cta p { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 1rem; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(16, 22, 22, .96); display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: calc(100vw - 8rem); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 2rem; width: 100%; color: rgba(244, 243, 239, .75); font-size: .85rem; padding-top: .9rem; }
.lightbox button { position: absolute; background: none; border: 0; color: rgba(244, 243, 239, .8); cursor: pointer; font: 300 2.6rem/1 var(--sans); padding: 1rem; }
.lightbox button:hover { color: #fff; }
.lb-close { top: .5rem; right: 1rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* 홈 '작업' 칸에 실제 사진이 들어갔을 때 */
.gallery a.work-link { display: block; width: 100%; height: 100%; }
.gallery img.work-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.gallery figure:hover img.work-img { transform: scale(1.02); }

@media (max-width: 760px) {
  .masonry { columns: 2; }
  .lightbox figure { max-width: 100vw; }
  .lb-prev, .lb-next { display: none; }
}

/* 관리자 — 탭 · 갤러리 */
.tabs { display: flex; gap: 1.75rem; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
.tabs button { font: inherit; font-size: 1rem; background: none; border: 0; padding: .6rem 0; margin-bottom: -1px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
#new-album { margin-bottom: 1rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
#photo-panel { margin-top: 2rem; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center;
  padding: 2rem 1.25rem; border: 1.5px dashed #b7c3bc; border-radius: 10px; background: #fff; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.dropzone.over, .dropzone:hover { border-color: var(--river); background: #f8f9f6; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone strong { color: var(--ink); font-weight: 600; }
.dropzone span { font-size: .82rem; }
.upload-status { font-size: .88rem; color: var(--river); min-height: 1.4em; margin: .75rem 0 .25rem; }
.hint { font-size: .78rem; color: var(--muted); margin: 0 0 1rem; }
.photo-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.photo-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.photo-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #dfe3dc; }
.photo-card input { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: .8rem; padding: .5rem .6rem; }
.photo-tools { display: flex; gap: .3rem; padding: .45rem; }
.chip { font: inherit; font-size: .72rem; padding: .2rem .55rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.chip.on { background: var(--river); border-color: var(--river); color: var(--bg); }
.chip.danger { margin-left: auto; color: #a0523c; }
.chip.danger:hover { border-color: #a0523c; }
.gallery figcaption { pointer-events: none; }

/* ================= 영상 ================= */
.tabs a { font-size: 1rem; padding: .6rem 0; margin-bottom: -1px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.gallery-page .tabs { margin: 2rem 0 2rem; }

.video { position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.video.vertical { aspect-ratio: 9 / 16; max-width: 360px; margin-inline: auto; }
.video iframe, .video-facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { padding: 0; cursor: pointer; background: #111; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .3s; }
.video-facade:hover img { opacity: 1; }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(244, 243, 239, .92); box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.video-play::after { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--ink); }
.video-facade:hover .video-play { transform: translate(-50%, -50%) scale(1.07); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 1.75rem); align-items: start; }
.video-card h2 { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin: .9rem 0 .35rem; line-height: 1.45; }
.video-card .text-link { font-size: .85rem; }
.album-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 1.25rem; max-width: 1100px; margin-top: 2rem; align-items: start; }
.album-videos:empty { display: none; }

/* 홈 대표 영상 */
.home-video { margin-top: clamp(3rem, 6vw, 5rem); }
.home-video .label { margin-bottom: .5rem; }
.home-video h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 0 0 1.25rem; }
.home-video .video:not(.vertical) { max-width: 100%; }

@media (max-width: 760px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* 관리자 — 영상 탭 */
.video-form { max-width: 46rem; margin-bottom: 1.5rem; }
.video-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.video-admin-card img { aspect-ratio: 16 / 9; }
.video-admin-card select { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: .8rem; padding: .45rem .6rem; }
.card-msg { font-size: .75rem; color: var(--river); margin: 0 .6rem .5rem; min-height: 1em; }

/* 첫 화면 배경 영상 */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; background: transparent; }
.hero.has-video .hero-vertical { color: rgba(244, 243, 239, .85); }
.hero.has-video::after {
  background:
    linear-gradient(to bottom, rgba(22, 34, 33, .35), rgba(22, 34, 33, 0) 22%),
    linear-gradient(to top, rgba(22, 34, 33, .75), rgba(22, 34, 33, .35) 45%, rgba(22, 34, 33, 0) 72%);
}

.footer-links { margin-top: .8rem !important; }
.footer-links a { color: var(--muted); }

/* ================= 공간 카드 (홈) ================= */
.space-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.space-card { display: block; text-decoration: none; }
.space-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe3dc; min-height: 0; }
.space-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
a.space-card:hover .space-cover img { transform: scale(1.03); }
.space-card h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 1.25rem 0 .35rem; }
.space-desc { color: var(--muted); margin: 0 0 1rem; }
.space-card .facts { margin: 1rem 0 1.25rem; }
.space-card .text-link { font-size: .88rem; }
a.space-card:hover .text-link { color: var(--ink); }
.album-facts { max-width: 40rem; margin: 0 0 2rem; }
.other-space { margin-top: 2rem; font-size: .9rem; color: var(--muted); }

/* ================= 일정표 ================= */
.schedule-page h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -.02em; margin: 0 0 .6rem; }
.schedule-page .tabs { margin: 2rem 0 1.5rem; }
.cal-head { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0 1rem; }
.cal-head h2 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; margin: 0; min-width: 8.5rem; text-align: center; }
.cal-nav { font: 300 1.8rem/1 var(--sans); background: none; border: 0; color: var(--muted); cursor: pointer; padding: .1rem .6rem; }
.cal-nav:hover { color: var(--ink); }
#today { margin-left: auto; }
.cal { border-top: 1px solid var(--ink); }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow span { font-size: .78rem; color: var(--muted); text-align: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.cal-dow .sun, .cal-day.sun .num { color: #a0523c; }
.cal-dow .sat, .cal-day.sat .num { color: #3d5f8a; }
.cal-day {
  font: inherit; text-align: left; background: none; cursor: pointer; color: var(--ink);
  min-height: 7.2rem; padding: .45rem .4rem; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .25rem; position: relative; min-width: 0;
}
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day:hover { background: rgba(47, 74, 71, .04); }
.cal-day.other { color: var(--muted); background: rgba(0, 0, 0, .015); }
.cal-day.other .num { opacity: .45; }
.cal-day .num { font-size: .85rem; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .num { background: var(--ink); color: var(--bg) !important; }
.cal-day.selected { outline: 2px solid var(--river); outline-offset: -2px; }
.chips { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chip-ev { font-size: .72rem; line-height: 1.35; padding: .1rem .35rem; border-radius: 3px; background: color-mix(in srgb, var(--c, var(--river)) 20%, transparent); border-left: 3px solid var(--c, var(--river)); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.chip-ev.all { background: var(--c, var(--river)); color: var(--bg); }
.more { font-size: .7rem; color: var(--muted); padding-left: .35rem; }
.dots { display: none; }

/* 공간별 색 — 강가의 숲, 흙, 물, 볕 */
.sp0 { --c: #4e6e5d; }
.sp1 { --c: #a8694a; }
.sp2 { --c: #56708c; }
.sp3 { --c: #94803f; }
.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 2rem 0 0; padding: 0; font-size: .95rem; }
.cal-legend li, .day-list .where { display: inline-flex; align-items: center; gap: .5rem; }
.cal-legend li::before, .day-list .where::before { content: ""; width: .8rem; height: .8rem; border-radius: 3px; background: var(--c); flex: none; }
.day-list .where { flex: 0 0 auto; min-width: 7.5rem; font-size: .9rem; }

.day-detail { margin-top: 2rem; padding: 1.5rem 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; max-width: 40rem; }
.day-detail h3 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin: 0 0 1rem; }
.day-list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.day-list li { display: flex; gap: 1.25rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.day-list .time { flex: 0 0 8.5rem; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.day-list .free { color: var(--muted); }

@media (max-width: 760px) {
  .cal-day { min-height: 3.6rem; align-items: center; padding: .35rem .1rem; }
  .chips { display: none; }
  .dots { display: flex; gap: 3px; }
  .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
  .day-list li { flex-wrap: wrap; gap: .25rem 1rem; }
  .day-list .title { flex-basis: 100%; }
  .day-detail { padding: 1.25rem; }
  .day-list .time { flex-basis: 6.5rem; }
}

/* 관리자 — 일정 탭 */
.cal-link { max-width: 46rem; margin-bottom: 2rem; }
.cal-link-row { margin: .5rem 0; }
.cal-link-row strong { min-width: 9rem; }
.cal-link-row select, .sched-bar select { width: auto; min-width: 12rem; margin: 0; }
.ics-row { margin-top: -.1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.ics-row .ics-label { min-width: 9rem; color: var(--muted); font-size: .9rem; }
.ics-row input { flex: 1 1 18rem; margin: 0; font-size: .85rem; }
.badge-s.ics { background: color-mix(in srgb, #a8694a 18%, transparent); }
.sched-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.sched-bar { margin-bottom: 1rem; }
.sched-bar strong { min-width: 6.5rem; text-align: center; }
.event-admin-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.event-row { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: .75rem; align-items: center; padding: .7rem .25rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.event-row .when { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.event-row .photo-tools { padding: 0; }
.badge-s { font-size: .7rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .05rem .5rem; margin-left: .5rem; white-space: nowrap; }
@media (max-width: 760px) { .sched-grid { grid-template-columns: 1fr; } .event-row { grid-template-columns: 1fr auto; } .event-row .when { grid-column: 1 / -1; } }
.acct-form { margin: 1rem 0 .5rem; }
.acct-form .adv { font-size: .85rem; color: var(--muted); margin: .25rem 0 1rem; }
.acct-form .adv summary { cursor: pointer; }
#acct-tools { margin: .25rem 0 1rem; }

/* ================= 상품 (돌잔치·가족 스냅·사계절 스냅) ================= */
.product-page .section + .section { padding-top: 0; }
.prod-intro h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.02em; line-height: 1.25; margin: 0 0 1rem; }
.prod-keys { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.prod-keys li { padding: 1.1rem 1rem 1.1rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
.prod-keys span { display: block; font-size: .75rem; letter-spacing: .08em; color: var(--muted); margin-bottom: .35rem; }
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.package { border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.25rem); background: #faf9f6; display: flex; flex-direction: column; }
.package.featured { border-color: var(--river); background: #fff; }
.package .tag { font-size: .72rem; letter-spacing: .08em; color: var(--river); margin: 0 0 .5rem; }
.package h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin: 0 0 .35rem; }
.package .price { font-size: 1.15rem; margin: 0 0 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.package ul { list-style: none; padding: 0; margin: 0; }
.package li { font-size: .92rem; padding: .35rem 0 .35rem 1.1rem; position: relative; }
.package li::before { content: ""; position: absolute; left: 0; top: .9rem; width: .45rem; height: 1px; background: var(--river); }
.prod-notes { margin-top: clamp(2rem, 4vw, 3rem); }
.prod-videos { margin-top: clamp(2.5rem, 5vw, 4rem); }
.prod-videos:empty { display: none; }
.prod-cta { text-align: center; }
.prod-cta .section-lede { margin: 0 auto; max-width: 32rem; }
.prod-cta .contact-links { justify-content: center; }
@media (max-width: 760px) {
  .prod-keys { grid-template-columns: repeat(2, 1fr); }
  .packages { grid-template-columns: 1fr; }
}

/* ================= 인스타그램 ================= */
.insta-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.4rem, 1vw, .75rem); }
.ig-item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #dfe3dc; }
.ig-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease, opacity .3s; }
.ig-item:hover img { transform: scale(1.04); opacity: .9; }
.ig-kind { position: absolute; top: .5rem; right: .6rem; color: #fff; font-size: .85rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.insta-admin .ig-grid { margin-top: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.ig-steps { margin: .75rem 0; padding-left: 1.25rem; font-size: .88rem; line-height: 1.8; }
@media (max-width: 760px) {
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  #insta-grid .ig-item:nth-child(n+7) { display: none; }
}
.prod-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.02em; margin: 0 0 1rem; }
.product-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.product-card { display: block; text-decoration: none; }
.product-cover { aspect-ratio: 4 / 5; height: auto; min-height: 0; overflow: hidden; background-color: #dfe3dc; margin-bottom: 1.25rem; }
.product-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.product-card:hover .product-cover img { transform: scale(1.03); }
.product-card .label { margin-bottom: .4rem; }
.product-card h2, .product-card h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 0 0 .35rem; }
.product-card p:not(.label) { color: var(--muted); margin: 0 0 1rem; font-size: .95rem; }
.product-card .text-link { font-size: .88rem; }
.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.75rem, 1.5vw, 1.25rem); }
.season { padding: clamp(1.25rem, 2.5vw, 1.75rem); min-height: 11rem; color: #fff; }
.season .label { color: rgba(255, 255, 255, .75); margin-bottom: .5rem; }
.season h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 0 0 .75rem; }
.season p:not(.label) { margin: 0; font-size: .9rem; line-height: 1.6; }
.s-spring { background: linear-gradient(160deg, #c99aa0, #9b6f78); }
.s-summer { background: linear-gradient(160deg, #6f9a86, #3f6a5c); }
.s-autumn { background: linear-gradient(160deg, #c08a55, #8c5a33); }
.s-winter { background: linear-gradient(160deg, #8d9aa6, #5a6773); }
.prod-intro .back { margin-bottom: 1.5rem; }
@media (max-width: 760px) {
  .product-cards { grid-template-columns: 1fr; }
  .seasons { grid-template-columns: repeat(2, 1fr); }
}
