/* ============================================================
   artikel.css — Halaman publik Artikel (Berita, Kronik, Historia)
   Paroki SMDTBA Tulungagung
   ============================================================ */

/* ── Page Header ─────────────────────────────────────────────────────── */
.art-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 4px 14px;
  border-bottom: 2px solid #b8860b;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.art-page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #564938;
  margin: 0;
  line-height: 1.2;
}
.art-page-sub {
  font-size: 12px;
  color: #888;
  margin: 4px 0 0;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .03em;
}
.art-page-count {
  font-size: 12px;
  background: rgba(184,134,11,.1);
  color: #7a5800;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Article Grid ────────────────────────────────────────────────────── */
/*
  FIX: ganti auto-fill minmax(280px,1fr) ke repeat(3,1fr)
  Layar 1400px  → auto-fill hasilkan 5 kolom → 9 artikel = 5+4 (slot kosong)
  Sekarang      → 3 kolom tetap              → 9 artikel = 3+3+3 (penuh)
*/
.art-pub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
  align-items: stretch;
}

/* ── Article Card ────────────────────────────────────────────────────── */
.art-pub-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e0d4;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative;
}
.art-pub-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(86,73,56,.13);
  border-color: rgba(184,134,11,.4);
}

/* Thumbnail */
.art-pub-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f0e8;
  flex-shrink: 0;
}
.art-pub-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.art-pub-card:hover .art-pub-thumb { transform: scale(1.05); }
.art-pub-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #ccc;
  background: linear-gradient(135deg, #f5f0e8, #ede4d4);
}

/* Gradien bawah gambar agar badge terbaca */
.art-pub-thumb-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(20,14,6,.5) 100%);
  pointer-events: none;
}

/* Badge menu */
.art-pub-menu-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(86,73,56,.88);
  color: #f5debb;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

/* Body */
.art-pub-body {
  flex: 1;
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Judul */
.art-pub-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: #2c1a0e;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(17px * 1.35 * 2); /* selalu 2 baris */
}

/* Ringkasan */
.art-pub-excerpt {
  font-size: 12.5px;
  color: #666;
  line-height: 1.62;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Archivo Narrow', Arial, sans-serif;
}

/* Meta */
.art-pub-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #f0e8dc;
}
.art-pub-date,
.art-pub-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #999;
  font-family: 'Montserrat', sans-serif;
}

/* Panah */
.art-pub-arrow {
  padding: 8px 16px 14px;
  color: #b8860b;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity .2s;
}
.art-pub-card:hover .art-pub-arrow { opacity: 1; }

/* Animasi staggered */
@keyframes art-fadein-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.art-pub-card { animation: art-fadein-up .35s ease both; }
.art-pub-card:nth-child(1) { animation-delay: .04s; }
.art-pub-card:nth-child(2) { animation-delay: .08s; }
.art-pub-card:nth-child(3) { animation-delay: .12s; }
.art-pub-card:nth-child(4) { animation-delay: .16s; }
.art-pub-card:nth-child(5) { animation-delay: .20s; }
.art-pub-card:nth-child(6) { animation-delay: .24s; }
.art-pub-card:nth-child(7) { animation-delay: .28s; }
.art-pub-card:nth-child(8) { animation-delay: .32s; }
.art-pub-card:nth-child(9) { animation-delay: .36s; }

/* ── Empty State ─────────────────────────────────────────────────────── */
.art-empty {
  text-align: center;
  padding: 48px 20px;
  color: #aaa;
}
.art-empty-icon { font-size: 48px; margin-bottom: 12px; }
.art-empty p    { font-size: 14px; color: #888; }

/* ── Pagination ──────────────────────────────────────────────────────── */
.art-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 8px 0 24px;
  flex-wrap: wrap;
}
.art-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d9cfc4;
  border-radius: 8px;
  font-size: 13px;
  color: #564938;
  text-decoration: none;
  transition: all .2s;
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  white-space: nowrap;
}
.art-page-btn:hover {
  background: rgba(184,134,11,.1);
  border-color: #b8860b;
  color: #7a5800;
}
.art-page-btn.active {
  background: #b8860b;
  border-color: #b8860b;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(184,134,11,.35);
}

/* ── Responsif grid ─────────────────────────────────────────────────── */
/* Desktop >1100px  → 4 kolom (diset di .art-pub-grid utama)            */
@media (max-width: 1100px) {
  .art-pub-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .art-pub-arrow { opacity: 1; }
}
/* ── Tablet: 2 kolom ────────────────────────────────────────────── */
@media (max-width: 700px) {
  .art-pub-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ── Mobile: 1 kolom list horizontal elegan (≤480px) ───────────── */
@media (max-width: 480px) {
  /* 2 kolom di mobile — card tetap vertikal */
  .art-pub-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Thumbnail lebih kecil agar card tidak terlalu tinggi */
  .art-pub-thumb-wrap {
    aspect-ratio: 4 / 3;
  }

  /* Badge lebih kecil */
  .art-pub-menu-badge {
    font-size: 7.5px;
    padding: 2px 6px;
    bottom: 7px; left: 7px;
  }

  /* Body lebih compact */
  .art-pub-body {
    padding: 10px 11px 8px;
    gap: 4px;
  }

  /* Judul: font lebih kecil, 2 baris */
  .art-pub-title {
    font-size: 13.5px;
    -webkit-line-clamp: 2;
    line-height: 1.38;
    min-height: calc(13.5px * 1.38 * 2);
  }

  /* Ringkasan: sembunyikan di mobile agar card tidak terlalu tinggi */
  .art-pub-excerpt { display: none; }

  /* Tags: 1 baris, font kecil */
  .art-pub-tags { height: 20px; gap: 3px; }
  .art-pub-tag  { font-size: 9.5px; padding: 1px 6px; }

  /* Meta: hanya tanggal, sembunyikan author */
  .art-pub-meta {
    margin-top: 6px;
    padding-top: 7px;
    gap: 4px;
  }
  .art-pub-date   { font-size: 10px; }
  .art-pub-author { display: none; }
  .art-pub-arrow  { display: none; }

  /* Pagination */
  .art-page-btn {
    min-width: 32px; height: 32px;
    font-size: 12px; padding: 0 8px;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   HALAMAN DETAIL ARTIKEL
══════════════════════════════════════════════════════════════════════ */

.art-detail-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 8px 12px 32px;
}
.art-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #999;
  margin-bottom: 16px;
  flex-wrap: wrap;
  font-family: 'Montserrat', sans-serif;
}
.art-breadcrumb a { color: #7a5800; text-decoration: none; }
.art-breadcrumb a:hover { text-decoration: underline; }
.art-detail-article {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8e0d4;
  overflow: hidden;
  margin-bottom: 20px;
}
.art-detail-header { padding: 24px 24px 0; }
.art-detail-menu-badge {
  display: inline-block;
  background: rgba(184,134,11,.1);
  color: #7a5800;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.art-detail-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #1c1106;
  line-height: 1.25;
  margin: 0 0 12px;
}
.art-detail-lead {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  border-left: 3px solid #b8860b;
  padding-left: 14px;
  margin: 0 0 16px;
  font-style: italic;
  font-family: 'Archivo Narrow', Arial, sans-serif;
}
.art-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #f0e8dc;
  border-bottom: 1px solid #f0e8dc;
  flex-wrap: wrap;
}
.art-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.art-detail-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #564938, #7a6655);
  color: #f5debb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  flex-shrink: 0;
}
.art-detail-meta-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #2c1a0e;
  font-family: 'Montserrat', sans-serif;
}
.art-detail-meta-role {
  font-size: 11px;
  color: #999;
  font-family: 'Montserrat', sans-serif;
}
.art-detail-thumb-wrap { padding: 20px 24px 0; }
.art-detail-thumb {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.art-detail-content {
  padding: 24px;
  font-family: 'Archivo Narrow', Georgia, serif;
  font-size: 15.5px;
  line-height: 1.85;
  color: #2c2c2c;
}
.art-detail-content h1 { font-family:'Cormorant Garamond',serif; font-size:1.9em; color:#1c1106; margin:1.4em 0 .6em; }
.art-detail-content h2 { font-family:'Cormorant Garamond',serif; font-size:1.55em; color:#2c1a0e; margin:1.3em 0 .5em; }
.art-detail-content h3 { font-family:'Cormorant Garamond',serif; font-size:1.25em; color:#3d2a18; margin:1.2em 0 .4em; }
.art-detail-content p  { margin-bottom:.95em; }
.art-detail-content ul,
.art-detail-content ol  { padding-left:1.6em; margin-bottom:.95em; }
.art-detail-content li  { margin-bottom:.3em; }
.art-detail-content a   { color:#7a5800; text-decoration:underline; }
.art-detail-content a:hover { color:#b8860b; }
.art-detail-content blockquote {
  border-left:3px solid #b8860b;
  margin:1.2em 0;
  padding:10px 18px;
  background:rgba(184,134,11,.05);
  color:#555;
  font-style:italic;
  border-radius:0 6px 6px 0;
}
.art-detail-content img { max-width:100%; height:auto; border-radius:8px; margin:12px 0; display:block; }
.art-detail-content strong { color:#1c1106; font-weight:700; }
.art-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 20px;
  border-top: 1px solid #f0e8dc;
  flex-wrap: wrap;
  gap: 12px;
}
.art-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1px solid #d9cfc4;
  border-radius: 8px;
  font-size: 13px;
  color: #564938;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: all .2s;
}
.art-back-btn:hover { background:#b8860b; border-color:#b8860b; color:#fff; }
.art-share { display:flex; align-items:center; gap:8px; }
.art-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #f5f0e8;
  border: 1px solid #e8e0d4;
  text-decoration: none;
  transition: all .2s;
}
.art-share-btn:hover { background:#b8860b; border-color:#b8860b; }

/* ── Artikel Terkait ─────────────────────────────────────────────────── */
.art-related { margin-top:20px; }
.art-related-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  color: #564938;
  margin-bottom: 12px;
  font-weight: 700;
}
.art-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.art-related-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  background: #fff;
  border: 1px solid #e8e0d4;
  border-radius: 8px;
  text-decoration: none;
  transition: all .2s;
  flex-direction: column;
}
.art-related-card:hover { border-color:rgba(184,134,11,.4); box-shadow:0 3px 10px rgba(86,73,56,.08); }
.art-related-thumb { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:6px; }
.art-related-thumb-placeholder {
  width:100%; aspect-ratio:16/9;
  display:flex; align-items:center; justify-content:center;
  background:#f5f0e8; border-radius:6px; font-size:24px;
}
.art-related-card-title {
  font-size:13px; font-weight:600; color:#2c1a0e; line-height:1.4;
  font-family:'Archivo Narrow',Arial,sans-serif;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.art-related-date { font-size:11px; color:#999; margin-top:4px; font-family:'Montserrat',sans-serif; }

/* ── Responsive detail ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .art-detail-header,
  .art-detail-thumb-wrap,
  .art-detail-content,
  .art-detail-footer { padding-left:16px; padding-right:16px; }
  .art-detail-title { font-size:1.5rem; }
  .art-related-grid { grid-template-columns:1fr; }
  .art-detail-footer { flex-direction:column; align-items:flex-start; }
}
/* ── Skeleton untuk grid artikel & galeri ───────────────────────── */
.art-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2vw, 18px);
}
@media (max-width: 1100px) { .art-skeleton-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .art-skeleton-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .art-skeleton-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.art-skeleton-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e8dfd0;
}
.art-skeleton-thumb {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(90deg, #e8dfd0 25%, #f5ede0 50%, #e8dfd0 75%);
  background-size: 600px 100%;
  animation: skeletonShimmer 1.4s infinite linear;
}
.art-skeleton-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.art-skeleton-line {
  border-radius: 4px;
  background: linear-gradient(90deg, #e8dfd0 25%, #f5ede0 50%, #e8dfd0 75%);
  background-size: 600px 100%;
  animation: skeletonShimmer 1.4s infinite linear;
}
.art-skeleton-line.title  { height: 17px; width: 85%; }
.art-skeleton-line.title2 { height: 17px; width: 60%; }
.art-skeleton-line.text   { height: 12px; width: 100%; }
.art-skeleton-line.text2  { height: 12px; width: 70%; }
.art-skeleton-line.meta   { height: 10px; width: 45%; margin-top: 4px; }

/* ── Tags artikel — elegan ───────────────────────────────────────────── */
.art-pub-tags {
  display: flex;
  flex-wrap: nowrap;     /* paksa 1 baris */
  overflow: hidden;
  gap: 5px;
  margin: 4px 0 2px;
  height: 22px;          /* tinggi fixed 1 baris */
}
.art-pub-tag {
  display: inline-block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: lowercase;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(184,134,11,.08);
  color: #8a6820;
  border: 1px solid rgba(184,134,11,.22);
  line-height: 1.4;
  transition: background .15s, color .15s;
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.art-pub-tag:hover {
  background: rgba(184,134,11,.15);
  color: #6b4f10;
}

/* Tags di halaman detail artikel */
.art-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}
.art-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: lowercase;
  padding: 5px 13px;
  border-radius: 20px;
  background: #faf4e8;
  color: #7a5c10;
  border: 1px solid rgba(184,134,11,.25);
  transition: all .15s;
}
.art-detail-tag::before {
  content: '#';
  opacity: .5;
  font-size: .65rem;
}
.art-detail-tag:hover {
  background: #f5e9c8;
  border-color: rgba(184,134,11,.5);
  color: #5a4008;
}

/* ── Tags — elegan ──────────────────────────────────────────────────── */
.art-pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 8px;
}

.art-pub-tag {
  display: inline-flex;
  align-items: center;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: lowercase;
  padding: 3px 9px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid rgba(139,103,40,.3);
  color: #8b6728;
  transition: background .18s, border-color .18s, color .18s;
  line-height: 1.4;
  white-space: nowrap;
}

.art-pub-tag::before {
  content: '#';
  opacity: .6;
  margin-right: 1px;
  font-weight: 400;
}

.art-pub-tag:hover {
  background: rgba(184,150,62,.1);
  border-color: rgba(184,150,62,.5);
  color: #7a5800;
}

/* Tags di halaman detail artikel */
.art-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 1.2rem 0;
}

.art-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: lowercase;
  padding: 5px 13px;
  border-radius: 20px;
  background: #faf5eb;
  border: 1px solid rgba(184,150,62,.25);
  color: #8b6728;
  text-decoration: none;
  transition: all .18s;
}

.art-detail-tag::before {
  content: '#';
  opacity: .55;
  font-weight: 400;
}

.art-detail-tag:hover {
  background: rgba(184,150,62,.15);
  border-color: var(--gold, #b8963e);
  color: #5c3d00;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(184,150,62,.15);
}

/* ============================================================
   artikel.css — Halaman publik Artikel (Berita, Kronik, Historia)
   Paroki SMDTBA Tulungagung
   ============================================================ */

/* ── Page Header ─────────────────────────────────────────────────────── */
.art-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 4px 14px;
  border-bottom: 2px solid #b8860b;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.art-page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #564938;
  margin: 0;
  line-height: 1.2;
}
.art-page-sub {
  font-size: 12px;
  color: #888;
  margin: 4px 0 0;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .03em;
}
.art-page-count {
  font-size: 12px;
  background: rgba(184,134,11,.1);
  color: #7a5800;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Article Grid ────────────────────────────────────────────────────── */
/*
  FIX: ganti auto-fill minmax(280px,1fr) ke repeat(3,1fr)
  Layar 1400px  → auto-fill hasilkan 5 kolom → 9 artikel = 5+4 (slot kosong)
  Sekarang      → 3 kolom tetap              → 9 artikel = 3+3+3 (penuh)
*/
.art-pub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
  align-items: stretch;
}

/* ── Article Card ────────────────────────────────────────────────────── */
.art-pub-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e0d4;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative;
}
.art-pub-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(86,73,56,.13);
  border-color: rgba(184,134,11,.4);
}

/* Thumbnail */
.art-pub-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f0e8;
  flex-shrink: 0;
}
.art-pub-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.art-pub-card:hover .art-pub-thumb { transform: scale(1.05); }
.art-pub-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #ccc;
  background: linear-gradient(135deg, #f5f0e8, #ede4d4);
}

/* Gradien bawah gambar agar badge terbaca */
.art-pub-thumb-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(20,14,6,.5) 100%);
  pointer-events: none;
}

/* Badge menu */
.art-pub-menu-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(86,73,56,.88);
  color: #f5debb;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

/* Body */
.art-pub-body {
  flex: 1;
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Judul */
.art-pub-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: #2c1a0e;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(17px * 1.35 * 2); /* selalu 2 baris */
}

/* Ringkasan */
.art-pub-excerpt {
  font-size: 12.5px;
  color: #666;
  line-height: 1.62;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Archivo Narrow', Arial, sans-serif;
}

/* Meta */
.art-pub-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #f0e8dc;
}
.art-pub-date,
.art-pub-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #999;
  font-family: 'Montserrat', sans-serif;
}

/* Panah */
.art-pub-arrow {
  padding: 8px 16px 14px;
  color: #b8860b;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity .2s;
}
.art-pub-card:hover .art-pub-arrow { opacity: 1; }

/* Animasi staggered */
@keyframes art-fadein-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.art-pub-card { animation: art-fadein-up .35s ease both; }
.art-pub-card:nth-child(1) { animation-delay: .04s; }
.art-pub-card:nth-child(2) { animation-delay: .08s; }
.art-pub-card:nth-child(3) { animation-delay: .12s; }
.art-pub-card:nth-child(4) { animation-delay: .16s; }
.art-pub-card:nth-child(5) { animation-delay: .20s; }
.art-pub-card:nth-child(6) { animation-delay: .24s; }
.art-pub-card:nth-child(7) { animation-delay: .28s; }
.art-pub-card:nth-child(8) { animation-delay: .32s; }
.art-pub-card:nth-child(9) { animation-delay: .36s; }

/* ── Empty State ─────────────────────────────────────────────────────── */
.art-empty {
  text-align: center;
  padding: 48px 20px;
  color: #aaa;
}
.art-empty-icon { font-size: 48px; margin-bottom: 12px; }
.art-empty p    { font-size: 14px; color: #888; }

/* ── Pagination ──────────────────────────────────────────────────────── */
.art-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 8px 0 24px;
  flex-wrap: wrap;
}
.art-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d9cfc4;
  border-radius: 8px;
  font-size: 13px;
  color: #564938;
  text-decoration: none;
  transition: all .2s;
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  white-space: nowrap;
}
.art-page-btn:hover {
  background: rgba(184,134,11,.1);
  border-color: #b8860b;
  color: #7a5800;
}
.art-page-btn.active {
  background: #b8860b;
  border-color: #b8860b;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(184,134,11,.35);
}

/* ── Responsif grid ─────────────────────────────────────────────────── */
/* Desktop >1100px  → 4 kolom (diset di .art-pub-grid utama)            */
@media (max-width: 1100px) {
  .art-pub-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .art-pub-arrow { opacity: 1; }
}
/* ── Tablet: 2 kolom ────────────────────────────────────────────── */
@media (max-width: 700px) {
  .art-pub-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ── Mobile: 1 kolom list horizontal elegan (≤480px) ───────────── */
@media (max-width: 480px) {
  /* 2 kolom di mobile — card tetap vertikal */
  .art-pub-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Thumbnail lebih kecil agar card tidak terlalu tinggi */
  .art-pub-thumb-wrap {
    aspect-ratio: 4 / 3;
  }

  /* Badge lebih kecil */
  .art-pub-menu-badge {
    font-size: 7.5px;
    padding: 2px 6px;
    bottom: 7px; left: 7px;
  }

  /* Body lebih compact */
  .art-pub-body {
    padding: 10px 11px 8px;
    gap: 4px;
  }

  /* Judul: font lebih kecil, 2 baris */
  .art-pub-title {
    font-size: 13.5px;
    -webkit-line-clamp: 2;
    line-height: 1.38;
    min-height: calc(13.5px * 1.38 * 2);
  }

  /* Ringkasan: sembunyikan di mobile agar card tidak terlalu tinggi */
  .art-pub-excerpt { display: none; }

  /* Tags: 1 baris, font kecil */
  .art-pub-tags { height: 20px; gap: 3px; }
  .art-pub-tag  { font-size: 9.5px; padding: 1px 6px; }

  /* Meta: hanya tanggal, sembunyikan author */
  .art-pub-meta {
    margin-top: 6px;
    padding-top: 7px;
    gap: 4px;
  }
  .art-pub-date   { font-size: 10px; }
  .art-pub-author { display: none; }
  .art-pub-arrow  { display: none; }

  /* Pagination */
  .art-page-btn {
    min-width: 32px; height: 32px;
    font-size: 12px; padding: 0 8px;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   HALAMAN DETAIL ARTIKEL
══════════════════════════════════════════════════════════════════════ */

.art-detail-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 8px 12px 32px;
}
.art-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #999;
  margin-bottom: 16px;
  flex-wrap: wrap;
  font-family: 'Montserrat', sans-serif;
}
.art-breadcrumb a { color: #7a5800; text-decoration: none; }
.art-breadcrumb a:hover { text-decoration: underline; }
.art-detail-article {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8e0d4;
  overflow: hidden;
  margin-bottom: 20px;
}
.art-detail-header { padding: 24px 24px 0; }
.art-detail-menu-badge {
  display: inline-block;
  background: rgba(184,134,11,.1);
  color: #7a5800;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.art-detail-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #1c1106;
  line-height: 1.25;
  margin: 0 0 12px;
}
.art-detail-lead {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  border-left: 3px solid #b8860b;
  padding-left: 14px;
  margin: 0 0 16px;
  font-style: italic;
  font-family: 'Archivo Narrow', Arial, sans-serif;
}
.art-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #f0e8dc;
  border-bottom: 1px solid #f0e8dc;
  flex-wrap: wrap;
}
.art-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.art-detail-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #564938, #7a6655);
  color: #f5debb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  flex-shrink: 0;
}
.art-detail-meta-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #2c1a0e;
  font-family: 'Montserrat', sans-serif;
}
.art-detail-meta-role {
  font-size: 11px;
  color: #999;
  font-family: 'Montserrat', sans-serif;
}
.art-detail-thumb-wrap { padding: 20px 24px 0; }
.art-detail-thumb {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.art-detail-content {
  padding: 24px;
  font-family: 'Archivo Narrow', Georgia, serif;
  font-size: 15.5px;
  line-height: 1.85;
  color: #2c2c2c;
}
.art-detail-content h1 { font-family:'Cormorant Garamond',serif; font-size:1.9em; color:#1c1106; margin:1.4em 0 .6em; }
.art-detail-content h2 { font-family:'Cormorant Garamond',serif; font-size:1.55em; color:#2c1a0e; margin:1.3em 0 .5em; }
.art-detail-content h3 { font-family:'Cormorant Garamond',serif; font-size:1.25em; color:#3d2a18; margin:1.2em 0 .4em; }
.art-detail-content p  { margin-bottom:.95em; }
.art-detail-content ul,
.art-detail-content ol  { padding-left:1.6em; margin-bottom:.95em; }
.art-detail-content li  { margin-bottom:.3em; }
.art-detail-content a   { color:#7a5800; text-decoration:underline; }
.art-detail-content a:hover { color:#b8860b; }
.art-detail-content blockquote {
  border-left:3px solid #b8860b;
  margin:1.2em 0;
  padding:10px 18px;
  background:rgba(184,134,11,.05);
  color:#555;
  font-style:italic;
  border-radius:0 6px 6px 0;
}
.art-detail-content img { max-width:100%; height:auto; border-radius:8px; margin:12px 0; display:block; }
.art-detail-content strong { color:#1c1106; font-weight:700; }
.art-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 20px;
  border-top: 1px solid #f0e8dc;
  flex-wrap: wrap;
  gap: 12px;
}
.art-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1px solid #d9cfc4;
  border-radius: 8px;
  font-size: 13px;
  color: #564938;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: all .2s;
}
.art-back-btn:hover { background:#b8860b; border-color:#b8860b; color:#fff; }
.art-share { display:flex; align-items:center; gap:8px; }
.art-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #f5f0e8;
  border: 1px solid #e8e0d4;
  text-decoration: none;
  transition: all .2s;
}
.art-share-btn:hover { background:#b8860b; border-color:#b8860b; }

/* ── Artikel Terkait ─────────────────────────────────────────────────── */
.art-related { margin-top:20px; }
.art-related-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  color: #564938;
  margin-bottom: 12px;
  font-weight: 700;
}
.art-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.art-related-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  background: #fff;
  border: 1px solid #e8e0d4;
  border-radius: 8px;
  text-decoration: none;
  transition: all .2s;
  flex-direction: column;
}
.art-related-card:hover { border-color:rgba(184,134,11,.4); box-shadow:0 3px 10px rgba(86,73,56,.08); }
.art-related-thumb { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:6px; }
.art-related-thumb-placeholder {
  width:100%; aspect-ratio:16/9;
  display:flex; align-items:center; justify-content:center;
  background:#f5f0e8; border-radius:6px; font-size:24px;
}
.art-related-card-title {
  font-size:13px; font-weight:600; color:#2c1a0e; line-height:1.4;
  font-family:'Archivo Narrow',Arial,sans-serif;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.art-related-date { font-size:11px; color:#999; margin-top:4px; font-family:'Montserrat',sans-serif; }

/* ── Responsive detail ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .art-detail-header,
  .art-detail-thumb-wrap,
  .art-detail-content,
  .art-detail-footer { padding-left:16px; padding-right:16px; }
  .art-detail-title { font-size:1.5rem; }
  .art-related-grid { grid-template-columns:1fr; }
  .art-detail-footer { flex-direction:column; align-items:flex-start; }
}
/* ── Skeleton untuk grid artikel & galeri ───────────────────────── */
.art-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2vw, 18px);
}
@media (max-width: 1100px) { .art-skeleton-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .art-skeleton-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .art-skeleton-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.art-skeleton-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e8dfd0;
}
.art-skeleton-thumb {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(90deg, #e8dfd0 25%, #f5ede0 50%, #e8dfd0 75%);
  background-size: 600px 100%;
  animation: skeletonShimmer 1.4s infinite linear;
}
.art-skeleton-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.art-skeleton-line {
  border-radius: 4px;
  background: linear-gradient(90deg, #e8dfd0 25%, #f5ede0 50%, #e8dfd0 75%);
  background-size: 600px 100%;
  animation: skeletonShimmer 1.4s infinite linear;
}
.art-skeleton-line.title  { height: 17px; width: 85%; }
.art-skeleton-line.title2 { height: 17px; width: 60%; }
.art-skeleton-line.text   { height: 12px; width: 100%; }
.art-skeleton-line.text2  { height: 12px; width: 70%; }
.art-skeleton-line.meta   { height: 10px; width: 45%; margin-top: 4px; }

/* ── Tags artikel — elegan ───────────────────────────────────────────── */
.art-pub-tags {
  display: flex;
  flex-wrap: nowrap;     /* paksa 1 baris */
  overflow: hidden;
  gap: 5px;
  margin: 4px 0 2px;
  height: 22px;          /* tinggi fixed 1 baris */
}
.art-pub-tag {
  display: inline-block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: lowercase;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(184,134,11,.08);
  color: #8a6820;
  border: 1px solid rgba(184,134,11,.22);
  line-height: 1.4;
  transition: background .15s, color .15s;
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.art-pub-tag:hover {
  background: rgba(184,134,11,.15);
  color: #6b4f10;
}

/* Tags di halaman detail artikel */
.art-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}
.art-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: lowercase;
  padding: 5px 13px;
  border-radius: 20px;
  background: #faf4e8;
  color: #7a5c10;
  border: 1px solid rgba(184,134,11,.25);
  transition: all .15s;
}
.art-detail-tag::before {
  content: '#';
  opacity: .5;
  font-size: .65rem;
}
.art-detail-tag:hover {
  background: #f5e9c8;
  border-color: rgba(184,134,11,.5);
  color: #5a4008;
}

/* ── Tags — elegan ──────────────────────────────────────────────────── */
.art-pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 8px;
}

.art-pub-tag {
  display: inline-flex;
  align-items: center;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: lowercase;
  padding: 3px 9px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid rgba(139,103,40,.3);
  color: #8b6728;
  transition: background .18s, border-color .18s, color .18s;
  line-height: 1.4;
  white-space: nowrap;
}

.art-pub-tag::before {
  content: '#';
  opacity: .6;
  margin-right: 1px;
  font-weight: 400;
}

.art-pub-tag:hover {
  background: rgba(184,150,62,.1);
  border-color: rgba(184,150,62,.5);
  color: #7a5800;
}

/* Tags di halaman detail artikel */
.art-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 1.2rem 0;
}

.art-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: lowercase;
  padding: 5px 13px;
  border-radius: 20px;
  background: #faf5eb;
  border: 1px solid rgba(184,150,62,.25);
  color: #8b6728;
  text-decoration: none;
  transition: all .18s;
}

.art-detail-tag::before {
  content: '#';
  opacity: .55;
  font-weight: 400;
}

.art-detail-tag:hover {
  background: rgba(184,150,62,.15);
  border-color: var(--gold, #b8963e);
  color: #5c3d00;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(184,150,62,.15);
}
/* ============================================================
   IMAGE SYSTEM — UPGRADE PROFESSIONAL (PORTRAIT + LANDSCAPE FIX)
   ============================================================ */

/* ── ROW GAMBAR ───────────────────────────────────────────── */
.image-row {
  display: flex;
  gap: clamp(8px, 1.5vw, 16px);
  margin: 20px 0;
  align-items: stretch;
}

/* ── WRAPPER GAMBAR ───────────────────────────────────────── */
.image-row .img-wrap {
  flex: 1;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;

  /* 🔥 FIX TINGGI KONSISTEN */
  height: clamp(180px, 25vw, 280px);

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f5f5f5;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* ── HOVER WRAPPER ───────────────────────────────────────── */
.image-row .img-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

/* ── DEFAULT GAMBAR (LANDSCAPE) ─────────────────────────── */
.image-row img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* default: landscape */
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

/* ── PORTRAIT MODE (AUTO VIA JS) ─────────────────────────── */
.image-row img.portrait {
  width: auto;
  height: 100%;
  object-fit: contain; /* 🔥 tidak dipotong */
}

/* ── HOVER IMAGE ─────────────────────────────────────────── */
.image-row .img-wrap:hover img {
  transform: scale(1.05);
}

/* ── SINGLE IMAGE FULL ───────────────────────────────────── */
.image-row .img-wrap:only-child {
  flex: 1 1 100%;
  height: clamp(220px, 35vw, 420px);
}

/* ── MULTI IMAGE BALANCE ─────────────────────────────────── */
.image-row .img-wrap {
  min-width: 0;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .image-row {
    flex-wrap: wrap;
  }

  .image-row .img-wrap {
    flex: 1 1 calc(50% - 6px);
    height: 200px;
  }
}

/* ============================================================
   COMPATIBILITY FIX (ANTI KONFLIK CSS LAMA)
   ============================================================ */

/* reset global img-wrap */
.img-wrap {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

/* paksa semua image dalam sistem ini konsisten */
.img-wrap img {
  border-radius: 12px;
  object-fit: cover !important;
}

/* override khusus portrait (lebih kuat dari !important di atas) */
.image-row img.portrait {
  object-fit: contain !important;
}

/* ============================================================
   MICRO UX IMPROVEMENT (LEVEL PREMIUM)
   ============================================================ */

/* smooth loading feel */
.image-row img {
  opacity: 0;
  animation: imgFade .5s ease forwards;
}

@keyframes imgFade {
  to { opacity: 1; }
}

/* klik cursor */
.image-row img {
  cursor: zoom-in;
}

/* subtle zoom feel */
.image-row .img-wrap:active img {
  transform: scale(1.02);
}
/* ============================================================
   END IMAGE SYSTEM
   ============================================================ */
.art-detail-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #f5f5f5;
}

.art-detail-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 👉 thumbnail boleh crop */
}
.art-detail-thumb {
  transition: transform 0.4s ease;
}

.art-detail-thumb:hover {
  transform: scale(1.05);
}
.img-figure {
  margin: 20px 0;
}

.img-figure img {
  width: 100%;
  border-radius: 12px;
}

.img-figure figcaption {
  font-size: 11px;
  color: #8a7a63;
  margin-top: 5px;
  text-align: center;
  line-height: 1.4;
  font-style: italic;
  opacity: 0.85;
  letter-spacing: 0.2px;
}


.ai-caption {
    font-size: 0.85em;
    color: #666;
    text-align: center;
    margin-top: 0.5em;
    font-style: italic;
    font-family: 'Georgia', serif;
}
.img-figure.ai-enhanced {
    margin: 1.5em 0;
    text-align: center;
}
.img-figure.ai-enhanced figcaption {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,240,240,0.9));
    padding: 0.5em 1em;
    border-radius: 8px;
    border-left: 3px solid #8B4513;
    backdrop-filter: blur(5px);
    max-width: 90%;
    margin: 0.5em auto 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* REMOVED: duplicate grid-based .image-row was overriding the flex layout above.
   Gunakan definisi .image-row { display: flex } di atas (baris ~1467). */

.img-wrap {
  overflow: hidden;
  border-radius: 14px;
  background: #f5f5f5;
}

/* img di dalam img-wrap yang berdiri sendiri (bukan dalam image-row) */
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.img-wrap:hover img {
  transform: scale(1.05);
}

/* safety */
.img-wrap:empty {
  display: none;
}
.art-detail-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

img[data-ratio="16:9"] {
  aspect-ratio: 16/9;
  object-fit: cover;
}

img[data-ratio="3:4"] {
  aspect-ratio: 3/4;
}

.img-caption {
  font-size: 11px;
  color: #8a7a63;
  text-align: center;
  margin-top: 6px;
  line-height: 1.4;
  font-style: italic;
  opacity: 0.85;
}
/* Container row */
.image-row {
  display: flex;
  gap: 16px;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
/* Wrapper tiap gambar */
.img-wrap {
  flex: 1;
  min-width: 220px;
  text-align: center;
}

/* ── Caption gabungan (multi image row) — DIGANTI DENGAN VERSI ELEGAN DI BAWAH ─ */

/* ============================================================
   CAPTION SYSTEM — PROFESSIONAL PHOTOJOURNALISM STYLE
   Paroki SMDTBA Tulungagung
   ============================================================ */

/* ── VISUALLY HIDDEN (SEO-only, tetap di DOM) ─────────────── */
.img-caption-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}

/* ── CAPTION INDIVIDUAL (gambar tunggal) ──────────────────── */
.img-caption,
.img-figure > figcaption,
.img-figure figcaption {
  display: block !important;
  margin-top: -10px !important;
  padding: 10px 16px 0 !important;
  font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif !important;
  font-size: 13px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: #4e3d26 !important;
  line-height: 1.7 !important;
  text-align: center !important;
  letter-spacing: 0.25px !important;
  opacity: 1 !important;
  position: relative !important;
}

/* Garis dekoratif di atas caption individual */
.img-caption::before,
.img-figure > figcaption::before,
.img-figure figcaption::before {
  content: '' !important;
  display: block !important;
  width: 32px !important;
  height: 1.5px !important;
  background: linear-gradient(90deg, rgba(184,134,11,0.15), #b8860b, rgba(184,134,11,0.15)) !important;
  margin: 0 auto 9px !important;
  border-radius: 2px !important;
}

/* ── CAPTION GABUNGAN (grup 2-3 gambar) ───────────────────── */
.image-row-caption {
  flex: 0 0 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 14px !important;
  padding: 12px 24px 0 !important;
  font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif !important;
  font-size: 13.5px !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: #3d2e18 !important;
  line-height: 1.72 !important;
  text-align: center !important;
  letter-spacing: 0.22px !important;
  opacity: 1 !important;
  position: relative !important;
  /* Override sebelumnya */
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Garis dekoratif elegan di atas caption gabungan */
.image-row-caption::before {
  content: '' !important;
  display: block !important;
  width: 52px !important;
  height: 1px !important;
  background: linear-gradient(90deg,
    rgba(184,134,11,0.08),
    #b8860b 40%,
    #b8860b 60%,
    rgba(184,134,11,0.08)) !important;
  margin: 0 auto 11px !important;
  border-radius: 2px !important;
}

/* Pastikan caption tidak memakai ::after dari definisi lama */
.image-row-caption::after {
  content: none !important;
}

/* ── CAPTION THUMBNAIL ARTIKEL (hero image) ───────────────── */
.art-detail-thumb-caption {
  display: block;
  margin-top: 10px;
  padding: 10px 20px 0;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  color: #4e3d26;
  line-height: 1.7;
  text-align: center;
  letter-spacing: 0.22px;
  position: relative;
}
.art-detail-thumb-caption::before {
  content: '';
  display: block;
  width: 40px;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(184,134,11,0.15), #b8860b, rgba(184,134,11,0.15));
  margin: 0 auto 9px;
  border-radius: 2px;
}

/* ── Pastikan image-row flex-wrap agar caption turun ke bawah  */
.image-row {
  flex-wrap: wrap !important;
}

/* ── Hapus ::before dari definisi lama .image-row-caption ─── */
/* (sudah ditangani oleh !important di atas) */