/* SECTION */
.gallery-section{
  padding:80px 20px;
  background:#fff;
}

.gallery-title{
  text-align:center;
  font-size:32px;
  margin-bottom:10px;
}

.gallery-intro{
  text-align:center;
  max-width:700px;
  margin:0 auto 40px auto;
  color:#555;
  line-height:1.7;
}

/* FILTER */
.gallery-filter{
  text-align:center;
  margin-bottom:40px;
}

.filter-btn{
  background:none;
  border:none;
  margin:0 10px;
  font-size:14px;
  cursor:pointer;
  padding:6px 12px;
  border-radius:4px;
}

.filter-btn.active{
  background:#f78702;
  color:white;
}

/* GRID SYSTEM */
.gallery-grid-advanced{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:15px;
  grid-auto-rows: 250px; /* IMPORTANT */
}

/* ITEM */
.gallery-item{
  position:relative;
  overflow:hidden;
  border-radius:10px;
  cursor:pointer;
}

/* IMAGE */
.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:0.4s;
}

/* VARIATION */
.gallery-item.tall{
  grid-row:span 2;
}

.gallery-item.wide{
  grid-column:span 2;
}

/* HOVER */
.gallery-item:hover img{
  transform:scale(1.05);
}

/* OVERLAY */
.gallery-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.4);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transition:0.3s;
}

.gallery-item:hover .gallery-overlay{
  opacity:1;
}

/* LABEL */
.gallery-label{
  position:absolute;
  top:10px;
  left:10px;
  background:#3E2910;
  color:#fff;
  padding:5px 10px;
  font-size:12px;
  border-radius:20px;
}

/* FILTER */
.gallery-item.hide{
  display:none !important;
}

/* RESPONSIVE */
@media(max-width:900px){
  .gallery-grid-advanced{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:500px){
  .gallery-grid-advanced{
    grid-template-columns:1fr;
  }
}

.gallery-cta{
  text-align:center;
  margin:50px 0;
}

.gallery-cta .hero-btn{
  display:block;
  width:max-content;
  margin:0 auto;
}

.cta-note{
  font-size:13px;
  color:#666;
}

.gallery-mid-cta{
  text-align:center;
  margin:40px 0;
}

.gallery-highlight{
  text-align:center;
  margin-bottom:30px;
  font-size:15px;
  color:#444;
}