/*
Theme Name: Michelle · Irish Dancer
Theme URI: https://michelle.local
Author: Michelle
Description: Custom one-page bilingual portfolio theme for Michelle, a Taichung-based Irish dancer. Replicates the approved static design exactly (colors, type, layout).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: michelle-irish-dance
*/

:root {
  --bg: #FAFAF7;
  --ink: #1A1A1A;
  --muted: #6B6B68;
  --line: #E5E5E0;
  --accent: #2C5F2D;
  --cream: #F1ECE4;
  --paper: #F8F5F0;
  --shadow: rgba(26,26,26,0.06);
}

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

html { scroll-behavior: smooth; }

:focus-visible {
  outline: 3px solid rgba(44, 95, 45, 0.45);
  outline-offset: 4px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[lang="zh"] body {
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  letter-spacing: 0.01em;
}

/* Language toggle visibility */
html[lang="en"] .lang-zh { display: none !important; }
html[lang="zh"] .lang-en { display: none !important; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus { transform: translateY(0); }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
html[lang="zh"] .wordmark { font-family: 'Noto Serif TC', serif; }

.wordmark .dot {
  color: var(--accent);
}

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

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

nav a:hover { color: var(--accent); }

.lang-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  margin-left: 12px;
}

.lang-btn {
  font-family: 'Inter', sans-serif;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: all 0.2s;
}

.lang-btn.active {
  color: var(--ink);
  background: var(--cream);
}

.lang-btn:hover:not(.active) { color: var(--ink); }

/* Hero */
.hero {
  min-height: 88vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 40px;
}
html[lang="zh"] .hero-eyebrow { letter-spacing: 0.1em; }

.hero-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(38px, 6.5vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 1200px;
}

html[lang="zh"] .hero-quote {
  font-family: 'Noto Serif TC', serif;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  font-size: clamp(34px, 5.5vw, 80px);
  letter-spacing: 0.01em;
}

.hero-intro {
  max-width: 760px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

html[lang="zh"] .hero-intro {
  font-size: 17px;
  line-height: 1.9;
}

.hero-meta {
  margin-top: 56px;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  align-items: flex-end;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.timeline {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.timeline-item:last-child { border-bottom: 0; }

.timeline-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 8px;
}

.timeline-body {
  position: relative;
  padding-left: 34px;
}

.timeline-body::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-body::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 4px;
  width: 1px;
  height: calc(100% + 28px);
  background: var(--line);
}

.timeline-item:last-child .timeline-body::after { display: none; }

.timeline-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  display: block;
}

html[lang="zh"] .timeline-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  line-height: 1.2;
}

.timeline-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 760px;
}

.hero-meta-item .meta-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero-meta-item .meta-value {
  color: var(--ink);
  font-weight: 500;
}

/* Section heading */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 40px;
  border-top: 1px solid var(--line);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 60px;
}

.section-header .section-title { margin-bottom: 0; }

.section-more {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  white-space: nowrap;
  transition: color 0.2s;
}
.section-more:hover { color: var(--accent); }

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}
html[lang="zh"] .section-eyebrow { letter-spacing: 0.1em; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
  max-width: 1100px;
}

html[lang="zh"] .section-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 900;
  letter-spacing: 0.005em;
  line-height: 1.15;
}

/* Story section */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 80px;
  align-items: start;
}

.story-aside {
  position: sticky;
  top: 120px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.story-aside dt {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 24px;
  margin-bottom: 4px;
  font-weight: 600;
}

.story-aside dt:first-child { margin-top: 0; }

.story-aside dd {
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0;
}

.story-body p {
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}

html[lang="zh"] .story-body p {
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: 0.02em;
}

.story-body > .lang-en > p:first-child::first-letter,
.story-body > .lang-zh > p:first-child::first-letter {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 4.5em;
  line-height: 0.9;
  float: left;
  padding: 10px 14px 0 0;
  color: var(--accent);
}

html[lang="zh"] .story-body > .lang-zh > p:first-child::first-letter {
  font-family: 'Noto Serif TC', serif;
  font-weight: 900;
  font-size: 3.5em;
  padding: 12px 16px 0 0;
}

.story-body blockquote p,
html[lang="zh"] .story-body blockquote p {
  margin: 0;
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

/* Defensive: content pasted from Google Docs etc. often wraps text in
   <span style="font-weight:..."> which would otherwise override the
   pull-quote's bold styling via inline-style specificity. */
.story-body blockquote * {
  font-weight: inherit !important;
  font-family: inherit !important;
  color: inherit !important;
}

.story-body blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
  color: var(--accent);
  padding: 40px 0 40px 32px;
  border-left: 3px solid var(--accent);
  margin: 48px 0;
}

html[lang="zh"] .story-body blockquote {
  font-family: 'Noto Serif TC', serif;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
}

/* Story cards grid */
.story-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 56px 48px;
}

.story-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.story-card-media {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: repeating-linear-gradient(45deg, var(--cream), var(--cream) 10px, var(--paper) 10px, var(--paper) 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.story-card-media span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.story-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-card-meta {
  display: flex;
  gap: 16px;
  margin-top: 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.story-card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 12px;
  transition: color 0.2s;
}
html[lang="zh"] .story-card-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  line-height: 1.3;
}

.story-card:hover .story-card-title { color: var(--accent); }

.story-card-excerpt {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
html[lang="zh"] .story-card-excerpt { line-height: 1.9; }

.story-card-more {
  margin-top: 22px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}

/* Performances list — Heco style */
.perf-list {
  border-top: 1px solid var(--line);
}

.perf-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease, color 0.3s ease;
}

.perf-row:hover {
  padding-left: 24px;
}

.perf-year {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--accent);
}

.perf-name {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.15;
  color: var(--ink);
}
html[lang="zh"] .perf-name {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 34px);
}

.perf-location {
  display: block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.02em;
}
html[lang="zh"] .perf-location { font-family: 'Noto Sans TC', sans-serif; }

.perf-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  white-space: nowrap;
}

.perf-tag.completed {
  color: var(--muted);
  border-color: var(--line);
}

/* Watch (video grid) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 48px;
}

.video-card {
  display: flex;
  flex-direction: column;
}

.video-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cream), var(--paper));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

button.video-card-media {
  border: 1px solid var(--line);
  appearance: none;
  -webkit-appearance: none;
}

.video-card-media span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.video-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.video-card-trigger:hover .video-card-media,
.video-card-trigger:hover img { transform: scale(1.02); }

.video-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.35);
  transition: background 0.2s ease;
}

.video-card-trigger:hover .video-card-overlay {
  background: rgba(26, 26, 26, 0.5);
}

.video-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.25);
  transition: transform 0.2s ease;
}

.video-card-play::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--ink);
  margin-left: 4px;
}

.video-card-trigger:hover .video-card-play {
  transform: translate(-50%, -50%) scale(1.08);
}

.video-card-meta {
  display: flex;
  gap: 16px;
  margin-top: 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.video-card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 12px;
}
html[lang="zh"] .video-card-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  line-height: 1.35;
}

.video-card-excerpt {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
html[lang="zh"] .video-card-excerpt { line-height: 1.85; }

/* Video popup modal */
body.video-modal-open { overflow: hidden; }

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.video-modal.is-open { display: flex; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.88);
}

.video-modal-content {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 720px);
  max-height: 90vh;
  width: 100%;
}

.video-modal-player {
  display: block;
  width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  background: #000;
}

.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #FAFAF7;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.video-modal-close:hover { background: rgba(255, 255, 255, 0.24); }

@media (max-width: 640px) {
  .video-modal { padding: 20px; }
  .video-modal-close { top: -40px; }
}

/* Contact */
.contact-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.3;
  color: var(--ink);
  max-width: 900px;
  margin-bottom: 60px;
}
html[lang="zh"] .contact-quote {
  font-family: 'Noto Serif TC', serif;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.contact-block dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.contact-block dd {
  font-size: 18px;
  color: var(--ink);
}

.contact-block dd a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s;
}
.contact-block dd a:hover { color: var(--accent); }

/* Footer */
footer {
  background: var(--ink);
  color: #FAFAF7;
  padding: 100px 40px 40px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-wordmark {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(64px, 14vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 80px;
}
html[lang="zh"] .footer-wordmark { font-family: 'Noto Serif TC', serif; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: #FAFAF7;
  text-decoration: none;
  font-size: 15px;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #97BC62; }

.footer-copy {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 900px) {
  .header-inner { padding: 18px 24px; }
  nav { gap: 18px; }
  nav a { font-size: 13px; }
  .lang-toggle { padding-left: 12px; margin-left: 4px; }
  .hero { padding: 60px 24px 80px; min-height: 80vh; }
  .section { padding: 80px 24px; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-aside { position: static; }
  .perf-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0;
  }
  .perf-year { font-size: 22px; }
  .perf-tag { justify-self: start; margin-top: 8px; }
  .hero-meta { gap: 24px; margin-top: 48px; }
  footer { padding: 60px 24px 30px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
}

@media (max-width: 640px) {
  .header-inner { align-items: flex-start; gap: 18px; }
  nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 10px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .timeline-date { padding-top: 0; }
  .video-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Single post */
.post-head {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px 0;
}

.post-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 40px;
}
.post-back:hover { color: var(--accent); }

.post-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 1100px;
}
html[lang="zh"] .post-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-meta .accent { color: var(--accent); }

.post-hero-media {
  max-width: 1400px;
  margin: 56px auto 0;
  padding: 0 40px;
}

.post-hero-media .frame {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: repeating-linear-gradient(45deg, var(--cream), var(--cream) 10px, var(--paper) 10px, var(--paper) 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.post-hero-media .frame span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.post-hero-media .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-caption {
  max-width: 1400px;
  margin: 14px auto 0;
  padding: 0 40px;
  font-size: 13px;
  color: var(--muted);
}

.post-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px 100px;
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 80px;
  align-items: start;
}

.post-article { max-width: 820px; }

.post-gallery {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.post-gallery h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.post-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.post-gallery-item {
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.post-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-end {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 40px;
  border-top: 1px solid var(--line);
}

.post-end a {
  display: inline-block;
  margin-top: 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}

@media (max-width: 900px) {
  .post-head { padding: 40px 24px 0; }
  .post-hero-media, .post-caption { padding: 0 24px; }
  .post-layout, .post-end, .post-gallery { padding-left: 24px; padding-right: 24px; }
  .post-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 72px;
  }
  .post-layout .story-aside { position: static; }
}
