/* =========================
   HERO PREMIUM
========================= */
.gal-hero{
  height: 70vh;
  background: url("../images/norbertine-matanda-communaute (14).jpg") center/cover no-repeat;
  position: relative;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  color:#fff;
  overflow:hidden;
}

.gal-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    135deg,
    rgba(0, 51, 153, 0.85),
    rgba(0,0,0,0.65)
  );
}

.gal-content{
  position:relative;
  z-index:2;
  animation: fadeUp 1s ease;
}

.gal-content h1{
  font-size:70px;
  font-weight:800;
  letter-spacing:2px;
  text-transform:uppercase;
}

.gal-content p{
  font-size:18px;
  margin-top:15px;
  opacity:0.9;
}

@keyframes fadeUp{
  from{opacity:0; transform:translateY(30px);}
  to{opacity:1; transform:translateY(0);}
}

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

/* GALLERY */
section{
  will-change: transform, opacity;
}

.section-title{
  text-align:center;
  margin-bottom:60px;
}

.section-title h2{
  font-size:44px;
  font-weight:800;
  background: linear-gradient(90deg,#1100ff,#c1d2ff);
  background-clip:text;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.section-title p{
  color:#666;
  margin-top:10px;
}

.gallery{
  padding:100px 8%;
  background:#f5f7fb;
}

.gal-item{
  will-change: transform;
  transition: all 0.4s cubic-bezier(.25,.8,.25,1);
}

.gallery{
  padding:100px 8%;
  background:#f5f7fb;
}

/* FILTERS */

.gallery-filters{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:15px;
  margin-bottom:50px;
}

.filter{
  padding:14px 28px;
  border:none;
  border-radius:50px;
  background:#fff;
  color:#003399;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
  box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.filter.active,
.filter:hover{
  background:#003399;
  color:#fff;
  transform:translateY(-3px);
}

/* MASONRY GRID */

.gallery-container{
  columns:3 250px;
  column-gap:20px;
}

.gal-item{
  position:relative;
  overflow:hidden;
  border-radius:20px;
  margin-bottom:20px;
  cursor:pointer;
  break-inside:avoid;
  transition:0.4s;
}

.gal-item.hide{
  display:none;
}

.gal-item img{
  width:100%;
  display:block;
  border-radius:20px;
  transition:0.5s;
}

/* HOVER */

.gal-item::before{
  content:'';
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.2);
  opacity:0;
  transition:0.4s;
  z-index:1;
}

.gal-item::after{
  content:'\f00e';
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  color:#fff;
  font-size:35px;
  opacity:0;
  z-index:2;
  transition:0.4s;
}

.gal-item:hover::before,
.gal-item:hover::after{
  opacity:1;
}

.gal-item:hover img{
  transform:scale(1.1);
}

.gallery-container{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:25px;
}

.gal-item{
  overflow:hidden;
  border-radius:20px;
  transition:0.4s ease;
}

.gal-item img{
  width:100%;
  display:block;
  transition:0.5s;
}

.gal-item:hover img{
  transform:scale(1.08);
}


/* =========================================
   RESPONSIVE PREMIUM - GALERIE
========================================= */

/* GRANDES TABLETTES */

@media(max-width:1200px){

  .gal-content h1{
    font-size:58px;
  }

}

/* TABLETTES */

@media(max-width:991px){

  /* HERO */

  .gal-hero{
    height:60vh;
    padding:0 5%;
  }

  .gal-content h1{
    font-size:50px;
    line-height:1.2;
  }

  .gal-content p{
    font-size:17px;
  }

}

/* MOBILE */

@media(max-width:768px){

  /* HERO */

  .gal-hero{
    height:auto;
    min-height:55vh;
    padding:120px 5% 80px;
  }

  .gal-content{
    width:100%;
  }

  .gal-content h1{
    font-size:38px;
    line-height:1.3;
    letter-spacing:1px;
  }

  .gal-content p{
    font-size:15px;
    line-height:1.7;
    margin-top:12px;
  }

  /* GALLERY GRID */

  .gallery-container{
    grid-template-columns:1fr;
    gap:20px;
  }

  .gallery-item img,
  .gal-item img{
    height:260px;
    object-fit:cover;
  }

  /* FILTERS */

  .gallery-filters,
  .filter-container{
    padding:0 5%;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
  }

  .filter{
    padding:10px 18px;
    font-size:14px;
  }

  /* LIGHTBOX */

  .lightbox-img{
    width:95%;
    max-height:80vh;
    object-fit:contain;
  }

  .lightbox-prev,
  .lightbox-next{
    width:45px;
    height:45px;
    font-size:18px;
  }

  .close{
    top:20px;
    right:20px;
    font-size:35px;
  }

}

/* PETITS MOBILES */

@media(max-width:480px){

  .gal-hero{
    padding-top:110px;
  }

  .gal-content h1{
    font-size:30px;
  }

  .gal-content p{
    font-size:14px;
  }

  /* FILTER BUTTONS */

  .filter{
    width:100%;
    max-width:220px;
    text-align:center;
  }

  /* GALLERY */

  .gallery-item img,
  .gal-item img{
    height:220px;
  }

  /* LIGHTBOX */

  .lightbox-prev,
  .lightbox-next{
    width:40px;
    height:40px;
    font-size:16px;
  }

  .close{
    font-size:30px;
  }

}

/* ULTRA PETITS ECRANS */

@media(max-width:360px){

  .gal-content h1{
    font-size:26px;
  }

  .gal-content p{
    font-size:13px;
  }

  .gallery-item img,
  .gal-item img{
    height:190px;
  }

}
