.gallery-image {
  position: relative;
}

.gallery-image img,
.gallery-image video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

/* og 이미지가 없을 때 placeholder */
.gallery-image.is-empty::after {
  content: "KDAC";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.12em;
}

/* ---- 빈 데이터 / 에러 상태 ---- */
.state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 100px 20px;
  color: rgba(255, 255, 255, 0.7);
}

.state-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.retry-btn {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.retry-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ---- 더보기(load more) ---- */
.load-more-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ---- 상세 본문 블록 (Notion 블록 렌더 보조) ---- */
.board-detail-body .article-image {
  margin: 28px 0;
  text-align: center;
}

.board-detail-body .article-image img,
.board-detail-body .article-image video {
  max-width: 100%;
  width: auto;
  max-height: 420px;
  height: auto;
  border-radius: 12px;
  display: inline-block;
}

.board-detail-body .article-image .video-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

.board-detail-body .article-image .video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

.board-detail-body .article-image figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.board-detail-body .callout {
  margin: 22px 0;
  padding: 18px 20px;
  background: rgba(3, 145, 241, 0.08);
  border: 1px solid rgba(3, 145, 241, 0.2);
  border-radius: 8px;
}

.board-detail-body .article-empty {
  color: rgba(255, 255, 255, 0.7);
}

/* 푸터 버튼 간격 (원문 보기 + 목록으로) */
.board-detail-footer {
  gap: 12px;
  flex-wrap: wrap;
}

/* 원문 보기 버튼 (강조) */
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--color-kdac, #0391F1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.primary-btn:hover {
  opacity: 0.88;
}
