/* 행사 사진 갤러리 (#photos) — 색·글꼴 변수는 style.css :root 것을 그대로 쓴다 */
.photos { padding: 12px 12px 90px; }
.g-head { text-align: center; padding: 10px 0 6px; }
.g-kicker { margin: 0; font-family: var(--en-title); font-size: 11.5px; letter-spacing: .14em; color: var(--ink-faint); text-transform: uppercase; }
html[lang="ko"] .g-kicker { font-family: var(--ko-title); letter-spacing: .06em; font-size: 12.5px; }
.g-title { margin: 8px 0 0; font-family: var(--ko-title); font-weight: 700; font-size: 25px; line-height: 1.25; letter-spacing: -.005em; }
.g-title small { display: block; margin-top: 6px; font-family: var(--en-title); font-weight: 400; font-size: 13px; letter-spacing: .06em; color: var(--ink-soft); }
html[lang="en"] .g-title { font-family: var(--en-title); font-weight: 400; font-size: 27px; letter-spacing: .01em; }
html[lang="en"] .g-title small { font-family: var(--ko-title); letter-spacing: .02em; }
.g-title::after { content: ""; display: block; width: 36px; height: 1px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, rgba(var(--orange), .9), transparent); }
.g-note { margin: 10px 0 0; font-size: 12px; color: var(--ink-faint); }

/* 사진 오기 전 — 빈 액자 + 안내 */
.g-empty { max-width: 340px; margin: 26px auto 0; text-align: center; animation: g-rise .9s cubic-bezier(.2,.7,.2,1) .15s both; }
.g-frame { position: relative; width: 132px; aspect-ratio: 4 / 5; margin: 0 auto 26px; padding: 9px; border: 1px solid var(--line); border-radius: 3px; background: rgba(255,252,247,.55); }
.g-frame span { display: block; height: 100%; border: 1px solid var(--line); border-radius: 2px;
  background: linear-gradient(180deg, transparent 58%, rgba(var(--yellow), .28) 78%, rgba(var(--orange), .22)); }
.g-frame::after { content: ""; position: absolute; left: 50%; top: -12px; width: 1px; height: 12px; background: var(--line); }
.g-empty-msg { margin: 0; font-family: var(--ko-title); font-size: 17px; line-height: 1.75; letter-spacing: -.01em; color: var(--ink); word-break: keep-all; text-wrap: balance; }
html[lang="en"] .g-empty-msg { font-family: var(--en-title); font-size: 18px; line-height: 1.6; letter-spacing: .005em; }
.g-empty-sub { margin: 14px 0 0; font-family: var(--en-title); font-size: 12px; letter-spacing: .12em; color: var(--ink-faint); }
html[lang="ko"] .g-empty-sub { font-family: var(--ko-title); letter-spacing: .06em; }
.g-empty-sub::before { content: ""; display: block; width: 36px; height: 1px; margin: 0 auto 14px; background: linear-gradient(90deg, transparent, rgba(var(--orange), .9), transparent); }
.g-actions { display: flex; justify-content: center; gap: 8px; margin: 16px 0 4px; }
.g-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 18px; border-radius: 99px;
  border: 1px solid var(--ink); background: var(--ink); color: #FBF6EE; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, opacity .2s ease, transform .15s ease;
}
.g-btn:active { transform: scale(.96); }
.g-btn:disabled { opacity: .45; cursor: default; }
.g-btn.ghost { background: rgba(255,252,247,.7); color: var(--ink); border-color: var(--line); }
.g-btn.ghost[aria-pressed="true"] { border-color: var(--ink); }
.g-btn.light { background: #FBF6EE; color: #2A1E16; border-color: #FBF6EE; }
.g-chips { justify-content: flex-start; }
@media (min-width: 560px) { .g-chips { justify-content: center; } }

/* 격자 — 2열(넓으면 3·4열), 사진 비율 그대로 쌓기 */
.g-grid { display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; }
.g-col { flex: 1; min-width: 0; }
@media (min-width: 720px) { .g-grid { gap: 10px; } }
.g-item {
  position: relative; display: block; width: 100%; margin: 0 0 8px; padding: 0; border: 0; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--yellow), .35), rgba(var(--orange), .18)); cursor: zoom-in; break-inside: avoid;
  animation: g-rise .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes g-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.g-item img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .5s ease; }
@media (hover: hover) { .g-item:hover img { transform: scale(1.03); } }
.g-check { display: none; }
.g-grid.selecting .g-item { cursor: pointer; }
.g-grid.selecting .g-check {
  display: block; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid #fff; background: rgba(30,23,18,.25); box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.g-grid.selecting .g-item[aria-pressed="true"] img { transform: scale(.94); opacity: .9; }
.g-grid.selecting .g-item[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.g-grid.selecting .g-item[aria-pressed="true"] .g-check { background: var(--ink); border-color: var(--ink); }
.g-grid.selecting .g-item[aria-pressed="true"] .g-check::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* 고르기 — 아래 고정 바 */
.g-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 99px;
  background: rgba(42,30,22,.92); color: #FBF6EE; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -12px rgba(42,30,22,.6); animation: g-rise .35s ease both;
}
.g-bar .g-count { flex: 1; font-size: 14px; font-weight: 600; }
.g-bar .g-btn { background: #FBF6EE; color: #2A1E16; border-color: #FBF6EE; }

/* 전체 받기 — 아래에서 올라오는 시트 */
.g-sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; background: rgba(30,23,18,.45); animation: fade .2s ease both; }
.g-sheet-in {
  width: 100%; max-width: 520px; max-height: 85vh; overflow: auto; padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; background: var(--bg); animation: g-up .35s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes g-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.g-sheet-in h3 { margin: 0 0 10px; font-family: var(--ko-title); font-size: 18px; }
.g-tip { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
.g-zip { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 13px 4px; border-bottom: 1px dashed var(--line); font-weight: 600; }
.g-zip::after { content: "↓"; color: var(--ink-faint); font-weight: 400; }
.g-zip small { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--ink-faint); }
.g-zip.drive::after { content: "↗"; }
.g-sheet .g-close { width: 100%; margin-top: 16px; }

/* 크게 보기 — 어두운 바탕, 옆으로 넘김 */
.g-view { position: fixed; inset: 0; z-index: 50; background: #1E1712; color: #FBF6EE; animation: sv-in .32s ease both; }  /* sv-in·sv-img는 style.css(.shot-view)와 같은 것 */
.g-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.g-track::-webkit-scrollbar { display: none; }
.g-track figure { flex: none; width: 100%; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; padding: 56px 0 120px; scroll-snap-align: center; }
.g-track img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; -webkit-touch-callout: default; animation: sv-img .42s cubic-bezier(.2,.7,.2,1) both; }
.g-x { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 10px; width: 44px; height: 44px; border: 0; background: transparent; color: #FBF6EE; font-size: 30px; line-height: 1; cursor: pointer; }
.g-vbar { position: absolute; left: 0; right: 0; bottom: calc(34px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: 16px; }
.g-idx { font-family: var(--en-title); font-size: 13px; letter-spacing: .08em; opacity: .75; }
.g-hint { position: absolute; left: 0; right: 0; bottom: calc(10px + env(safe-area-inset-bottom)); margin: 0; text-align: center; font-size: 11.5px; opacity: .55; }

@media (prefers-reduced-motion: reduce) { .g-item, .g-bar, .g-sheet-in, .g-track img, .g-empty { animation: none; } }
