/* -----------------------------
   SINGLE POST HERO
------------------------------ */
.post-hero {
  position: relative;
  height: clamp(400px, 72vh, 800px);
  overflow: hidden;
  background: #f5f5f5;
}

.post-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.85);
}

/* Back + category breadcrumb strip at top */
.post-hero-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 24px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.post-back-btn {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  background: #fff;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.post-back-btn:hover {
  opacity: 0.7;
}

.post-hero-cat {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px 14px;
  backdrop-filter: blur(6px);
}

/* White card at bottom of hero */
.post-hero-card-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: flex-start;
}

.post-hero-card {
  background: #fff;
  max-width: min(960px, 92%);
  padding: clamp(22px, 2.6vw, 38px) clamp(26px, 3.6vw, 52px);
}

.post-title {
  font-size: clamp(22px, 3.2vw, 52px);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #1a1a1a;
  margin-bottom: 14px;
  text-wrap: pretty;
}

.post-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #555;
}

.post-date {
  font-weight: 700;
  color: #1a1a1a;
}
.post-meta-dot {
  color: #cfcfcf;
}

/* -----------------------------
   POST BODY GRID
------------------------------ */
.post-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 24px 0;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
}

.post-main {
  min-width: 0; /* prevent grid blowout */
}

/* Excerpt */
.post-excerpt {
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.9;
  color: #555;
  letter-spacing: 0.02em;
  max-width: 680px;
  margin-bottom: 48px;
}

/* Gallery — single full width */
.post-gallery-single {
  overflow: hidden;
  margin-bottom: 4px;
}
.post-gallery-single img {
  width: 100%;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.9);
}

/* Wide 16/9 image */
.post-gallery-wide {
  overflow: hidden;
  margin-bottom: 4px;
}
.post-gallery-wide img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0.9);
}

/* Credits text between images */
.post-credits-text {
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.9;
  color: #555;
  max-width: 640px;
  margin: 40px 0;
}

/* 2-col gallery */
.post-gallery-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 32px;
}
.post-gallery-2col img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: brightness(0.9);
}

/* Credits table */
.post-credits-table {
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  padding: 28px 0;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px 32px;
}

.credit-role {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 4px;
}

.credit-name {
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #1a1a1a;
}

/* Tags + Share bar */
.post-footer-bar {
  border-top: 1px solid #f5f5f5;
  padding-top: 32px;
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.post-tags {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.tags-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #777;
}

.tag-pill {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid #222;
  color: #666;
  padding: 4px 10px;
}

.post-share {
  display: flex;
  gap: 12px;
  align-items: center;
}

.share-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #777;
}

.share-link {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}
.share-link:hover {
  color: #1a1a1a;
}

/* Prev / Next nav */
.post-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 48px;
  background: #f5f5f5;
}

.post-nav-grid > .post-nav-item:only-child {
  grid-column: 1 / -1;
}

.post-nav-item {
  background: #fff;
  padding: 28px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 120px;
  transition: background 0.2s;
}
.post-nav-item:hover {
  background: #f5f5f5;
}

.post-nav-next {
  align-items: flex-end;
}

.post-nav-dir {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 8px;
}

.post-nav-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #444;
  line-height: 1.3;
}

.post-nav-next .post-nav-title {
  text-align: right;
}

/* Responsive */
@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
  .post-grid .sidebar {
    display: none;
  }
}

@media (max-width: 640px) {
  .post-nav-grid {
    grid-template-columns: 1fr;
  }
  .post-gallery-2col {
    grid-template-columns: 1fr;
  }
}

.post-content img {
  width: 100%;
}

@media (min-width: 1280px){
    .post-hero {
        height: calc(100vh - 90px);
    }
    .post-title {
        font-size: 2.2vw;
    }
}