.gallery-by-tattoo-styles {
  background-image: url(../images/gallery-by-body-banner.webp);
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: left;
  color: #fff;
}

.gallery-section {
  padding: 40px 0;
}

.filter-btn {
  margin: 5px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;

  background-color: #d7d1d1a3;
    padding: 9px 35px;
    height: auto;
    line-height: normal;
    border: none;
    color: #000;
    font-size: 15px;
    border-radius: 5px;
    text-transform: uppercase;
}

.filter-btn:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-color);
  z-index: -2;
}

.filter-btn:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--primary-color);
  transition: all 0.3s;
  z-index: -1;
}

.filter-btn:hover {
  color: white;
}

.filter-btn:hover:before {
  width: 100%;
}

.filter-btn.active {
  background-color: black;
  color: white;
  border-color: var(--accent-color);
}

/* Masonry Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 10px;
  gap: 10px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  grid-row-end: span 18;
  background-color: var(--card-bg);
}

.gallery-item.large {
  grid-row-end: span 15;
}

.gallery-item.small {
  grid-row-end: span 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

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

.gallery-item:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item .category-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-color);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
}


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

  .gallery-item {
    transition: all 0.3s ease;
  }

  .zoom-in {
    animation: zoomIn 0.7s ease;
  }


@media screen and (max-width: 768px) {
  .gallery-body-section {
    height: 100vh;
    padding: 10px;
  }
}
@media (max-width: 430px) {
  .gallery-by-tattoo-styles {
    height: 60vh;
    padding: 10px;
  }
  .gallery-section {
    padding: 20px 0;
  }
  .filter-btn {
    font-size: 0.8rem;
    margin: 3px;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 5px;
  }
  
}