/* GALERIA JVCell */
.jv-gallery-section{
  padding:100px 0;
  background:#fff;
  overflow:hidden;
}

.jv-gallery-head{
  text-align:center;
  margin-bottom:40px;
}

.jv-gallery-eyebrow{
  font-size:13px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#16a34a;
  margin-bottom:12px;
}

.jv-gallery-title{
  font-size:36px;
  line-height:1.2;
  color:#111;
  margin-bottom:12px;
}

.jv-gallery-subtitle{
  font-size:16px;
  line-height:1.6;
  color:#666;
  max-width:680px;
  margin:0 auto;
}

.jv-gallery-slider{
  position:relative;
  display:flex;
  align-items:center;
  gap:16px;
}

.jv-gallery-track-wrap{
  overflow:hidden;
  width:100%;
  padding: 10px 0;
}

.jv-gallery-track{
  display: flex;
  gap: 24px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.jv-gallery-card{
  flex: 0 0 calc((100% - 48px) / 3); /* 2 gaps = 48px */
  margin-right:0px;
  background:#fff;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 0 10px rgba(0,0,0,.08);
  cursor:pointer;
  transition:transform .3s ease, box-shadow .3s ease;
}

.jv-gallery-card:hover{
  transform:translateY(-6px);
  box-shadow:0 0 20px rgba(0,0,0,.12);
}

.jv-gallery-media{
  position:relative;
  aspect-ratio: 4 / 3;
  background:#eaeaea;
  overflow:hidden;
}

.jv-gallery-media img,
.jv-gallery-media video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.jv-gallery-badge{
  position:absolute;
  top:14px;
  left:14px;
  background:rgba(17,17,17,.82);
  color:#fff;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:7px 10px;
  border-radius:999px;
}

.jv-gallery-zoom,
.jv-gallery-play{
  position:absolute;
  right:14px;
  bottom:14px;
  background:rgba(255,255,255,.92);
  color:#111;
  font-size:12px;
  font-weight:700;
  padding:8px 12px;
  border-radius:999px;
}

.jv-gallery-play{
  font-size:18px;
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}

.jv-gallery-content{
  padding:20px 20px 22px;
}

.jv-gallery-content h3{
  font-size:18px;
  line-height:1.3;
  color:#111;
  margin-bottom:8px;
}

.jv-gallery-content p{
  font-size:15px;
  line-height:1.6;
  color:#666;
  margin:0;
}

.jv-gallery-arrow{
  width:48px;
  height:48px;
  border:none;
  border-radius:50%;
  background:#fff;
  color:#111;
  box-shadow:0 8px 20px rgba(0,0,0,.12);
  cursor:pointer;
  font-size:22px;
  flex-shrink:0;
  transition:transform .2s ease, background .2s ease;
}

.jv-gallery-arrow:hover{
  transform:scale(1.05);
}

.jv-gallery-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-top:28px;
}

.jv-gallery-dots button{
  width:10px;
  height:10px;
  border:none;
  border-radius:50%;
  background:#cfcfcf;
  cursor:pointer;
  transition:all .25s ease;
  padding:0;
}

.jv-gallery-dots button.active{
  width:28px;
  border-radius:999px;
  background:#16a34a;
}

/* MODAL */
.jv-gallery-modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  opacity:0;
  visibility:hidden;
  transition:.3s ease;
  z-index:9999;
}

.jv-gallery-modal.active{
  opacity:1;
  visibility:visible;
}

.jv-gallery-modal-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.72);
}

.jv-gallery-modal-box{
  position:relative;
  width:min(980px, 100%);
  max-height:90vh;
  background:#111;
  border-radius:20px;
  overflow:hidden;
  z-index:2;
  box-shadow:0 18px 60px rgba(0,0,0,.35);
}

.jv-gallery-modal-body{
  width:100%;
  max-height:90vh;
}

.jv-gallery-modal-body img,
.jv-gallery-modal-body video{
  width:100%;
  max-height:90vh;
  display:block;
  object-fit:contain;
  background:#000;
}

.jv-gallery-modal-close{
  position:absolute;
  top:12px;
  right:12px;
  width:42px;
  height:42px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.15);
  color:#fff;
  font-size:26px;
  cursor:pointer;
  z-index:3;
}

/* TABLET */
@media (max-width: 991px){
  .jv-gallery-title{
    font-size:30px;
  }

  .jv-gallery-card{
    flex:0 0 calc(50% - 12px);
    margin-right:0px;
  }
}

/* MOBILE */
@media (max-width: 767px){
  .jv-gallery-section{
    padding:80px 0;
  }

  .jv-gallery-title{
    font-size:26px;
  }

  .jv-gallery-subtitle{
    font-size:15px;
  }

  .jv-gallery-slider{
    gap:10px;
  }

  .jv-gallery-card{
    flex:0 0 100%;
    margin-right:0px;
  }

  .jv-gallery-arrow{
    width:42px;
    height:42px;
    font-size:20px;
  }

  .jv-gallery-content{
    padding:18px;
  }
}