/* ======================================================
 BAT PROJECTS V2 – CINEMATIC GRID
 Scope: #bat-portfolio only
====================================================== */

#bat-portfolio{
  --bat-green:#0f8c52;
  --bat-dark:#071b12;
  --bat-soft:#f5fbf8;
  --bat-line:rgba(0,0,0,.08);
}

/* =====================
 SECTION
===================== */

#bat-portfolio .bat-projects-v2{
  padding:90px 0;
  background:linear-gradient(180deg,#f8fbff,#ffffff);
}

#bat-portfolio .bat-project-v2{
  max-width:1280px;
  margin:0 auto 120px;
  padding:0 24px;
}

/* =====================
 GRID
===================== */

#bat-portfolio .bat-project-grid{
  display:grid;
  grid-template-columns:420px 1fr;
  gap:56px;
  align-items:start;
}

@media(max-width:1024px){
  #bat-portfolio .bat-project-grid{
    grid-template-columns:1fr;
  }
}

/* =====================
 META
===================== */

#bat-portfolio .bat-project-meta{
  background:#fff;
  border-radius:26px;
  padding:34px 28px;
  border:1px solid var(--bat-line);
  box-shadow:0 30px 80px rgba(0,0,0,.06);
}

#bat-portfolio .bat-project-meta.sticky{
  position:sticky;
  top:120px;
}

#bat-portfolio .bat-project-title{
  margin:0 0 22px;
  font-size:28px;
  line-height:1.25;
  font-weight:800;
  color:#0c5133;
}

/* meta rows */

#bat-portfolio .bat-meta{
  display:grid;
  gap:14px;
}

#bat-portfolio .bat-meta div{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding-bottom:10px;
  border-bottom:1px dashed rgba(0,0,0,.08);
}

#bat-portfolio .bat-meta span{
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#6b7a7a;
}

#bat-portfolio .bat-meta strong{
  font-size:14.5px;
  color:#071b12;
}

/* =====================
 GALLERY
===================== */

#bat-portfolio .bat-project-gallery{
  position:relative;
}

#bat-portfolio .bat-gallery-stage{
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  border-radius:28px;
  box-shadow:0 30px 90px rgba(0,0,0,.18);
}

#bat-portfolio .bat-gallery-stage img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transform:scale(1.04);
  transition:opacity .45s ease, transform .7s ease;
  cursor:zoom-in;
}

#bat-portfolio .bat-gallery-stage img.active{
  opacity:1;
  transform:scale(1);
}

/* thumbs */

#bat-portfolio .bat-gallery-thumbs{
  display:flex;
  gap:14px;
  margin-top:16px;
}

#bat-portfolio .bat-gallery-thumbs img{
  width:90px;
  height:60px;
  object-fit:cover;
  border-radius:10px;
  opacity:.6;
  cursor:pointer;
  border:2px solid transparent;
  transition:.25s;
}

/* ===============================
 FIX THUMB STATE – BAT PROJECT V2
=============================== */

#bat-portfolio .bat-gallery-thumbs{
  display:flex;
  gap:14px;
  margin-top:16px;
  flex-wrap:wrap;
}

#bat-portfolio .bat-thumb{
  background:none;
  border:none;
  padding:0;
  cursor:pointer;
}

#bat-portfolio .bat-thumb img{
  width:90px;
  height:60px;
  object-fit:cover;
  border-radius:10px;
  opacity:.6;
  border:2px solid transparent;
  transition:.25s;
}

#bat-portfolio .bat-gallery-thumbs img.active{
  opacity:1;
  border-color:var(--bat-green);
}

/* HOVER */

#bat-portfolio .bat-thumb:hover img{
  opacity:1;
}


/* =====================
 MODAL
===================== */

#bat-portfolio .bat-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.85);
}

#bat-portfolio .bat-modal[hidden]{
  display:none;
}

#bat-portfolio .bat-modal-box{
  max-width:90vw;
  max-height:90vh;
}

#bat-portfolio .bat-modal-img{
  width:100%;
  max-height:90vh;
  object-fit:contain;
  border-radius:20px;
}

#bat-portfolio .bat-modal-close{
  position:absolute;
  top:24px;
  right:28px;
  font-size:40px;
  background:none;
  border:none;
  color:#fff;
  cursor:pointer;
}

/* =====================
 MOBILE
===================== */

@media(max-width:768px){

  #bat-portfolio .bat-project-v2{
    margin-bottom:80px;
  }

  #bat-portfolio .bat-project-meta.sticky{
    position:relative;
    top:auto;
  }

  #bat-portfolio .bat-gallery-thumbs{
    overflow-x:auto;
  }

}
/* ============================================
 BAT PROJECT HERO V2 – IMAGE BACKGROUND
============================================ */

#bat-project-hero-v2{
  position:relative;
}

#bat-project-hero-v2 .bat-hero-corporate{
  position:relative;
  min-height:78vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:#071f14;
}

/* background */

#bat-project-hero-v2 .bat-hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
}

#bat-project-hero-v2 .bat-hero-bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:brightness(.55) saturate(1.1);
}

/* overlay */

#bat-project-hero-v2 .bat-hero-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(180deg,rgba(0,0,0,.6),rgba(0,0,0,.4)),
    linear-gradient(90deg,rgba(5,40,25,.9) 0%, rgba(5,40,25,.55) 55%, rgba(5,40,25,.2) 100%);
}

/* container */

#bat-project-hero-v2 .bat-hero-container{
  position:relative;
  z-index:2;
  max-width:1240px;
  margin:0 auto;
  padding:140px 24px 120px;
  color:#ffffff;
}

/* eyebrow */

#bat-project-hero-v2 .bat-hero-eyebrow{
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  font-weight:700;
  color:#8ff0c4;
  margin-bottom:18px;
}

/* title */

#bat-project-hero-v2 .bat-hero-title{
  font-size:40px;
  line-height:1.5;
  font-weight:900;
  margin:0 0 18px;
}

#bat-project-hero-v2 .bat-hero-title span{
  display:block;
  font-weight:700;
  color:#c8ffe4;
}

/* description */

#bat-project-hero-v2 .bat-hero-desc{
  max-width:760px;
  font-size:17px;
  line-height:1.75;
  color:rgba(255,255,255,.92);
  margin-bottom:36px;
}

/* metrics */

#bat-project-hero-v2 .bat-hero-metrics{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
  max-width:820px;
  margin-bottom:40px;
}

#bat-project-hero-v2 .bat-hero-metrics strong{
  font-size:30px;
  display:block;
}

#bat-project-hero-v2 .bat-hero-metrics span{
  font-size:13px;
  opacity:.9;
}

/* actions */

#bat-project-hero-v2 .bat-hero-actions{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}

#bat-project-hero-v2 .bat-btn-primary{
  background:linear-gradient(135deg,#21c26c,#0f8c52);
  color:#ffffff;
  padding:15px 28px;
  border-radius:999px;
  font-weight:700;
  text-decoration:none;
}

#bat-project-hero-v2 .bat-btn-outline{
  border:1px solid rgba(255,255,255,.45);
  padding:15px 28px;
  border-radius:999px;
  color:#ffffff;
  text-decoration:none;
}

/* mobile */

@media(max-width:768px){

  #bat-project-hero-v2 .bat-hero-title{
    font-size:38px;
  }

  #bat-project-hero-v2 .bat-hero-metrics{
    grid-template-columns:repeat(2,1fr);
  }

}
/* ===============================
 FIX THUMB GALLERY BAT PROJECT
=============================== */

.bat-project-grid,
.bat-gallery,
.bat-gallery-main{
  overflow: visible !important;
}

/* thumbs */

.bat-gallery-thumbs{
  display:flex !important;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}

.bat-gallery-thumbs img{
  width:68px;
  height:52px;
  object-fit:cover;
  border-radius:8px;
  border:2px solid transparent;
  cursor:pointer;
  opacity:.7;
  transition:.2s;
}

.bat-thumb.is-active img{
  border-color:#0f8c52;
  opacity:1;
}