.fpdg-detail { color:#102b55; background:#f7f9fc; }
.fpdg-wrap { width:min(1160px, calc(100% - 40px)); margin:auto; }
/* Fallback banner when the active theme does not provide fpd_render_page_banner().
   The standard theme banner uses the same CSS variables from Site Manager. */
.fpdg-detail > .fpdg-hero {
  box-sizing:border-box;
  display:flex;
  align-items:center;
  width:min(1180px,calc(100% - 40px));
  min-height:var(--fpd-banner-h,230px);
  margin:28px auto 22px;
  padding:34px 0;
  color:#fff;
  border-radius:var(--fpd-banner-radius,18px);
  overflow:hidden;
  background:linear-gradient(115deg,var(--fpd-banner-start,#103463),var(--fpd-banner-end,#20569a));
}
.fpdg-breadcrumb-area { padding-top:24px; }
.fpdg-breadcrumb-area .fpdg-crumb { margin-bottom:0; color:#385375; }
.fpdg-breadcrumb-area .fpdg-crumb a { color:#174b89; }
.fpdg-detail > .fpdg-hero-meta--below { color:#385375; font-size:14px; line-height:1.5; margin-top:0; margin-bottom:0; }

.fpdg-crumb { margin-bottom:20px; font-size:13px; color:#dce8fa; overflow-wrap:anywhere; }
.fpdg-crumb a { color:#fff; }
.fpdg-tag { display:inline-block; background:rgba(255,255,255,.18); border-radius:30px; padding:4px 12px; font-size:12px; font-weight:700; }
.fpdg-hero h1 { color:#fff; font-size:clamp(30px,4vw,48px); max-width:780px; margin:10px 0; line-height:1.08; }
.fpdg-accent { width:50px; height:4px; border-radius:5px; background:#de2635; margin-bottom:14px; }
.fpdg-hero-meta { display:flex; flex-wrap:wrap; gap:10px 22px; font-size:14px; }
.fpdg-content { padding-top:20px; padding-bottom:48px; }
.fpdg-viewer { position:relative; border-radius:14px; overflow:hidden; background:#dce5f1; }
.fpdg-slide { margin:0; height:clamp(240px,42vw,500px); }
.fpdg-slide[hidden], .fpdg-thumb[hidden] { display:none !important; }
.fpdg-slide img { width:100%; height:100%; object-fit:cover; }
.fpdg-arrow { position:absolute; top:50%; transform:translateY(-50%); width:42px; height:42px; border:0; border-radius:50%; background:#fff; color:#0b3265; font-size:30px; line-height:1; cursor:pointer; }
.fpdg-prev { left:15px; }.fpdg-next { right:15px; }
.fpdg-viewer-actions { position:absolute; bottom:14px; right:14px; display:flex; gap:8px; align-items:center; }.fpdg-counter,.fpdg-fullscreen { color:#fff; background:rgba(0,0,0,.65); border:0; border-radius:20px; padding:4px 10px; font-size:13px; }.fpdg-fullscreen { cursor:pointer; font-size:18px; }
.fpdg-viewer:fullscreen .fpdg-slide { height:100vh; }.fpdg-viewer:fullscreen .fpdg-slide img { object-fit:contain; }
.fpdg-columns { display:grid; grid-template-columns:2fr 1fr; gap:32px; margin:26px 0 36px; }
.fpdg-detail h2 { font-size:22px; line-height:1.3; color:#0b2a56; }
.fpdg-description h2, .fpdg-photos h2 { border-left:4px solid #d52636; padding-left:12px; }
.fpdg-description .entry-content { overflow-wrap:anywhere; }
.fpdg-info { align-self:start; border:1px solid #dce5f2; box-shadow:0 5px 18px rgba(10,42,85,.08); border-radius:14px; padding:18px; background:#fff; }
.fpdg-info h2 { margin:0 0 12px; font-size:17px; }.fpdg-info dl { display:grid; grid-template-columns:1fr 1fr; gap:8px 12px; margin:0; font-size:14px; }.fpdg-info dt { font-weight:700; }.fpdg-info dd { margin:0; overflow-wrap:anywhere; }
.fpdg-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.fpdg-thumb { padding:0; border:0; border-radius:10px; overflow:hidden; background:#e4ebf4; aspect-ratio:1.6; cursor:pointer; }.fpdg-thumb img { width:100%; height:100%; object-fit:cover; }
.fpdg-more { display:block; margin:20px auto; color:#0b3265; background:#fff; border:1px solid #0b3265; border-radius:10px; padding:10px 18px; cursor:pointer; }
.fpdg-share { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:18px; margin-top:30px; border-radius:14px; background:#eaf0fb; }
.fpdg-share strong { margin-right:auto; }.fpdg-share a,.fpdg-share button { border:0; border-radius:8px; background:#0b3265; color:#fff; padding:8px 12px; font-size:13px; cursor:pointer; }.fpdg-share a:first-of-type { background:#259f45; }.fpdg-share a:nth-of-type(2) { background:#0866cf; }.fpdg-share a:nth-of-type(3) { background:#17191d; }.fpdg-share [role=status] { font-size:13px; }
.fpdg-empty { padding:30px; border-radius:12px; background:#e9eff7; }
@media(max-width:767px) {
  .fpdg-columns { grid-template-columns:1fr; gap:16px; }
  .fpdg-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .fpdg-wrap { width:calc(100% - 32px); }
  .fpdg-share strong { width:100%; }
  .fpdg-detail > .fpdg-hero {
    width:calc(100% - 26px);
    min-height:var(--fpd-banner-h-mobile,210px);
    padding:26px 0;
    margin:15px auto 20px;
    border-radius:var(--fpd-banner-radius,18px);
  }
  .fpdg-detail > .fpdg-hero .fpdg-wrap { width:calc(100% - 46px); }
  .fpdg-detail > .fpdg-hero h1 { font-size:clamp(26px,6.4vw,36px); line-height:1.17; overflow-wrap:anywhere; }
  .fpdg-breadcrumb-area { padding-top:15px; }
  .fpdg-detail > .fpdg-hero-meta--below { gap:7px 14px; font-size:13px; }
}
@media(max-width:767px) { .fpdg-home-rail { display:grid !important; grid-auto-flow:column; grid-auto-columns:calc(100% - 24px); grid-template-columns:none !important; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; padding:2px 2px 12px; scrollbar-width:thin; }.fpdg-home-rail > * { min-width:0; scroll-snap-align:start; }.fpdg-home-controls { display:flex; justify-content:flex-end; gap:8px; }.fpdg-home-controls button { border:1px solid #cad7e7; border-radius:50%; background:#fff; color:#0b3265; width:38px; height:38px; font-size:23px; cursor:pointer; } }
@media(min-width:768px) { .fpdg-home-controls { display:none; } }

/* Beranda: penyamaan visual kartu Galeri dengan kartu Berita.
   Semua selector dibatasi pada galeri agar tema dan kartu lain tidak berubah. */
@media(max-width:767px) {
  .fpd-home-gallery-section .section-heading { margin-bottom:22px; }
  .fpd-home-gallery-section .section-heading h2 { font-size:clamp(30px,8.4vw,38px); line-height:1.16; }
  .fpd-home-gallery-section .section-heading p { font-size:16px; line-height:1.55; }
  .fpdg-home-rail {
    grid-auto-columns:100% !important;
    gap:16px !important;
    padding:0 0 14px !important;
    scroll-padding-inline:0;
    overscroll-behavior-inline:contain;
  }
  .fpdg-home-rail > .fpd-card-galeri {
    border-radius:16px;
    box-shadow:0 8px 24px rgba(14,37,70,.055);
    transform:none !important;
  }
  .fpdg-home-rail .card-image { aspect-ratio:4/3; }
  .fpdg-home-rail .card-body { min-height:0; padding:20px 22px 23px; }
  .fpdg-home-rail .meta { font-size:14px; line-height:1.45; color:#64748b; }
  .fpdg-home-rail h3 { margin:9px 0 8px; font-size:clamp(23px,6.5vw,29px); line-height:1.23; }
  .fpdg-home-rail .card p { margin-top:8px; font-size:16px; line-height:1.55; }
  .fpdg-album-link { display:inline-flex; align-self:flex-start; margin-top:17px; color:#17345e; font-weight:800; font-size:16px; line-height:1.35; }
  .fpdg-home-controls { position:relative; display:grid; grid-template-columns:42px minmax(0,1fr) 42px; align-items:center; margin-top:2px; }
  .fpdg-home-progress { display:flex; align-items:center; justify-content:center; gap:12px; color:#64748b; font-size:14px; font-weight:800; }
  .fpdg-home-dots { display:flex; align-items:center; gap:8px; }
  .fpdg-home-dot { width:10px !important; height:10px !important; min-width:10px; min-height:10px; padding:0 !important; border:0 !important; border-radius:50% !important; background:#c9d4e4 !important; }
  .fpdg-home-dot.is-active { width:39px !important; border-radius:99px !important; background:#df2039 !important; }
  .fpdg-home-controls button { width:42px; height:42px; border-color:#d3deeb; font-size:26px; }
}

/* 1.0.3: single editorial carousel on tablet and desktop; detail viewer untouched. */
@media(min-width:768px){
  .fpdg-home-frame{position:relative;container-type:inline-size}
  .fpdg-home-rail{display:grid!important;grid-auto-flow:column!important;grid-template-columns:none!important;grid-auto-columns:100%!important;gap:16px!important;overflow-x:auto!important;scroll-snap-type:x mandatory;scrollbar-width:none;padding:0!important}
  .fpdg-home-rail::-webkit-scrollbar{display:none}
  .fpdg-home-rail > .fpd-card-galeri{min-width:0;scroll-snap-align:start;border-radius:18px;overflow:hidden}
  .fpdg-home-rail .card-image{aspect-ratio:16/8.2!important;display:block;overflow:hidden}
  .fpdg-home-rail .card-image img{width:100%;height:100%;object-fit:cover}
  .fpdg-home-rail .card-body{min-height:270px;padding:23px 26px 65px}
  .fpdg-home-rail h3{font-size:clamp(19px,2.4vw,25px);line-height:1.3}
  .fpdg-home-rail .card p{font-size:15px;line-height:1.55}
  .fpdg-home-controls{display:block!important;position:absolute;inset:0;z-index:2;pointer-events:none}
  .fpdg-home-controls>button{position:absolute;top:25.625cqw;transform:translateY(-50%);border:0;border-radius:50%;background:#e51a3e;color:#fff;width:46px;height:46px;font-size:29px;pointer-events:auto;cursor:pointer}
  .fpdg-home-controls>button:first-child{left:18px}.fpdg-home-controls>button:last-child{right:18px}
  .fpdg-home-progress{position:absolute;bottom:24px;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:8px;color:#64748b;font-size:13px;font-weight:700;pointer-events:auto}
  .fpdg-home-dots{display:flex;gap:7px;align-items:center}
  .fpdg-home-dot{width:8px;height:8px;border:0;border-radius:50%;background:#cbd4e1;padding:0;cursor:pointer}
  .fpdg-home-dot.is-active{width:25px;border-radius:99px;background:#e51a3e}
  .fpdg-album-link{display:inline-flex;margin-top:15px;color:#17345e;font-weight:800;text-decoration:none}
}

/* 1.0.4: companion album cards, only tablet/desktop; mobile untouched. */
@media(min-width:768px){
.fpdg-related-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0 8px}
.fpdg-related-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:16px;background:#fff;text-decoration:none;color:#102b55;box-shadow:0 5px 18px rgba(12,38,74,.045)}
.fpdg-related-card>img{width:100%;aspect-ratio:16/9;object-fit:cover}
.fpdg-related-body{display:flex;flex-direction:column;gap:8px;padding:17px 19px;flex:1}
.fpdg-related-body h3{font-size:18px;line-height:1.35;margin:0;color:#102b55}
.fpdg-related-body p{font-size:14px;line-height:1.5;color:#64748b;margin:0}
.fpdg-related-link{font-size:14px;font-weight:750;color:#0b3265;margin-top:auto;padding-top:10px}
}
@media(min-width:1200px){.fpdg-related-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.fpdg-related-cards{display:none!important}}
