@import url('/css/checkbox.css');

/* ===========================
   Reset & Base
=========================== */
@font-face {
  font-family: 'Apple SD Gothic Neo';
  src: url('/fonts/AppleSDGothicNeoUL.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Apple SD Gothic Neo';
  src: url('/fonts/AppleSDGothicNeoT.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Apple SD Gothic Neo';
  src: url('/fonts/AppleSDGothicNeoL.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Apple SD Gothic Neo';
  src: url('/fonts/AppleSDGothicNeoR.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Apple SD Gothic Neo';
  src: url('/fonts/AppleSDGothicNeoM.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Apple SD Gothic Neo';
  src: url('/fonts/AppleSDGothicNeoSB.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Apple SD Gothic Neo';
  src: url('/fonts/AppleSDGothicNeoB.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Apple SD Gothic Neo';
  src: url('/fonts/AppleSDGothicNeoEB.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Apple SD Gothic Neo';
  src: url('/fonts/AppleSDGothicNeoH.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Playex ASCII Mono';
  src: url('/fonts/NotoSansMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Playex ASCII Mono';
  src: url('/fonts/NotoSansMono-Bold.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: block;
}

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

:root {
  --black: #181818;
  --white: #f5f5f0;
  --gray-100: #f5f5f7;
  --gray-200: #e8e8ed;
  --gray-400: #86868b;
  --gray-600: #515154;
  --gray-800: #181818;

  --font-base: 'Apple SD Gothic Neo';
  --font-ascii: 'Playex ASCII Mono';
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --film-grain: radial-gradient(circle at 20% 30%, rgba(245, 245, 240, 0.26) 0 1px, transparent 1.4px),
    radial-gradient(circle at 72% 64%, rgba(24, 24, 24, 0.2) 0 1px, transparent 1.5px),
    radial-gradient(circle at 44% 78%, rgba(245, 245, 240, 0.18) 0 0.8px, transparent 1.3px);
  --film-grain-size: 3px 3px, 4px 4px, 5px 5px;
  --film-grain-opacity: 0.34;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-base);
  background-color: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

html:lang(en) body,
html:lang(es) body,
html:lang(de) body,
html:lang(fr) body {
  line-height: 1.58;
}

html:lang(ja) body,
html:lang(zh) body,
html:lang(zh-TW) body {
  line-height: 1.72;
}

html:lang(ar) body,
html:lang(hi) body {
  line-height: 1.78;
}

main {
  flex: 1;
}

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

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

/* ===========================
   Editorial Layout
=========================== */
/* ===========================
   ASCII Stage (메인 화면)
=========================== */
.ascii-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  padding-top: 52px;
  overflow: hidden;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.editorial-ascii-reveal {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  animation: ascii-line-reveal 1.05s steps(var(--ascii-lines, 110), end) both;
  will-change: clip-path;
}

.editorial-ascii {
  position: absolute;
  top: 0;
  left: 50%;
  width: max-content;
  max-width: none;
  margin: 0;
  font-family: var(--font-ascii);
  font-size: max(3px, calc((100svh - 72px) / 109));
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: pre;
  color: var(--white);
  pointer-events: none;
  user-select: none;
  transform: translateX(-50%);
  text-rendering: geometricPrecision;
}

@keyframes ascii-line-reveal {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

.ascii-stage .hero-photos,
.ascii-stage .hero-photo,
.ascii-stage .editorial-visual,
.ascii-stage .editorial-visual-wrap {
  display: none !important;
}

.ascii-nav-box {
  position: absolute;
  top: 50%;
  left: clamp(2.5rem, 6vw, 6rem);
  transform: translateY(-50%);
  background: rgba(245, 245, 240, 0.90);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(24, 24, 24, 0.10);
  padding: 3.1rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
  min-width: 360px;
  animation: ascii-nav-in 0.22s ease-out 0.82s both;
}

@keyframes ascii-nav-in {
  from { opacity: 0; transform: translateY(calc(-50% + 8px)); }
  to { opacity: 1; transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-ascii-reveal,
  .ascii-nav-box {
    animation: none;
  }
}

.ascii-nav-brand {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.ascii-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  font-size: clamp(2.15rem, 3.65vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--black);
}

.ascii-nav-links a {
  color: var(--black);
  transition: opacity 0.12s;
  width: fit-content;
  position: relative;
  display: inline-flex;
  align-items: flex-start;
}
.home-badge-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e53e3e;
  flex-shrink: 0;
  margin-left: 4px;
  margin-top: 4px;
}

/* display:inline-block가 hidden 속성을 덮어써서 점이 안 사라지던 버그 수정 */
.home-badge-dot[hidden] {
  display: none;
}

.ascii-nav-links a:hover {
  opacity: 0.45;
  text-decoration: underline;
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.08em;
}

.ascii-nav-meta {
  margin-top: 0.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(24,24,24,0.1);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--gray-400);
  font-size: 0.78rem;
  line-height: 1.35;
}

.ascii-nav-meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.ascii-nav-meta a {
  color: var(--gray-600);
}

.ascii-nav-meta a:hover {
  color: var(--black);
  text-decoration: underline;
}

.editorial-content {
  padding: clamp(4rem, 8vw, 7rem) 2rem 6rem;
  max-width: 1080px;
  margin: 0 auto;
}

.editorial-kicker {
  max-width: 1080px;
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
}

.editorial-kicker-title {
  font-size: clamp(3.8rem, 10vw, 8.5rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: 0;
  color: var(--black);
}

.editorial-kicker-visual {
  width: 100%;
  max-height: 13rem;
  object-fit: contain;
  object-position: bottom right;
  filter: grayscale(1) contrast(1.08);
}

.studio-hero {
  position: relative;
  min-height: clamp(18rem, 34vh, 28rem);
  margin: 0;
  padding: 4.6rem 0.75rem 0.75rem;
  color: var(--white);
  overflow: hidden;
  background: var(--black);
}

/* 배경사진 제거 — ASCII가 배너 자체 */
.studio-hero::before { display: none; }

.studio-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.18) 0%, transparent 38%);
  pointer-events: none;
  z-index: 1;
}

/* ASCII가 배너 배경 */
.studio-hero-ascii {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: none;
  font-family: var(--font-ascii);
  font-size: max(4px, calc(100vw / 220));
  font-weight: 900;
  line-height: 1.05;
  white-space: pre;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.12s ease-out;
}

.studio-hero-ascii.is-loaded {
  opacity: 0.95;
}

.studio-hero-bottom,
.studio-hero-title-row {
  position: relative;
  z-index: 1;
}

.studio-hero-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.studio-hero-title-row {
  padding: 1rem 0.75rem 1.25rem;
}

.studio-hero-title {
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 0.82;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .editorial-ascii {
    font-size: max(2.4px, calc((100svh - 72px) / 109));
  }

  .ascii-nav-box {
    left: clamp(1.2rem, 4vw, 2.5rem);
    padding: 2rem 2.4rem;
    min-width: 230px;
  }

  .ascii-nav-links {
    font-size: clamp(1.55rem, 7vw, 2.55rem);
  }

  .editorial-kicker {
    grid-template-columns: 1fr;
  }

  .editorial-kicker-visual {
    max-height: 12rem;
    object-position: left bottom;
  }

  .studio-hero {
    min-height: 20rem;
  }
}

/* ===========================
   Header / Nav
=========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(245, 245, 240, 0.82);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(24, 24, 24, 0.1);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06), 0 8px 28px rgba(0, 0, 0, 0.06);
}

.site-logo {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
  transition: color var(--transition);
}
.site-logo:hover { color: var(--black); }

.site-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  font-size: 0.8rem;
  color: var(--gray-600);
  transition: color var(--transition);
}

.site-nav a:hover {
  color: var(--black);
}

/* ===========================
   Hero
=========================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: var(--white);
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--gray-600);
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 980px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  border-radius: 980px;
}

/* ===========================
   Section Base
=========================== */
.section {
  min-height: calc(100vh - 52px);
  padding: 7rem 2rem;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 520px;
  line-height: 1.6;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.register-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.75rem 1.25rem;
  border: 4px solid var(--black);
  background: var(--white);
  color: var(--black);
  box-shadow: 8px 8px 0 var(--black);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  transition: color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.register-action:hover {
  background: var(--black);
  color: var(--white);
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--black);
}

.upload-status {
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* ===========================
   Blog Posts Grid
=========================== */
.blog-featured-hero {
  position: relative;
  min-height: clamp(22rem, 48vh, 34rem);
  margin: 52px 0 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
  cursor: pointer;
}

.blog-empty-hero {
  min-height: 18rem;
  margin: 52px 0 0;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(1.25rem, 5vw, 4rem) 3rem;
  background: var(--white);
}

.blog-featured-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
}

.blog-featured-hero.is-contain .blog-featured-image {
  object-fit: contain;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: #fff;
}

.blog-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.08), rgba(17,17,17,0.72));
}

.blog-featured-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  padding: 0 clamp(1.25rem, 5vw, 4rem) clamp(2rem, 6vw, 4rem);
  color: #fff;
}

.blog-featured-date {
  margin-bottom: 0.8rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.blog-featured-title {
  max-width: 780px;
  color: inherit;
  font-size: clamp(2.3rem, 7vw, 5.6rem);
  font-weight: 800;
  line-height: 0.96;
}

.blog-featured-excerpt {
  max-width: 560px;
  margin-top: 1rem;
  color: rgba(255,255,255,0.82);
  font-size: 1rem;
  line-height: 1.6;
}

.blog-featured-content .post-tag-list {
  justify-content: flex-start;
  margin-top: 1.2rem;
}

.blog-featured-content .post-tag {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.86);
}

.blog-list-section {
  max-width: 1280px;
  padding-top: 3rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
  margin-top: 3rem;
}

.blog-masonry.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 3px;
}

.blog-masonry .post-card-wrap {
  display: block;
  width: 100%;
}

.post-card {
  background: var(--gray-100);
  cursor: pointer;
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.post-card:hover {
  background: var(--gray-200);
}

/* 썸네일 있는 카드: 이미지 꽉 채움 */
.post-card.has-thumb .post-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.post-card-media {
  position: relative;
  aspect-ratio: var(--thumb-aspect, 16 / 10);
  overflow: hidden;
  background: var(--gray-100);
}

.post-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--film-grain);
  background-size: var(--film-grain-size);
  opacity: calc(var(--film-grain-opacity) * 0.75);
  mix-blend-mode: overlay;
}

.post-card.has-thumb .post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition);
}

.post-card:hover.has-thumb .post-card-media img {
  transform: scale(1.04);
}

.post-card:hover .post-card-media img {
  transform: scale(1.035);
}

/* 썸네일 있는 카드: 하단 텍스트 오버레이 */
.post-card.has-thumb .post-card-body {
  position: absolute;
  inset: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(17,17,17,0.72) 0%, rgba(17,17,17,0.18) 55%, transparent 100%);
  transition: background 0.3s;
}

.post-card.has-thumb:hover .post-card-body {
  background: linear-gradient(to top, rgba(17,17,17,0.82) 0%, rgba(17,17,17,0.25) 65%, transparent 100%);
}

.post-card.has-thumb .post-card-inner-text {
  padding: 1rem 1rem 0.85rem;
}

.post-card.has-thumb .post-card-date {
  color: rgba(255,255,255,0.65);
}

.post-card.has-thumb .post-card-title {
  color: #fff;
  font-size: 1rem;
}

.post-card.has-thumb .post-card-excerpt {
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
}

.post-card.has-thumb .post-tag {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
}

/* 썸네일 없는 카드 */
.post-card:not(.has-thumb) .post-card-body {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.post-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card:not(.has-thumb) .post-card-body {
  padding: 2.5rem;
}

.post-card-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.post-card-date {
  font-size: 0.72rem;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  margin: 0;
  white-space: nowrap;
}

.post-tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  max-width: 9rem;
  min-height: 1.4rem;
  padding: 0.12rem 0.5rem;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 980px;
  background: rgba(245, 245, 247, 0.78);
  color: var(--gray-600);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-excerpt {
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-top: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-feed-sentinel {
  height: 4rem;
}

.blog-feed-sentinel.loading::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 1.5rem auto 0;
  border: 2px solid var(--gray-200);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.post-card-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 1px;
  transition: opacity var(--transition);
}

.post-card-link:hover {
  opacity: 0.5;
}

/* ===========================
   Gallery Grid
=========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 3px;
  margin-top: 3rem;
}

.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--film-grain);
  background-size: var(--film-grain-size);
  opacity: var(--film-grain-opacity);
  mix-blend-mode: overlay;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===========================
   Divider
=========================== */
.divider {
  width: 100%;
  height: 1px;
  background: var(--gray-200);
}

/* ===========================
   Utility Pages
=========================== */
.utility-page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6.5rem 0 4rem;
}

.utility-head {
  margin-bottom: 2rem;
}

.utility-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.utility-head h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.utility-head p {
  color: var(--gray-600);
  margin-top: 0.8rem;
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.utility-stack {
  display: grid;
  gap: 0.75rem;
}

.utility-panel {
  display: block;
  background: rgba(255,255,255,0.52);
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 8px;
  padding: 1.25rem;
  height: 100%;
}

.utility-panel h2 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.utility-readable {
  width: 100%;
}
.utility-readable p {
  white-space: pre-line;
}

.utility-readable p + p {
  margin-top: 1rem;
}

.utility-form {
  display: grid;
  gap: 0.9rem;
}

.utility-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--gray-600);
}

.utility-form input,
.utility-form textarea,
.utility-form select,
.utility-panel select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.72rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--gray-800);
}

.utility-form textarea {
  min-height: 150px;
  resize: vertical;
}

.notice-history {
  margin-top: 2.5rem;
}

.notice-history-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.notice-history-list {
  max-height: 420px;
  overflow-y: auto;
  display: grid;
  gap: 0.5rem;
  padding-right: 0.25rem;
}

.notice-history-item {
  background: rgba(255,255,255,0.52);
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.notice-history-item summary {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
}

.notice-history-item summary::-webkit-details-marker {
  display: none;
}

.notice-history-version {
  font-weight: 700;
  color: var(--gray-800);
}

.notice-history-name {
  color: var(--gray-600);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-history-date {
  color: var(--gray-400);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.notice-history-item p {
  margin-top: 0.7rem;
  color: var(--gray-700);
  white-space: pre-line;
  font-size: 0.9rem;
}

.utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.utility-success {
  color: #166534;
  background: #dcfce7;
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
}

.utility-error {
  color: #991b1b;
  background: #fee2e2;
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
}

.utility-entry-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}

.utility-entry-head img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.utility-entry-head span,
.utility-list dt,
.utility-panel p {
  color: var(--gray-600);
  font-size: 0.88rem;
}

.utility-success {
  color: #166534;
}

.utility-error {
  color: #991b1b;
}

.utility-list {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 0.45rem 0.8rem;
}

.utility-list dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gray-200);
  flex: 0 0 auto;
}

.profile-avatar-empty {
  border: 1px solid var(--gray-200);
}

.profile-avatar-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-avatar-form input[type="file"] {
  max-width: 220px;
  font-size: 0.78rem;
}

.utility-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.7rem;
  font-weight: 700;
}

.utility-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.45rem;
}

.utility-thumb-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.post-utility-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

@media (max-width: 720px) {
  .utility-row { align-items: stretch; }
  .utility-row > form { width: 100%; }
}

/* ===========================
   Single Post
=========================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 220;
  height: 3px;
  pointer-events: none;
}

.reading-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left center;
}

.translation-notice {
  margin-top: 52px;
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.78rem;
}

.translation-notice a {
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

/* 커버 이미지 */
.post-cover {
  position: relative;
  height: 672px;
  max-height: 60vh;
  overflow: hidden;
  background: #fff;
  margin: -5rem -3rem 0;
  border-radius: 0;
}

.post-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: none;
}

.post-cover.is-contain {
  background: #fff;
}

.post-cover.is-contain .post-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: none;
  display: block;
}

.post-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.4rem 1.5rem;
  pointer-events: none;
}

.post-cover-caption {
  width: 100%;
  max-width: none;
  padding: 1rem 1.1rem 0.8rem 1.1rem;
  background: linear-gradient(180deg, rgba(245,245,240,0.64) 0%, rgba(245,245,240,0.92) 100%);
  border-radius: 10px;
  box-shadow: 0 8px 26px rgba(17,17,17,0.18);
  pointer-events: auto;
}

.post-cover-title {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}

.post-cover-meta {
  font-size: 0.78rem;
  color: var(--gray-600);
  margin: 0.45rem 0 0;
}

.post-edit-link {
  margin-left: 0.6rem;
  padding: 0.15rem 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  vertical-align: middle;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 6px;
  color: inherit;
  font-size: 0.75rem;
  text-decoration: none;
}

.post-edit-link.is-light {
  border-color: var(--gray-300);
  color: var(--gray-600);
}

.post-wrap {
  width: min(100%, 1200px);
  box-sizing: border-box;
  margin: 2rem auto 4rem;
  padding: 5rem 3rem 6rem;
  background: #fff;
  border-radius: 16px;
}


.post-header {
  width: min(100%, 1016px);
  max-width: 1016px;
  margin: 0 auto 3rem;
  padding-right: calc(11rem + clamp(2rem, 4vw, 3rem));
  box-sizing: border-box;
}

.post-meta {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.post-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--black);
}

.post-body-layout {
  width: min(100%, 1016px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(11rem, 13rem);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.post-main-column {
  min-width: 0;
}

.post-content {
  --post-content-indent-step: 1.25rem;
  max-width: 760px;
  box-sizing: border-box;
  font-size: 1rem;
  line-height: 1.82;
  letter-spacing: 0;
  font-stretch: normal;
  font-kerning: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  color: var(--gray-800);
}

html:lang(en) .post-content,
html:lang(es) .post-content,
html:lang(de) .post-content,
html:lang(fr) .post-content {
  line-height: 1.68;
}

html:lang(ko) .post-content,
html:lang(ja) .post-content,
html:lang(zh) .post-content,
html:lang(zh-TW) .post-content {
  line-height: 1.88;
}

html:lang(ar) .post-content,
html:lang(hi) .post-content {
  line-height: 1.95;
}

.post-content > * {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.post-content .editor-indent-block {
  max-width: 100%;
  box-sizing: border-box;
  margin: 0.2rem 0;
  padding-left: var(--post-content-indent-step);
}

.post-content .editor-indent-block > * {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.post-content .editor-indent-block > blockquote {
  padding-left: 1rem;
}

.post-content h2 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0.6rem 0 0.3rem;
  color: var(--black);
}

.post-content h3 {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  margin: 0.5rem 0 0.3rem;
  color: var(--black);
}

.post-content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  margin: 0.45rem 0 0.3rem;
  color: var(--black);
}

.post-content p {
  line-height: 1.82;
  margin: 0.3rem 0;
}

.post-content img,
.post-content video {
  display: block;
  width: 100% !important;
  max-width: 100%;
  max-height: none;
  height: auto;
  margin: 0.5rem 0;
  border-radius: 8px;
  object-fit: contain;
}

.post-content > img,
.post-content > video {
  margin-left: auto;
  margin-right: auto;
}

/* 이미지/동영상 설명(alt) 캡션 — 미디어 바로 아래 중앙, 작은 회색 */
.post-content figcaption.media-caption {
  margin: -0.1rem 0 0.6rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.4;
}

/* 지도 블록 */
.post-content .post-map {
  width: 100%;
  height: 360px;
  margin: 0.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-100);
}
.post-map-info {
  padding: 6px 10px;
  font-size: 0.85rem;
  font-family: var(--font-base);
  white-space: nowrap;
}

.post-content img.is-dynamic-media,
.post-content video.is-dynamic-media {
  width: 100% !important;
}

.post-content img.media-size-small:not(.is-dynamic-media),
.post-content video.media-size-small:not(.is-dynamic-media) {
  width: 100% !important;
}

.post-content img.media-size-wide:not(.is-dynamic-media),
.post-content video.media-size-wide:not(.is-dynamic-media) {
  width: 100% !important;
}

.post-content img.is-dynamic-wide,
.post-content video.is-dynamic-wide {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.post-content > p:has(> img.is-dynamic-wide),
.post-content > p:has(> video.is-dynamic-wide),
.post-content > div:has(> img.is-dynamic-wide),
.post-content > div:has(> video.is-dynamic-wide) {
  max-width: none;
}

.post-content > p:has(> img.is-dynamic-wide),
.post-content > p:has(> video.is-dynamic-wide) {
  margin-bottom: 0;
}

.post-content a {
  border-bottom: 1px solid var(--gray-400);
  transition: border-color var(--transition);
}

.post-content a:hover {
  border-color: var(--black);
}

.post-content p.citation {
  margin: 1.5rem 0;
  padding: 0.9rem 1rem 0.95rem 1.1rem;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--black);
  background: #fafafa;
  color: var(--gray-700);
  font-size: 0.92rem;
  line-height: 1.55;
}

.post-content p.citation::before {
  content: "링크/출처";
  display: block;
  margin-bottom: 0.3rem;
  color: var(--gray-500);
  font-size: 0.74rem;
  font-weight: 800;
}

.post-content p.citation a {
  border-bottom: 0;
  color: var(--black);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.post-content code {
  font-size: 0.85em;
  background: var(--gray-100);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.post-content pre {
  background: var(--gray-800);
  color: var(--gray-100);
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-content hr {
  display: block;
  height: 2px;
  border: none;
  background: var(--gray-600);
  margin: 2.75rem 0;
}

.post-content table {
  width: min(100%, 760px);
  border-collapse: collapse;
  margin: 1.75rem auto;
  font-size: 0.92rem;
}

.post-content th,
.post-content td {
  border: 1px solid var(--gray-200);
  padding: 0.65rem 0.8rem;
  text-align: center;
  vertical-align: middle;
}

.post-content th {
  background: var(--gray-100);
  font-weight: 600;
}

.post-content blockquote {
  border-left: 2px solid var(--black);
  padding-left: 1.5rem;
  color: var(--gray-600);
  margin: 2rem auto;
}

.post-content > h2,
.post-content > h3,
.post-content > h4,
.post-content > p,
.post-content > blockquote {
  margin-left: 0;
  margin-right: auto;
}

.post-content > img,
.post-content > video {
  margin-left: auto;
  margin-right: auto;
}

.post-sidebar {
  position: sticky;
  top: 88px;
}

.post-sidebar-block {
  padding: 1rem 0;
  border-top: 1px solid var(--gray-200);
}

.post-sidebar-title {
  margin-bottom: 0.75rem;
  color: var(--gray-400);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.post-toc-list a {
  color: var(--gray-600);
  font-size: 0.82rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color var(--transition);
}

.post-toc-list a:hover,
.post-toc-list a.active {
  color: var(--black);
}

.post-toc-list a.toc-h3 {
  padding-left: 0.75rem;
  font-size: 0.78rem;
}

.post-toc-list a.toc-h4 {
  padding-left: 1.4rem;
  font-size: 0.74rem;
  color: var(--gray-400);
}

.post-sidebar-tags {
  justify-content: flex-start;
}

.comments-section {
  max-width: 760px;
  margin: 4rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.comments-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.comments-head h2 {
  color: var(--black);
  font-size: 1.15rem;
  font-weight: 700;
}

.comments-head span,
.comments-login,
.comments-empty,
.comments-alert {
  color: var(--gray-400);
  font-size: 0.82rem;
}

.comments-alert {
  margin-bottom: 1rem;
  color: #991b1b;
}

.comment-form {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.comment-form textarea {
  min-height: 92px;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-base);
  font-size: 0.9rem;
  line-height: 1.6;
  resize: vertical;
}

.comment-form button {
  justify-self: end;
}

.comment-list {
  display: grid;
  gap: 1.25rem;
}

.comment-main,
.comment-reply {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 0.85rem;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gray-200);
}

.comment-avatar-empty {
  display: block;
}

.comment-body {
  min-width: 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.comment-meta strong {
  color: var(--black);
  font-size: 0.86rem;
  font-weight: 700;
}

.comment-meta time {
  color: var(--gray-400);
  font-size: 0.75rem;
}

.comment-delete-form {
  margin-left: auto;
}

.comment-delete-form button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #991b1b;
  font-family: var(--font-base);
  font-size: 0.72rem;
  cursor: pointer;
}

.comment-body p {
  color: var(--gray-700);
  font-size: 0.9rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-reply-toggle {
  margin-top: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gray-500);
  font-family: var(--font-base);
  font-size: 0.78rem;
  cursor: pointer;
}

.comment-reply-form {
  margin: 0.75rem 0 0;
}

.comment-replies {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0 0 2.9rem;
}

.comment-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.75rem;
}

.comment-pages a,
.comment-pages span {
  min-width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  color: var(--gray-600);
  font-size: 0.8rem;
  text-decoration: none;
}

.comment-pages .active {
  border-color: var(--black);
  color: var(--black);
  font-weight: 700;
}

.post-section-divider {
  max-width: 760px;
  margin: 3rem auto 0;
  border: none;
  border-top: 1px solid var(--gray-200);
}

.post-bottom-actions {
  max-width: 760px;
  margin: 2rem auto 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.post-author-label {
  margin-bottom: 0.25rem;
  color: var(--gray-400);
  font-size: 0.75rem;
  font-weight: 700;
}

.post-author-name {
  color: var(--black);
  font-size: 0.95rem;
  font-weight: 600;
}

.post-share-actions {
  display: flex;
  gap: 0.5rem;
}

.post-share-btn {
  min-height: 2rem;
  padding: 0 0.8rem;
  border: 1px solid var(--gray-200);
  border-radius: 980px;
  background: transparent;
  color: var(--gray-600);
  font-family: var(--font-base);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.post-share-btn:hover {
  color: var(--black);
  border-color: var(--black);
}

/* ===========================
   Responsive
=========================== */
/* ===========================
   Responsive — Tablet (≤768px)
=========================== */
@media (max-width: 768px) {
  .site-header { padding: 0 1.25rem; }
  .site-nav { display: none; }

  .section { padding: 4rem 1.25rem; min-height: unset; }
  .blog-featured-hero { min-height: 24rem; }
  .blog-list-section { padding-top: 2rem; }

  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2px;
  }
  .blog-masonry.posts-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }

  .post-wrap { padding: 6rem 1.25rem 4rem; width: 100%; margin: 0; border-radius: 0; }
  .post-cover,
  .post-cover.is-contain { height: clamp(16rem, 52vw, 24rem); min-height: 0; margin: -6rem -1.25rem 0; border-radius: 0; }
  .post-cover-overlay { padding: 1rem; }
  .post-cover-caption { max-width: 100%; }
  .post-cover-meta { text-align: left; white-space: normal; }
  .post-body-layout { grid-template-columns: 1fr; gap: 2rem; }
  .post-sidebar { position: static; }
  .post-toc-block:empty { display: none; }
  .post-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
  .post-content > *,
  .post-header { max-width: 100%; }
  .post-content img,
  .post-content video { max-width: 100%; }

  .studio-hero { min-height: 16rem; }
  .studio-hero-title { font-size: clamp(1.8rem, 6vw, 3.5rem); }

  /* 블로그 에디터 */
  .editor-topbar { padding: 0.6rem 1rem; gap: 0.3rem; }
  .editor-wrap { padding: 7rem 1.25rem 4rem; max-width: 100%; }
  .title-input { font-size: 1.6rem; }
  .content-editor-card { padding: 1.25rem 1.5rem 1.75rem; }

  /* 어드민 */
  .admin-table { font-size: 0.8rem; }
}

/* ===========================
   Responsive — Mobile (≤480px)
=========================== */
@media (max-width: 480px) {
  .section { padding: 3.5rem 1rem; }
  .blog-featured-hero {
    min-height: 22rem;
    margin-top: 52px;
  }
  .blog-featured-content { padding: 0 1rem 2rem; }
  .blog-featured-title { font-size: clamp(2rem, 13vw, 3.8rem); }

  .posts-grid { grid-template-columns: 1fr; gap: 2px; }
  .blog-masonry.posts-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }

  .post-wrap { padding: 5.5rem 1rem 3rem; border-radius: 0; }
  .post-cover,
  .post-cover.is-contain { height: clamp(14rem, 58vw, 21rem); min-height: 0; margin: -5.5rem -1rem 0; border-radius: 0; }
  .translation-notice { padding: 0.6rem 1rem; }
  .post-title { font-size: clamp(1.3rem, 6vw, 2rem); }
  .post-content { font-size: 0.95rem; }
  .post-content img, .post-content video {
    width: 100% !important;
    max-width: 100%;
    max-height: none;
  }
  .post-card-body,
  .post-card:not(.has-thumb) .post-card-body { padding: 1.35rem; }
  .post-card-meta-row { flex-direction: column; gap: 0.45rem; }
  .post-tag-list { justify-content: flex-start; }
  .post-bottom-actions { align-items: flex-start; flex-direction: column; }

  /* 헤더 */
  .site-header { padding: 0 1rem; }
  .site-logo { font-size: 0.95rem; }

  /* 스튜디오 히어로 */
  .studio-hero { min-height: 12rem; }
  .studio-hero-title { font-size: clamp(1.4rem, 7vw, 2.5rem); }

  /* 갤러리 뷰어 */
  .viewer-box { border-radius: 12px; }
  .viewer-img-wrap { height: 50vw; min-height: 220px; }
  .viewer-body { padding: 0.9rem 1rem 1rem; }

  /* 블로그 에디터 */
  .editor-topbar { padding: 0.5rem 0.75rem; flex-wrap: wrap; top: 52px; }
  .editor-wrap { padding: 8rem 0.75rem 3rem; }
  .title-input { font-size: 1.3rem; }
  .content-editor-card { padding: 1rem 1rem 1.5rem; border-radius: 10px; }
  .media-toolbar { flex-wrap: wrap; }

  /* 태그 모달 */
  .tag-modal-box { max-width: 100%; margin: 0 0.5rem; }

  /* 휴지통 그리드 */
  .trash-grid { grid-template-columns: 1fr; }

  /* 갤러리 모달 */
  .gallery-modal-box { border-radius: 12px; margin: 0.5rem; }

  /* 섹션 액션 버튼 */
  .prompt-new-btn { height: 42px; }
  .prompt-new-prefix { width: 36px; font-size: 0.95rem; }
  .prompt-new-label { padding: 0 12px; font-size: 0.82rem; }
}

/* ===========================
   Responsive — Large (≥1200px)
=========================== */
@media (min-width: 1200px) {
  .posts-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* === 공통: + prefix 버튼 (블로그 새 글, 갤러리 새 사진) === */
.prompt-new-btn {
  display: inline-flex;
  align-items: center;
  height: 50px;
  border: 2px solid var(--black);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  background: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.prompt-new-btn:hover { background: #f8f8f8; }

.prompt-new-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 44px;
  background: #f0f0f0;
  font-family: var(--font-base);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-600);
  border-right: 1px solid #ddd;
  flex-shrink: 0;
}
.prompt-new-label {
  padding: 0 18px;
  font-family: var(--font-base);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
}
