/* 구미 특집(/gumi) — site.css 토큰(--brand·--surface·--line…)·카드 꼴(.card·.grid·.rail·.block) 그대로, 축제 칸만 축제 색(국물 빨강·면발 노랑)을 조금 */
.gumi { --soup: #d52b1e; --noodle: #ffc845; }
.g-hero { min-height: 380px; }
.g-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.g-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; backdrop-filter: blur(4px); }
.g-chips a b { font-weight: 800; }
.g-chips a.hot { background: var(--noodle); border-color: var(--noodle); color: #1b1310; }
.g-chips a:hover { background: rgba(255,255,255,.28); }
.g-chips a.hot:hover { background: #ffd56e; }

/* 축제 칸 */
.g-fest { padding: 36px 0 28px; background: color-mix(in srgb, var(--noodle) 16%, var(--bg)); border-bottom: 1px solid var(--line); }
.g-fest-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.g-fest-vis { position: relative; display: block; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.g-fest-vis img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.g-fest-bd h2 { margin: 4px 0 10px; font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
.g-fest-lead { margin: 0 0 16px; color: var(--muted); }
.g-nums { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; padding: 0; }
.g-nums li { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.g-nums b { font-size: 20px; font-weight: 800; color: var(--soup); line-height: 1.2; }
.g-nums span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.g-fest-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.g-fest-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; margin-top: 28px; }
.g-fest-dl { margin: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); align-content: start; border-top: 2px solid var(--ink); }
.g-fest-dl dt, .g-fest-dl dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.g-fest-dl dt { font-weight: 700; color: var(--muted); }
.g-fest-vids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.g-fest-vids figure { margin: 0; }
.g-fest-vids video { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; display: block; }
.g-fest-vids figcaption { margin-top: 6px; font-weight: 700; font-size: 14px; }
.g-fest-vids small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.g-fest-past { margin-top: 28px; }
.g-fest-past h3 { margin: 0; font-size: 18px; }
.g-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.g-strip img { flex: 0 0 auto; width: 220px; height: 150px; object-fit: cover; border-radius: 10px; scroll-snap-align: start; background: var(--chip); }
.g-src { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.g-src a { color: var(--brand); }

/* 차례 막대 — 머리 아래 붙음 */
.g-nav { position: sticky; top: 60px; z-index: 900; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.g-nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.g-nav .wrap::-webkit-scrollbar { display: none; }
.g-nav a { flex: none; padding: 12px 12px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--muted); white-space: nowrap; }
.g-nav a:hover { color: var(--brand); }
.g-nav small { font-weight: 500; font-size: 12px; }
.g-sec, #tourapi, #photos, #festival { scroll-margin-top: 112px; }

/* 맛집·숙박·명소 */
.g-lead { margin: -4px 0 12px; color: var(--muted); font-size: 14.5px; }
.g-lead b { color: var(--ink); }
.g-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.g-tools .types { flex: 1 1 420px; min-width: 0; padding: 2px 0 4px; }
.g-tools .types button { flex: none; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; white-space: nowrap; }
.g-tools .types button small { color: var(--muted); font-size: 12px; }
.g-tools .types button.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.g-tools .types button.on small { color: inherit; opacity: .8; }
.g-q { flex: 0 1 260px; min-width: 0; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.gcard { position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.gcard[hidden] { display: none; }
.gcard-hit { display: block; flex: 1; text-decoration: none; color: inherit; }
.gcard .ph { position: relative; aspect-ratio: 4 / 3; background: var(--chip); }
.gcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.gcard .noimg { display: grid; place-items: center; height: 100%; color: var(--muted); }
.gcard .badge { position: absolute; left: 10px; top: 10px; }
.gcard .bd { padding: 12px 14px 6px; }
.gcard h3 { margin: 0 0 4px; font-size: 16.5px; font-weight: 700; }
.gcard .sub { margin: 0 0 4px; font-size: 14px; color: var(--ink); line-height: 1.45; }
.gcard .tags { margin: 0 0 4px; font-size: 12.5px; color: var(--brand); }
.gcard .addr { margin: 0; font-size: 13px; color: var(--muted); }
.gcard-acts { display: flex; gap: 6px; margin: 0; padding: 8px 14px 14px; }
.gcard-acts a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.gcard-acts a:last-child:not(:first-child) { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.g-photos { margin-top: 0; }
.g-mapcta a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 20px 22px; border-radius: var(--r); background: var(--brand); color: var(--brand-ink); text-decoration: none; }
.g-mapcta b { font-size: 19px; }
.g-mapcta span { grid-column: 1; opacity: .9; font-size: 14.5px; }
.g-mapcta em { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-weight: 700; padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.18); }

/* 상세 창 — PC 가운데 상자, 휴대폰 아래 시트 */
.gdlg { width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: hidden; }
.gdlg::backdrop { background: rgba(10, 18, 14, .6); }
.gdlg-in { max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.gdlg-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 8px 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.gdlg-bar b { font-size: 14px; color: var(--brand); }
.gdlg-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.gdlg-x:hover { background: var(--chip); }
.gdlg-gal { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; padding: 14px 20px 0; scrollbar-width: thin; }   /* scroll-padding 없으면 맞춤이 첫 사진을 가장자리에 붙인다 */
.gdlg-gal img { flex: 0 0 86%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; scroll-snap-align: start; background: var(--chip); }
.gdlg-gal img:only-child { flex-basis: 100%; }
.gdlg-head { padding: 16px 20px 4px; }
.gdlg-cat { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.gdlg-head h2 { margin: 0; font-size: 24px; font-weight: 800; }
.gdlg-desc { margin: 6px 0 0; font-size: 15px; }
.gdlg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.gdlg-tags span { padding: 3px 10px; border-radius: 999px; background: var(--chip); font-size: 12.5px; }
.gdlg-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 16px; border-bottom: 1px solid var(--line); }
.gdlg-acts a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); }
.gdlg-acts a.main { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.gdlg-acts a:hover { border-color: var(--brand); }
.gdlg-sec { padding: 16px 20px 4px; }
.gdlg-sec h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.gdlg-sec > p { margin: 0; font-size: 15px; line-height: 1.75; }
.gdlg-menu { list-style: none; margin: 0; padding: 0; }
.gdlg-menu li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.gdlg-menu b { flex: none; }
.gdlg-dl { margin: 0; }
.gdlg-dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.gdlg-dl dt { font-weight: 700; color: var(--muted); }
.gdlg-dl dd { margin: 0; overflow-wrap: anywhere; }
.gdlg-dl a { color: var(--brand); font-weight: 600; }
.gdlg-copy { min-height: 32px; margin-left: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.gdlg-src { margin: 0; padding: 16px 20px 24px; font-size: 12.5px; color: var(--muted); }
.gdlg-src a { color: var(--brand); }
.gdlg-toast { position: sticky; bottom: 16px; width: max-content; margin: -40px auto 16px; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--surface); font-size: 13px; }

@media (max-width: 860px) {
  .g-fest-top, .g-fest-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .g-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .g-hero { min-height: 340px; }
  .g-nav { position: static; }            /* 휴대폰은 머리(약 100px)가 이미 붙어 있다 — 막대까지 붙이면 화면을 너무 가린다 */
  .g-sec, #tourapi, #photos, #festival { scroll-margin-top: 112px; }
  .g-fest-vids { grid-template-columns: minmax(0, 1fr); }
  .g-fest-dl { grid-template-columns: 82px minmax(0, 1fr); }
  .g-strip img { width: 180px; height: 124px; }
  .g-q { flex: 1 1 100%; }
  .g-mapcta a { grid-template-columns: minmax(0, 1fr); }
  .g-mapcta em { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 8px; }
  .gdlg { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .gdlg-in { max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom); }
  .gdlg-dl > div { grid-template-columns: 76px minmax(0, 1fr); }
  .gdlg-head h2 { font-size: 21px; }
}

/* 구미 영상 — 어두운 영화관 띠, 큰 화면(16:9 고정 — 세로 쇼츠도 같은 틀에 맞춰 넣어 쪽이 흔들리지 않게) + 무작위 재생 + 목록 */
.g-fest-grid .g-fest-past { margin-top: 0; }
.g-vids { padding: 40px 0 36px; background: #14100e; color: #f4efe9; scroll-margin-top: 112px; }
.g-vids .block-h h2 { color: #fff; }
.g-vids .block-h h2 small { color: #a99d93; font-size: 15px; font-weight: 500; }
.g-vids .block-h a { color: #ffc845; }
.g-vids .g-lead { color: #c9bfb6; }
.g-vf { margin-bottom: 16px; }
.g-vf button { flex: none; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.g-vf button small { color: #a99d93; font-size: 12px; }
.g-vf button.on { background: #ffc845; border-color: #ffc845; color: #1b1310; font-weight: 700; }
.g-vf button.on small { color: inherit; }
.g-stage { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: center; margin: 0 0 24px; }
.g-screen { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.g-screen video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.g-now-k { margin: 0; font-size: 13px; font-weight: 700; color: #ffc845; }
.g-now-t { margin: 6px 0 6px; font-size: 26px; font-weight: 800; color: #fff; }
.g-now-d { margin: 0; color: #c9bfb6; font-size: 15px; }
.g-now-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 0; }
.g-vids .btn { background: #ffc845; color: #1b1310; }
.g-auto { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; color: #c9bfb6; cursor: pointer; }
.g-auto input { width: 18px; height: 18px; accent-color: #ffc845; }
.g-vlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px 14px; }
.g-vlist li[hidden] { display: none; }
.g-vcard { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.g-vimg { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #2a221e; }
.g-vimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.g-vcard.is-v .g-vimg img { object-fit: contain; }
.g-vcard:hover .g-vimg img { transform: scale(1.04); }
.g-vdur { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; font-style: normal; }
.g-vcard b { font-size: 14.5px; line-height: 1.35; }
.g-vcard small { font-size: 12.5px; color: #a99d93; }
.g-vcard:hover b, .g-vcard.on b { color: #ffc845; }
.g-vcard.on .g-vimg { outline: 3px solid #ffc845; outline-offset: 2px; }
@media (max-width: 860px) {
  .g-stage { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .g-now-t { font-size: 21px; }
}
@media (max-width: 640px) {
  .g-vlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .g-vids { scroll-margin-top: 112px; }
}
