/* Gallery Filter Buttons */
.filter-btn {
    background: #2F3191;
    color: #fff;
    border-radius: 50px;
    margin: 5px;
    padding: 6px 20px;
    font-weight: 600;
    transition: 0.3s;
}
.filter-btn.active,
.filter-btn:hover {
    background: #EC1D25;
}

/* Gallery Card */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.gallery-card img {
    width: 100%;
    border-radius: 10px;
    transition: 0.4s;
}
.gallery-card:hover img {
    transform: scale(1.08);
    filter: brightness(70%);
}

/* Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
    border-radius: 10px;
}
.gallery-card:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay i {
    color: white;
    font-size: 28px;
}


/* INDEX GALLERY FIX */
.gallery-grid {
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
  border-radius: 6px;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item i {
  color: #fff;
  font-size: 28px;
}

/* Mobile fix */
@media (max-width:768px){
  .gallery-item img {
    height: 160px;
  }
}

