/* ==========================================================================
   IDSpeaker v2 — Portfolio (/documentation): daftar kegiatan + detail kegiatan
   Memakai ulang .sp-filter / .sp-search / .sp-chip / .sp-help dari v2-pages.css.
   ========================================================================== */
[x-cloak] { display: none !important; }

/* ---------- Header ---------- */
.ih--pf { padding-bottom: 112px; }
.pf-back { display: flex; width: fit-content; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }
.pf-back svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.pf-back:hover { color: var(--red); }
.pf-back:hover svg { transform: translateX(-4px); }
.pf-badge { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 22px 0 0 0; padding: 8px 18px 8px 14px; border-radius: 999px; background: var(--c, var(--red)); color: #fff; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-weight: 800; font-size: 14.5px; }
.pf-badge svg { width: 17px; height: 17px; }
.ih--pf-show { padding-bottom: 96px; }
.ih--pf-show .ih__title { margin-top: 16px; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.08; max-width: 980px; }
.pf-title { text-wrap: balance; }
.ih--pf-show .ih__sub { max-width: 760px; }

/* ---------- Daftar ---------- */
.pf-list { padding-bottom: 20px; }
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.sp-chip { text-decoration: none; }

/* ---------- Kartu kegiatan ---------- */
.pf-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 2.5px solid var(--line); border-radius: var(--r-lg); padding: 12px; animation: cardIn .65s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); transition: border-color .2s, box-shadow .3s var(--ease), transform .3s var(--ease); }
.pf-card:hover { border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); transform: translate(-3px, -4px); }
.pf-card__media { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--s); display: grid; place-items: center; }
.pf-card__ph { display: grid; place-items: center; color: var(--c); opacity: .55; }
.pf-card__ph svg { width: 68px; height: 68px; stroke-width: 1.7; }
.pf-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pf-card:hover .pf-card__img { transform: scale(1.05); }
.pf-card__cat { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 24px); padding: 6px 13px 6px 10px; border-radius: 999px; background: #fff; border: 2.5px solid var(--ink); font-weight: 800; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-card__cat svg { flex: none; width: 15px; height: 15px; color: var(--c); }
.pf-card__count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border-radius: 999px; background: rgba(26, 10, 12, .82); color: #fff; font-weight: 800; font-size: 13px; }
.pf-card__count svg { width: 15px; height: 15px; }
.pf-card__body { padding: 16px 8px 8px; display: grid; gap: 12px; }
.pf-card__title { font-size: 20px; line-height: 1.22; font-weight: 800; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.44em; }
.pf-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.pf-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.pf-card__meta svg { width: 15px; height: 15px; color: var(--red); flex: none; }

/* ---------- Galeri (detail) ---------- */
.pf-gal-sec { position: relative; z-index: 3; margin-top: -52px; }
.pf-gal { background: #fff; border: var(--stk); border-radius: var(--r-xl); box-shadow: 8px 8px 0 var(--ink); padding: 14px; }
.pf-gal__stage { position: relative; aspect-ratio: 16 / 8.6; border-radius: 28px; overflow: hidden; background: var(--paper); }
.pf-gal__main { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.pf-gal__main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.pf-gal__main:hover img { transform: scale(1.025); }
.pf-gal__zoom { position: absolute; right: 16px; top: 16px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); pointer-events: none; }
.pf-gal__zoom svg { width: 20px; height: 20px; }
.pf-gal__nav { position: absolute; top: 50%; z-index: 4; width: 54px; height: 54px; margin-top: -27px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transition: background .2s, transform .25s var(--ease); }
.pf-gal__nav:hover { background: var(--sun); }
.pf-gal__nav:active { transform: scale(.94); }
.pf-gal__nav svg { width: 22px; height: 22px; }
.pf-gal__nav--prev { left: 18px; }
.pf-gal__nav--next { right: 18px; }
.pf-gal__count { position: absolute; left: 18px; bottom: 18px; padding: 7px 15px; border-radius: 999px; background: rgba(26, 10, 12, .82); color: #fff; font-weight: 700; font-size: 14px; }
.pf-gal__count b { font-weight: 800; }
.pf-gal__thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 16px 4px 4px; scrollbar-width: thin; }
.pf-gal__thumb { flex: none; width: 108px; height: 76px; padding: 0; border-radius: 16px; overflow: hidden; border: 3px solid transparent; opacity: .7; transition: opacity .2s, border-color .2s, transform .2s var(--ease); }
.pf-gal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-gal__thumb:hover { opacity: 1; transform: translateY(-2px); }
.pf-gal__thumb.is-on { opacity: 1; border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.pf-gal-empty { display: grid; place-content: center; justify-items: center; gap: 14px; aspect-ratio: 16 / 6; border-radius: var(--r-xl); border: 3px dashed var(--c); background: var(--s); color: var(--ink); font-weight: 800; font-size: 17px; }
.pf-gal-empty__ico { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 24px; background: #fff; border: var(--stk); color: var(--c); }
.pf-gal-empty__ico svg { width: 34px; height: 34px; }

/* lightbox */
.pf-lb { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: 56px 24px 64px; background: rgba(26, 10, 12, .93); }
.pf-lb__img { max-width: min(1280px, 100%); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 18px; box-shadow: 0 24px 80px rgba(0, 0, 0, .5); }
.pf-lb__x { position: absolute; right: 22px; top: 18px; z-index: 5; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); border: 3px solid var(--ink); transition: background .2s, transform .25s var(--ease); }
.pf-lb__x:hover { background: var(--sun); transform: rotate(90deg); }
.pf-lb__x svg { width: 20px; height: 20px; }
.pf-lb__cap { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; color: rgba(255, 255, 255, .85); font-weight: 700; font-size: 14.5px; padding: 0 80px; }
.pf-lb .pf-gal__nav { position: fixed; }
body.pf-lb-open { overflow: hidden; }

/* ---------- Isi + info ---------- */
.pf-detail { padding: 56px 0 24px; }
.pf-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.pf-detail__side { position: sticky; top: 104px; display: grid; gap: 22px; }
.pf-info { background: #fff; border: var(--stk); border-radius: var(--r-lg); box-shadow: 5px 5px 0 var(--ink); padding: 24px 26px 18px; }
.pf-info__title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.pf-info dl > div { display: grid; gap: 4px; padding: 14px 0; border-top: 2.5px dashed var(--line); }
.pf-info dl > div:first-child { border-top: 0; }
.pf-info dt { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.pf-info dt svg { width: 16px; height: 16px; color: var(--red); }
.pf-info dd { margin: 0; font-weight: 800; font-size: 16.5px; line-height: 1.35; }
.pf-side-cta { display: grid; justify-items: start; gap: 12px; padding: 24px 26px; border-radius: var(--r-lg); background: var(--sun); border: var(--stk); box-shadow: 5px 5px 0 var(--ink); }
.pf-side-cta strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.22; }
.pf-side-cta .btn--line { background: #fff; }
.pf-side-cta .btn--line:hover { background: var(--ink); }

/* ---------- Kegiatan lainnya ---------- */
.pf-related { padding: 56px 0 24px; }
.pf-related__title { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 26px; }
.page-portfolio-show main > section:last-of-type { margin-bottom: 104px; }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-detail__grid { grid-template-columns: 1fr; gap: 32px; }
  .pf-detail__side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .ih--pf .ih__deco { display: none; }
}
@media (max-width: 760px) {
  .pf-detail__side { grid-template-columns: 1fr; }
  .pf-gal { padding: 10px; border-radius: 30px; box-shadow: 5px 5px 0 var(--ink); }
  .pf-gal__stage { aspect-ratio: 4 / 3; border-radius: 22px; }
  .pf-gal__nav { width: 44px; height: 44px; margin-top: -22px; }
  .pf-gal__nav--prev { left: 10px; } .pf-gal__nav--next { right: 10px; }
  .pf-gal__thumb { width: 88px; height: 64px; }
  .pf-lb { padding: 64px 12px 72px; }
  .pf-lb__cap { padding: 0 16px; font-size: 13px; }
  .pf-prose { font-size: 17px; }
}
@media (max-width: 640px) {
  .pf-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .pf-card, .pf-card__img, .pf-gal__main img { animation: none !important; transition: none !important; } }
