/* ===== FILTER BUTTON ===== */
.filter-btn{
  border: none;
  padding: 8px 18px;
  margin: 5px;
  background: #eee;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover{
  background: #000;
  color: #fff;
}

/* ===== CARD ===== */
.gallery-card{
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

/* ===== IMAGE ===== */
.gallery-img{
  height: 240px;
  position: relative;
  overflow: hidden;
}

.gallery-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

/* Hover zoom */
.gallery-card:hover img{
  transform: scale(1.08);
}

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

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

/* Eye icon */
.gallery-eye{
  font-size: 22px;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
}

/* ===== POPUP FIX ===== */
.popup{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.9);

  z-index: 999999; /* 🔥 above header */
}

/* Fixed size image */
.popup img{
  max-width: 80%;
  max-height: 80vh;
  border-radius: 10px;
  animation: zoomIn 0.3s ease;
}

/* Close button FIX */
.close{
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 1000000;
}

/* Animation */
@keyframes zoomIn{
  from{ transform: scale(0.8); opacity:0;}
  to{ transform: scale(1); opacity:1;}
}