.posts-section-kicker {
  margin: 0 0 14px;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b77955;
}

.posts-page-section {
  padding: 32px 0 72px;
  background: #f5f7fa;
}

.posts-page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0 20px;
}

.posts-page-header h2 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #1f2a37;
}

.posts-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d9e0e7;
  box-shadow: 0 4px 16px rgba(31, 42, 55, 0.04);
  color: #5a6673;
  font-size: 0.92rem;
}

.posts-feed {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
  padding: 16px 16px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #dde3ea;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  align-self: start;
}

.post-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.post-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.post-card-slug {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: #2a3542;
}

.post-card-date {
  display: inline-block;
  margin-top: 3px;
  font-size: 0.8rem;
  color: #7b8794;
}

.post-card-body {
  margin-top: 12px;
  font-size: 0.97rem;
  line-height: 1.75;
  color: #263445;
  word-break: break-word;
}

.post-card-title {
  margin-top: 12px;
  color: #1f2a37;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.post-card-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 10px;
}

.post-card-images.is-single {
  grid-template-columns: 1fr;
}

.post-card-image-link {
  display: block;
}

.post-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  background: #f3f4f6;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.posts-empty-state {
  padding: 56px 28px;
  text-align: center;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #dde3ea;
  box-shadow: 0 8px 24px rgba(31, 42, 55, 0.05);
}

.posts-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff1e6, #eef6ff);
  color: #a26a43;
  font-size: 1.5rem;
}

.posts-empty-state h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  color: #1f2a37;
}

.posts-empty-state p {
  margin: 0;
  color: #5d6b7a;
  line-height: 1.85;
}

.posts-empty-inline {
  padding: 12px 0 4px;
}

.posts-empty-inline p {
  margin: 0;
  color: #5d6b7a;
  font-size: 0.96rem;
}

.post-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: calc(100vh - 220px);
  border-radius: 24px;
  overflow: hidden;
  background: #111111;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.post-detail-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: #111111;
}

.post-detail-close {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  text-decoration: none;
  font-size: 1.6rem;
  line-height: 1;
  z-index: 2;
}

.post-detail-image-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.post-detail-main-image {
  display: none;
  max-width: min(100%, 680px);
  max-height: calc(100vh - 260px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #1c1c1c;
}

.post-detail-main-image.is-active {
  display: block;
}

.post-detail-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.post-detail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.post-detail-nav-prev {
  left: 16px;
}

.post-detail-nav-next {
  right: 16px;
}

.post-detail-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.post-detail-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.post-detail-dot.is-active {
  background: #ffffff;
}

.post-detail-panel {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-left: 1px solid #eceff3;
}

.post-detail-panel-header {
  padding: 18px 22px;
  border-bottom: 1px solid #eceff3;
}

.post-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5a6673;
  text-decoration: none;
  font-size: 0.95rem;
}

.post-detail-panel-body {
  padding: 22px;
}

.post-detail-date {
  display: inline-block;
  margin-bottom: 14px;
  color: #667280;
  font-size: 0.9rem;
}

.post-detail-title {
  margin: 0 0 14px;
  color: #1f2a37;
  font-size: 1.55rem;
  line-height: 1.45;
}

.post-detail-body {
  font-size: 1rem;
  line-height: 1.9;
  color: #263445;
  word-break: break-word;
}

.post-related-section {
  margin-top: 24px;
}

.post-related-header {
  margin-bottom: 12px;
}

.post-related-header h2 {
  color: #1f2a37;
  font-size: 1.4rem;
}

.post-related-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 767px) {
  .posts-page-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .posts-count {
    min-width: auto;
    min-height: auto;
    border-radius: 999px;
    padding: 10px 18px;
  }

  .post-card {
    padding: 14px 14px 16px;
    border-radius: 16px;
  }

  .post-card-images {
    grid-template-columns: 1fr;
  }

  .post-detail-shell {
    display: flex;
    flex-direction: column;
    min-height: auto;
    border-radius: 18px;
    background: #ffffff;
  }

  .post-detail-stage {
    order: 1;
    padding: 0;
    background: #ffffff;
  }

  .post-detail-close {
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
  }

  .post-detail-main-image {
    max-width: 100%;
    width: 100%;
    max-height: none;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background: #f3f4f6;
  }

  .post-detail-nav {
    width: 38px;
    height: 38px;
    font-size: 1.7rem;
  }

  .post-detail-nav-prev {
    left: 10px;
  }

  .post-detail-nav-next {
    right: 10px;
  }

  .post-detail-panel {
    order: 2;
    display: flex;
    flex-direction: column;
    border-left: none;
    border-top: 1px solid #eceff3;
  }

  .post-detail-panel-header,
  .post-detail-panel-body {
    padding: 16px;
  }

  .post-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .post-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-detail-shell {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 1100px) {
  .posts-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .posts-feed {
    grid-template-columns: 1fr;
  }
}
