@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

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

[hidden] {
  display: none !important;
}

/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --bg:          #EEE6FF;
  --white:       #FFFFFF;
  --surface:     #F7F3FF;

  --lavender:    #C4AEFF;
  --lavender-d:  #8B6FD4;
  --lavender-l:  #E8DEFF;
  --pink:        #FF9FC0;
  --pink-l:      #FFE0EC;
  --mint:        #A8E8D4;
  --sky:         #AECEFF;
  --yellow:      #FFE87A;

  --ink:         #1E1530;
  --ink-2:       #4E4270;
  --ink-3:       #9888BC;
  --ink-4:       #C8BEDC;

  --border:      #B8AADC;

  --shadow-sm:   0 2px 0 var(--border);
  --shadow-md:   0 4px 0 var(--border);
  --shadow-lg:   0 6px 0 var(--border);

  --r-sm:   12px;
  --r-md:   18px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-pill: 999px;
}

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Pretendard', -apple-system, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(180, 155, 255, .45) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

body.body-lightbox-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: var(--white);
  border-bottom: 2px solid var(--border);
}

.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo .logo-pill {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(0,0,0,.08);
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 7px 18px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  transition: background .18s, color .18s, border-color .18s;
}

nav a:hover {
  background: var(--lavender-l);
  color: var(--lavender-d);
  border: 2px solid var(--border);
}

.lang-toggle {
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-2);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, color .18s, border-color .18s;
}

.lang-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--lavender-d);
  border-color: var(--lavender);
}

.auth-toggle,
.auth-chip-btn,
.auth-secondary-btn,
.auth-danger-btn {
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-2);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, color .18s, border-color .18s;
}

.auth-toggle:hover,
.auth-chip-btn:hover,
.auth-secondary-btn:hover,
.auth-danger-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--lavender-d);
  border-color: var(--lavender);
}

.auth-secondary-btn,
.auth-danger-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--ink-2);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.auth-danger-btn {
  color: #a44969;
  background: #fff1f6;
}

.auth-muted-btn {
  background: #f4f4f6;
  color: #8d8898;
  border-color: #d8d4de;
  box-shadow: none;
}

.auth-muted-btn:hover {
  color: #7b7588;
  border-color: #cac4d4;
  box-shadow: var(--shadow-sm);
}

.auth-logout-btn {
  background: var(--lavender-d);
  color: #fff;
  border-color: var(--ink);
}

.auth-logout-btn:hover {
  color: #fff;
  border-color: var(--ink);
}

/* ─────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────── */
.intro {
  padding: 130px 48px 0;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: start;
}

.intro-left {
  padding-top: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lavender-d);
  background: var(--lavender-l);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 24px;
}

.eyebrow::before {
  content: '✦';
  font-size: 9px;
}

.intro-left h1 {
  font-size: clamp(40px, 4.6vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 24px;
  color: var(--ink);
}

.intro-left h1 .accent {
  color: var(--lavender-d);
}

.intro-left .desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 420px;
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  border: 2px solid var(--border);
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s;
}

.scroll-hint:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.scroll-hint svg {
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(3px); }
}

/* ─────────────────────────────────────────
   UPLOAD CARD
───────────────────────────────────────── */
.upload-card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 2px solid var(--border);
  padding: 36px 34px 34px;
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.upload-card.is-uploading {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--border);
  border-color: var(--lavender);
}

.card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 10px;
}

.card-label::before {
  content: '♡';
  font-size: 12px;
}

.upload-card h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 5px;
}

.upload-card .card-sub {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 22px;
  line-height: 1.55;
}

/* ─── Dropzone ─── */
.dropzone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .22s, background .22s;
  margin-bottom: 18px;
  background: var(--surface);
}

.dropzone:hover,
.dropzone.over {
  border-color: var(--lavender);
  background: var(--lavender-l);
}

.dropzone.has-files {
  border-color: var(--lavender-d);
  border-style: solid;
  background: var(--lavender-l);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dz-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
  color: var(--lavender-d);
  opacity: .7;
}

.dz-text {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.7;
}

.dz-text strong {
  color: var(--ink-2);
  font-weight: 600;
}

.dz-text .formats {
  font-size: 11px;
  color: var(--ink-4);
  margin-top: 4px;
}

.dz-preview {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}

.dz-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 2px solid var(--border);
}

/* ─── Form Fields ─── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.field input,
.field textarea {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: 11px 15px;
  font-size: 13.5px;
  font-family: 'Pretendard', -apple-system, sans-serif;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-4);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--lavender-d);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--lavender-l);
}

.field textarea {
  resize: none;
  height: 78px;
  line-height: 1.65;
}

.field.full {
  grid-column: 1 / -1;
}

/* ─── Notice ─── */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--pink-l);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 16px 0 18px;
}

.notice-icon {
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.config-message,
.gallery-status {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.7;
}

.config-message {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 2px solid var(--border);
  background: var(--lavender-l);
}

/* ─── Submit Button ─── */
.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--lavender-d);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .1s, box-shadow .1s;
  box-shadow: var(--shadow-lg);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--border);
}

.btn-submit:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--border);
}

.btn-submit.loading {
  pointer-events: none;
  opacity: .65;
}

.btn-submit.done {
  background: #6CBFA0;
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.btn-submit:disabled {
  cursor: not-allowed;
  opacity: .75;
}

.upload-feedback {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 0 2px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height .35s ease, opacity .28s ease, transform .28s ease, margin-top .28s ease;
}

.upload-feedback.active {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
}

.upload-feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upload-feedback-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 2px solid var(--border);
  background: var(--lavender-l);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--lavender-d);
}

.upload-feedback-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.upload-feedback-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  animation: memoryDot 1.15s infinite ease-in-out;
}

.upload-feedback-dots i:nth-child(2) {
  animation-delay: .15s;
  background: var(--lavender);
}

.upload-feedback-dots i:nth-child(3) {
  animation-delay: .3s;
  background: var(--mint);
}

.upload-feedback-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.5;
}

.upload-progress {
  position: relative;
  height: 10px;
  border-radius: var(--r-pill);
  background: #efe9ff;
  border: 2px solid var(--border);
  overflow: hidden;
}

.upload-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--lavender);
  transition: width .65s ease;
}

@keyframes memoryDot {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: .45;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* ─────────────────────────────────────────
   SEPARATOR
───────────────────────────────────────── */
.sep {
  max-width: 1240px;
  margin: 80px auto 0;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.sep-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}

.sep-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px 16px;
  box-shadow: var(--shadow-sm);
}

.sep-label::before,
.sep-label::after {
  content: '✦';
  font-size: 8px;
  color: var(--lavender);
}

/* ─────────────────────────────────────────
   GALLERY
───────────────────────────────────────── */
.gallery-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 48px 120px;
}

.gallery-status {
  margin-bottom: 18px;
}

.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.gallery-meta h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}

.gallery-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slideshow-launch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink-2);
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s, color .12s;
}

.slideshow-launch:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--lavender-d);
}

.gallery-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 12px;
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.gallery-sort span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}

.gallery-sort select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  padding-right: 2px;
}

.gallery-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  padding: 5px 14px;
  box-shadow: var(--shadow-sm);
}

/* ─── Masonry ─── */
.masonry {
  columns: 3;
  column-gap: 16px;
}

.photo-card {
  break-inside: avoid;
  margin-bottom: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: var(--r-lg);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease;
}

.photo-card-real {
  width: 100%;
  padding: 0;
  background: transparent;
  appearance: none;
  /* 모바일·태블릿·PC 공통: 세로 사진이 카드에서 과하게 길쭉해 보이지 않도록 비율 고정 */
  aspect-ratio: 4 / 5;
}

.report-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .36);
  border-radius: var(--r-pill);
  background: rgba(30, 21, 48, .68);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .12s, background .12s;
}

.report-chip:hover {
  transform: translateY(-2px);
  background: rgba(30, 21, 48, .82);
}

@media (hover: none) {
  .report-chip { opacity: 1; }
}

.photo-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--r-lg);
  object-fit: cover;
  object-position: center 24%;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 21, 48, .38);
  border-radius: var(--r-lg);
  opacity: 0;
  transition: opacity .22s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 18px 18px;
}

.photo-card:hover .photo-overlay,
.photo-card:focus-within .photo-overlay {
  opacity: 1;
}

@media (hover: none) {
  .photo-overlay { opacity: 0; }
}

.overlay-date {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
  margin-bottom: 4px;
}

.overlay-caption {
  font-size: 13px;
  color: #fff;
  line-height: 1.5;
  font-weight: 400;
}

/* placeholder tiles */
.tile {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
}

.tile-label {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(36, 26, 61, .18);
  font-weight: 600;
}

.gallery-empty {
  break-inside: avoid;
  padding: 28px 22px;
  border-radius: var(--r-lg);
  border: 2px dashed var(--border);
  background: var(--surface);
  color: var(--ink-3);
  text-align: center;
  font-weight: 600;
}

.gallery-load-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.gallery-load-more-btn {
  min-width: 160px;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink-2);
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, border-color .16s, color .16s;
}

.gallery-load-more-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.gallery-load-more-btn:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
  box-shadow: var(--shadow-sm);
}

/* ─────────────────────────────────────────
   LIGHTBOX
───────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 40, .78);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
  overscroll-behavior: contain;
}

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

.slideshow-modal {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.slideshow-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.slideshow-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 6, 20, .9);
}

.slideshow-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 40px));
  display: grid;
  gap: 16px;
}

.slideshow-topbar,
.slideshow-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.slideshow-topcopy {
  display: grid;
  gap: 4px;
}

.slideshow-kicker {
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.slideshow-counter {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.slideshow-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slideshow-ctl,
.slideshow-icon-btn {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: 'Pretendard', -apple-system, sans-serif;
  cursor: pointer;
}

.slideshow-ctl {
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
}

.slideshow-icon-btn {
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.slideshow-frame {
  position: relative;
  min-height: min(72vh, 760px);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
}

.slideshow-img {
  width: 100%;
  height: min(72vh, 760px);
  display: block;
  object-fit: contain;
  object-position: center;
  transform: scale(1);
  transition: transform 6.4s linear, opacity .45s ease;
}

.slideshow-frame.is-animating .slideshow-img {
  transform: scale(1.04);
}

.slideshow-info {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(18, 12, 34, .56);
  color: #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.slideshow-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 6px;
}

.slideshow-caption {
  font-size: 15px;
  line-height: 1.65;
}

.slideshow-progress-track {
  flex: 1;
  height: 4px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
}

.slideshow-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, .92);
  transform-origin: left center;
  transform: scaleX(0);
}

.slideshow-music {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.slideshow-music-label {
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-top: 6px;
}

.slideshow-player {
  width: 220px;
  height: 124px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
}

.lb-inner {
  max-width: 620px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--r-xl);
  overflow-x: hidden;
  border: 3px solid var(--border);
  box-shadow: 8px 8px 0 var(--border);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}

.lb-inner::-webkit-scrollbar {
  display: none;
}

#lbTile {
  display: none;
  width: 100%;
  min-height: min(64vh, 720px);
  background:
    linear-gradient(110deg, rgba(255,255,255,.18) 8%, rgba(255,255,255,.42) 18%, rgba(255,255,255,.18) 33%),
    #efe8ff;
  background-size: 200% 100%, auto;
  animation: lbLoadingShimmer 1.15s linear infinite;
}

.lb-img {
  width: 100%;
  display: block;
  background: #f6f1ff;
}

.lb-inner.is-loading .lb-img {
  display: none;
}

.lb-inner.is-loading #lbTile {
  display: block;
}

@keyframes lbLoadingShimmer {
  from {
    background-position: 200% 0, 0 0;
  }
  to {
    background-position: -200% 0, 0 0;
  }
}

.lb-body {
  background: var(--white);
  padding: 22px 26px 26px;
}

.lb-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.lb-caption {
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
}

.comments-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(184, 170, 220, .45);
}

.comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comments-head h3 {
  font-size: 15px;
  font-weight: 800;
}

.comments-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}

.comments-auth-hint {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.6;
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.comment-form textarea {
  width: 100%;
  min-height: 92px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 2px solid var(--border);
  background: var(--surface);
  resize: vertical;
  font: inherit;
  color: var(--ink);
}

.comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-limit {
  font-size: 12px;
  color: var(--ink-3);
}

.comment-submit-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  background: var(--lavender-d);
  color: #fff;
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.comments-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.comments-empty {
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.6;
}

.comment-item {
  padding: 14px;
  border-radius: var(--r-md);
  border: 2px solid var(--border);
  background: #f4f4f6;
}

.comment-item-muted {
  border-color: #dcd9e3;
}

.comment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.comment-head-main {
  min-width: 0;
}

.comment-author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.comment-author-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: var(--r-pill);
  background: #f3eefc;
  border: 1px solid #d9ccec;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  color: #7e5da8;
}

.comment-date {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
}

.comment-body {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  white-space: pre-wrap;
}

.comment-action-btn {
  min-height: 32px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  border: 2px solid var(--border);
  background: var(--white);
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
}

.comment-action-btn.icon-only {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.comment-action-btn.icon-only svg {
  width: 15px;
  height: 15px;
}

.comment-action-btn.icon-only:hover {
  color: #a44969;
  transform: none;
  box-shadow: none;
}

.comment-action-btn.report {
  color: #9a5676;
}

.comment-action-btn.delete {
  color: #8f4f4f;
}


.lb-toolbar {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 201;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-icon-btn {
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s, color .12s;
}

.lb-icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--lavender-d);
}

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.auth-modal,
.mypage-modal,
.signup-loading-modal {
  position: fixed;
  inset: 0;
  z-index: 245;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.auth-modal.open,
.mypage-modal.open,
.signup-loading-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 40, .52);
}

.signup-loading-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 40, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.signup-loading-panel {
  position: relative;
  z-index: 1;
  width: min(400px, calc(100vw - 40px));
  padding: 40px 32px 36px;
  border-radius: var(--r-xl);
  border: 2px solid var(--border);
  background: var(--white);
  box-shadow: 0 10px 0 var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.signup-loading-spinner-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.signup-loading-spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #ede6fb;
  border-top-color: var(--lavender-d);
  animation: signup-spin .9s linear infinite;
}

.signup-loading-spinner-inner {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid #f9dff0;
  border-bottom-color: #d4a0c7;
  animation: signup-spin 1.4s linear infinite reverse;
}

.signup-loading-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.signup-loading-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--lavender-d);
}

.signup-loading-panel h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.3;
}

.signup-loading-panel p:last-child {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
}

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

.auth-panel {
  position: relative;
  z-index: 1;
  width: min(540px, calc(100vw - 32px));
  padding: 28px 24px 24px;
  border-radius: var(--r-xl);
  border: 2px solid var(--border);
  background: var(--white);
  box-shadow: 0 10px 0 var(--border);
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tab {
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--ink-2);
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--lavender-l);
  color: var(--lavender-d);
}

.auth-kicker {
  color: var(--lavender-d);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.auth-panel h3 {
  margin-top: 10px;
  font-size: 24px;
  letter-spacing: -.03em;
}

.auth-sub {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.auth-field input {
  width: 100%;
  min-height: 46px;
  border-radius: var(--r-md);
  border: 2px solid var(--border);
  background: var(--surface);
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 42px;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.password-toggle-btn.is-visible {
  color: var(--lavender-d);
}

.auth-help {
  display: block;
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.5;
}

.auth-primary-btn {
  min-height: 46px;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  background: var(--lavender-d);
  color: #fff;
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.mypage-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.mypage-actions + .auth-help {
  margin-top: 18px;
}

.consent-box {
  margin-top: 6px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 2px solid var(--border);
  background: var(--surface);
}

.consent-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-2);
}

.consent-list {
  margin-top: 8px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.6;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}

.consent-check input {
  margin-top: 2px;
}

.auth-complete-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-complete-page {
  width: 100%;
  max-width: 560px;
}

.auth-complete-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: 34px 30px;
}

.auth-complete-card h1 {
  margin-top: 14px;
  font-size: 32px;
  line-height: 1.14;
  letter-spacing: -.03em;
}

.auth-complete-actions {
  margin-top: 22px;
}

.auth-complete-btn {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  background: var(--lavender-d);
  color: #fff;
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.auth-complete-note {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.7;
}

.report-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.report-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 40, .52);
}

.report-panel {
  position: relative;
  z-index: 1;
  width: min(480px, calc(100vw - 32px));
  padding: 28px 24px 24px;
  border-radius: var(--r-xl);
  border: 2px solid var(--border);
  background: var(--white);
  box-shadow: 0 10px 0 var(--border);
}

.report-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
}

.report-kicker {
  color: var(--lavender-d);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.report-panel h3 {
  margin-top: 10px;
  font-size: 24px;
  letter-spacing: -.03em;
}

.report-desc {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.report-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.report-field span {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.report-field textarea {
  width: 100%;
  min-height: 112px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 2px solid var(--border);
  background: var(--surface);
  resize: none;
  font: inherit;
  color: var(--ink);
  outline: none;
}

.report-field textarea:focus {
  border-color: var(--lavender-d);
  box-shadow: 3px 3px 0 var(--lavender-l);
  background: var(--white);
}

.report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.report-secondary-btn,
.report-primary-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.report-secondary-btn {
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--ink-2);
}

.report-primary-btn {
  border: 2px solid var(--ink);
  background: var(--lavender-d);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 260;
  max-width: calc(100vw - 40px);
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: rgba(22, 15, 36, .82);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

.toast.open {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast[data-type="success"] { background: rgba(22, 15, 36, .82); }
.toast[data-type="warning"]  { background: rgba(22, 15, 36, .82); }
.toast[data-type="error"]    { background: rgba(22, 15, 36, .82); }

.toast-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 48px 44px;
  border-top: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.f-brand {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.f-brand::before {
  content: '✦';
  font-size: 10px;
  color: var(--lavender);
}

.f-center {
  display: flex;
  justify-content: center;
}

.f-team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: none;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s, color .15s;
}

.f-team:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--lavender-d);
  border-color: var(--lavender);
}

.f-copy {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-4);
}

/* ─────────────────────────────────────────
   SCROLLBAR
───────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--lavender);
  border-radius: 4px;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

/* ── 태블릿 ── */
@media (max-width: 980px) {
  header { padding: 0 24px; }

  .intro {
    grid-template-columns: 1fr;
    padding: 110px 24px 0;
    gap: 40px;
  }

  .intro-left .desc { max-width: 100%; }

  .sep { padding: 0 24px; }

  .gallery-wrap { padding: 48px 24px 80px; }

  .gallery-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .gallery-title-row {
    flex-wrap: wrap;
  }

  .gallery-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .masonry { columns: 2; }

  footer {
    padding: 24px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
}

/* ── 모바일 (480px~560px) ── */
@media (max-width: 560px) {
  .masonry { columns: 2; }
  .form-row { grid-template-columns: 1fr; }

  header {
    gap: 10px;
    padding: 0 14px;
  }

  .logo {
    flex: 0 0 auto;
    font-size: 14px;
  }

  .logo .logo-pill {
    display: none;
  }

  nav {
    flex: 1;
    min-width: 0;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a { font-size: 12px; padding: 6px 10px; white-space: nowrap; flex: 0 0 auto; }
  .auth-toggle,
  .auth-secondary-btn,
  .auth-danger-btn { font-size: 11px; padding: 6px 9px; white-space: nowrap; flex: 0 0 auto; }
  .lang-toggle { font-size: 11px; padding: 6px 9px; white-space: nowrap; flex: 0 0 auto; }

  .gallery-sort {
    width: auto;
    justify-content: flex-start;
  }

  .gallery-sort select { width: auto; }
}

/* ── 모바일 (소형 / ~430px) ── */
@media (max-width: 430px) {
  /* 헤더 */
  header {
    padding: 0 16px;
    height: 58px;
    gap: 8px;
  }

  .logo { font-size: 15px; }
  .logo .logo-pill { display: none; }

  nav {
    gap: 4px;
  }

  nav a {
    font-size: 11px;
    padding: 5px 8px;
  }

  .auth-toggle,
  .auth-secondary-btn,
  .auth-danger-btn {
    font-size: 10px;
    padding: 5px 8px;
  }

  .lang-toggle {
    font-size: 10px;
    padding: 5px 8px;
  }

  /* 히어로 */
  .intro {
    padding: 90px 16px 0;
    gap: 32px;
  }

  .intro-left h1 {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 16px;
  }

  .intro-left .desc {
    font-size: 13.5px;
    line-height: 1.75;
  }

  .eyebrow { font-size: 10px; padding: 4px 12px; }

  .scroll-hint {
    margin-top: 28px;
    font-size: 11px;
    padding: 7px 14px;
  }

  /* 업로드 카드 */
  .upload-card {
    padding: 24px 18px 20px;
    border-radius: var(--r-lg);
  }

  .upload-card h2 { font-size: 18px; }

  .dropzone { padding: 20px 14px; }

  .field input,
  .field textarea {
    font-size: 16px; /* iOS 확대 방지 */
    padding: 12px 14px;
  }

  .field textarea { height: 72px; }

  .btn-submit {
    padding: 14px;
    font-size: 13.5px;
  }

  /* 세퍼레이터 */
  .sep {
    padding: 0 16px;
    margin: 48px auto 0;
  }

  /* 갤러리 */
  .gallery-wrap {
    padding: 36px 16px 80px;
  }

  .gallery-meta {
    gap: 10px;
    margin-bottom: 24px;
  }

  .gallery-meta h2 { font-size: 22px; }

  .gallery-actions {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
  }

  .gallery-title-row {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .slideshow-launch {
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
  }

  .gallery-sort {
    flex: 1;
    min-width: 0;
    padding: 6px 10px 6px 12px;
  }

  .gallery-sort span {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .gallery-sort select {
    flex: 1;
    min-width: 0;
    width: auto;
    font-size: 13px;
  }

  .gallery-count {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
  }

  .masonry {
    columns: 1;
    column-gap: 0;
  }

  .photo-card {
    margin-bottom: 12px;
  }

  .slideshow-shell {
    width: calc(100vw - 16px);
    gap: 12px;
  }

  .slideshow-topbar,
  .slideshow-bottom {
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .slideshow-controls {
    justify-content: space-between;
  }

  .slideshow-ctl,
  .slideshow-icon-btn {
    min-height: 42px;
  }

  .slideshow-frame {
    min-height: 58vh;
    border-radius: 22px;
  }

  .slideshow-img {
    height: 58vh;
  }

  .slideshow-info {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 13px 14px;
    border-radius: 18px;
  }

  .slideshow-caption {
    font-size: 13.5px;
    line-height: 1.55;
  }

  .slideshow-music {
    flex-direction: column;
    gap: 8px;
  }

  .slideshow-music-label {
    padding-top: 0;
  }

  .slideshow-player {
    width: 100%;
    height: 180px;
  }

  /* 라이트박스 — 전체화면 이미지 뷰어 */
  .lightbox {
    padding: 0;
    align-items: center;
    justify-content: center;
    background: rgba(10, 6, 24, .96);
    overscroll-behavior: none;
  }

  .lb-inner {
    width: 100%;
    height: 100dvh;
    height: 100vh;
    max-height: none;
    max-width: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .lb-img {
    flex: 1;
    width: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    display: block;
    background: transparent;
  }

  .lb-body {
    flex: 0 1 auto;
    min-height: 0;
    max-height: 42vh;
    background: rgba(20, 12, 40, .88);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255,255,255,.08);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior: contain;
  }

  .lb-body::-webkit-scrollbar {
    display: none;
  }

  .lb-date { color: rgba(255,255,255,.5); }

  .lb-caption {
    font-size: 14px;
    color: #fff;
    line-height: 1.5;
  }

  .comments-section {
    margin-top: 18px;
    padding-top: 16px;
  }

  .comment-form-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .comment-submit-btn {
    width: 100%;
  }

  .lb-toolbar {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: 12px;
    bottom: auto;
  }

  /* 신고 모달 */
  .report-panel {
    width: 100%;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    border-bottom: none;
    margin: auto 0 0;
    box-shadow: none;
    max-height: 90dvh;
    max-height: 90vh;
    overflow-y: auto;
  }

  .report-modal {
    align-items: flex-end;
  }

  .report-panel h3 { font-size: 20px; }

  .report-actions {
    padding-bottom: env(safe-area-inset-bottom, 12px);
  }

  .auth-panel {
    width: 100%;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    border-bottom: none;
    margin: auto 0 0;
    box-shadow: none;
    max-height: 92vh;
    overflow-y: auto;
  }

  .auth-modal,
  .mypage-modal,
  .signup-loading-modal {
    align-items: flex-end;
  }

  .signup-loading-panel {
    width: 100%;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    border-bottom: none;
    margin: auto 0 0;
    box-shadow: none;
    padding: 36px 24px calc(36px + env(safe-area-inset-bottom, 0px));
    gap: 24px;
  }

  .mypage-actions {
    grid-template-columns: 1fr;
  }

  /* 토스트 */
  .toast {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    right: 16px;
    max-width: 100%;
    transform: translate(0, 14px);
  }

  .toast.open {
    transform: translate(0, 0);
  }

  /* 푸터 */
  footer {
    padding: 20px 16px;
    gap: 10px;
  }

  .f-copy { font-size: 10.5px; }
}

/* ─────────────────────────────────────────
   COMMUNITY
───────────────────────────────────────── */
.community-wrap {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto 96px;
}

.community-meta {
  margin-bottom: 18px;
}

.community-meta h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
}

.community-meta p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 14px;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
}

.community-board,
.community-detail-panel {
  background: rgba(255, 255, 255, .9);
  border: 2px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 16px;
}

.community-auth-hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.community-post-form {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.community-field {
  display: grid;
  gap: 6px;
}

.community-field span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}

.community-field input,
.community-field textarea,
.community-inline-input,
.community-inline-textarea,
.community-comment-form textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.community-field textarea,
.community-inline-textarea,
.community-comment-form textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.6;
}

.community-comment-form textarea {
  min-height: 76px;
}

.community-post-form-foot,
.community-comment-form-foot,
.community-inline-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.community-limit {
  font-size: 11px;
  color: var(--ink-3);
}

.community-submit-btn,
.community-action-btn {
  border: 2px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s, border-color .16s, color .16s;
}

.community-submit-btn:hover,
.community-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--lavender);
  color: var(--lavender-d);
}

.community-submit-btn:disabled,
.community-action-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.community-action-btn.primary {
  background: var(--lavender-d);
  border-color: var(--lavender-d);
  color: #fff;
}

.community-inline-actions,
.community-comment-actions,
.community-detail-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.community-status {
  min-height: 18px;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.community-post-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.community-post-item {
  width: 100%;
  text-align: left;
  border: 2px solid #d9cff6;
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  cursor: pointer;
  transition: border-color .14s, background .14s;
}

.community-post-item:hover {
  border-color: var(--lavender);
}

.community-post-item.active {
  border-color: var(--lavender-d);
  background: #f7f1ff;
}

.community-post-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.community-post-item-body {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.community-post-item-meta {
  margin-top: 7px;
  font-size: 11px;
  color: var(--ink-3);
}

.community-detail-empty {
  min-height: 160px;
  border: 2px dashed #d7cdea;
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  padding: 16px;
}

.community-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.community-detail-head h3 {
  font-size: 20px;
  line-height: 1.35;
}

.community-detail-meta {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 12px;
}

.community-dot {
  margin: 0 4px;
}

.community-detail-body {
  border: 2px solid #e2d8f6;
  border-radius: 14px;
  background: #fff;
  padding: 13px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.community-comments-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e3d9f5;
}

.community-comments-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.community-comments-head h4 {
  font-size: 16px;
}

.community-comments-count {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #efe7ff;
  color: var(--lavender-d);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.community-comment-form {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.community-comment-list {
  display: grid;
  gap: 8px;
}

.community-comment-item {
  border: 2px solid #e6dcf7;
  border-radius: 12px;
  background: #fff;
  padding: 10px 11px;
}

.community-comment-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.community-comment-meta {
  font-size: 11px;
  color: var(--ink-3);
}

.community-comment-body {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.community-comments-empty {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  padding: 12px;
}

@media (max-width: 980px) {
  .community-wrap {
    width: calc(100% - 32px);
    margin-bottom: 80px;
  }

  .community-layout {
    grid-template-columns: 1fr;
  }
}
