/* ============================================================
   presentation.css — slideshow viewer
   ============================================================ */

body.pres{background:var(--navy-900)}

.pres-wrap{max-width:1280px; margin:0 auto; padding:28px 24px 60px}

.pres-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:18px; flex-wrap:wrap; margin-bottom:22px;
}
.pres-head .eyebrow{color:#5EEAD4; margin:0 0 8px}
.pres-head h1{
  font-family:var(--serif); color:#fff; margin:0;
  font-size:clamp(22px,3.2vw,30px); line-height:1.25;
}
.pres-head p{margin:7px 0 0; color:var(--slate-400); font-size:14.5px}
.pres-head-actions{display:flex; gap:10px; flex-wrap:wrap}

/* ---------- Panggung ---------- */
.stage{
  position:relative;
  background:#000;
  border:1px solid rgba(255,255,255,.1);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:0 26px 60px rgba(0,0,0,.45);
  aspect-ratio:16/9;
}
/* Fallback rasio untuk peramban tanpa aspect-ratio */
@supports not (aspect-ratio:16/9){
  .stage{height:0; padding-bottom:56.25%}
  .stage > .pic{position:absolute; top:0; left:0; right:0; bottom:0}
}
/* <picture> bersifat inline; jadikan blok agar benar-benar mengisi panggung. */
.stage > .pic{display:block; width:100%; height:100%}
.slide-img{
  width:100%; height:100%; object-fit:contain; display:block;
  background:#0B1620;
}

.stage-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  width:46px; height:46px; border-radius:50%;
  background:rgba(15,27,39,.62); border:1px solid rgba(255,255,255,.2);
  color:#fff; cursor:pointer; z-index:5;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s ease, opacity .15s ease;
}
.stage-btn:hover{background:rgba(20,184,166,.9)}
.stage-btn:disabled{opacity:.28; cursor:default}
.stage-btn:disabled:hover{background:rgba(15,27,39,.62)}
.stage-btn svg{width:22px; height:22px; stroke-width:2.2}
.stage-prev{left:14px}
.stage-next{right:14px}

.stage-counter{
  position:absolute; right:14px; bottom:14px; z-index:5;
  background:rgba(15,27,39,.72); border:1px solid rgba(255,255,255,.16);
  color:#E2E8F0; font-size:13px; font-weight:600;
  padding:6px 13px; border-radius:999px;
  font-variant-numeric:tabular-nums;
}

/* ---------- Bar kontrol ---------- */
.pres-bar{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  margin-top:18px; padding:14px 18px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  border-radius:var(--radius);
}
.pres-bar .title{
  color:#fff; font-size:14.5px; font-weight:600;
  min-width:0; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.pres-bar .grp{display:flex; gap:9px; flex-wrap:wrap}
.ctrl{
  display:inline-flex; align-items:center; gap:7px;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14);
  color:#E2E8F0; font-family:var(--sans); font-size:13.5px; font-weight:600;
  padding:8px 14px; border-radius:9px; cursor:pointer; text-decoration:none;
  transition:all .15s ease;
}
.ctrl:hover{background:rgba(20,184,166,.24); border-color:rgba(20,184,166,.5); color:#fff; text-decoration:none}
.ctrl svg{width:16px; height:16px; stroke-width:2}
.ctrl.primary{background:var(--teal-600); border-color:var(--teal-600); color:#fff}
.ctrl.primary:hover{background:var(--teal-500)}

/* ---------- Progress ---------- */
.progress{height:4px; background:rgba(255,255,255,.1); border-radius:999px; margin-top:14px; overflow:hidden}
.progress span{display:block; height:100%; background:var(--teal-500); width:0; transition:width .25s ease}

/* ---------- Thumbnail ---------- */
.thumbs-head{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  margin:34px 0 14px; color:var(--slate-400); font-size:12px;
  letter-spacing:.14em; text-transform:uppercase; font-weight:700;
}
.thumbs{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(148px,1fr)); gap:12px;
}
.thumb{
  position:relative; padding:0; border:2px solid transparent; border-radius:10px;
  overflow:hidden; cursor:pointer; background:#0B1620; line-height:0;
  transition:border-color .15s ease, transform .15s ease;
}
.thumb:hover{transform:translateY(-2px); border-color:rgba(20,184,166,.6)}
.thumb.active{border-color:var(--teal-500)}
.thumb picture{display:block}
.thumb img{width:100%; height:auto; display:block}
.thumb b{
  position:absolute; left:6px; bottom:6px;
  background:rgba(15,27,39,.8); color:#E2E8F0;
  font-size:11px; font-weight:700; padding:2px 7px; border-radius:6px;
  font-family:var(--sans); line-height:1.5;
}

.pres-note{
  margin-top:34px; padding:18px 22px;
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.09);
  border-radius:var(--radius); color:var(--slate-400); font-size:14px; line-height:1.7;
}
.pres-note strong{color:#CBD5E1}

/* ---------- Mode layar penuh ---------- */
.stage:fullscreen,
.stage:-webkit-full-screen{
  border-radius:0; border:none;
  aspect-ratio:auto; padding-bottom:0;
  width:100vw; height:100vh; background:#000;
}
.stage:fullscreen .pic,
.stage:-webkit-full-screen .pic{position:static; width:100%; height:100%}
.stage:fullscreen .slide-img,
.stage:-webkit-full-screen .slide-img{background:#000}

@media (max-width:640px){
  .pres-wrap{padding:20px 16px 46px}
  .stage-btn{width:38px; height:38px}
  .stage-prev{left:8px} .stage-next{right:8px}
  .pres-bar .title{flex-basis:100%}
  .thumbs{grid-template-columns:repeat(auto-fill,minmax(108px,1fr)); gap:9px}
}
