

    h2 {
      margin-top: 40px;
      color: #444;
      border-left: 5px solid #2196f3;
      padding-left: 10px;
    }

    .grid {
      display: flex;
      
      flex-wrap: wrap;
      gap: 15px;
      justify-content: center;
    }

    .item {
      background: white;
      border-radius: 10px;
      overflow: hidden;
      width: calc(50% - 15px);
      position: relative;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      transition: transform 0.2s ease-in-out;
    }

    .item:hover {
      transform: scale(1.02);
    }
    

    @media (min-width: 768px) {
      .item {
        width: calc(25% - 15px);
      }
    }

    .item img {
      width: 100%;
      display: block;
    }

    .heart {
      position: absolute;
      top: 10px;
      right: 7px;
      border-radius: 50%;
      padding: 6px 8px;
      font-size: 40px;
      
      cursor: pointer;
      transition: color 0.3s ease;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .heart.fav {
      color: crimson;
    }

.name-tooltip {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;

  /* force single line */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}


    .item:hover .name-tooltip {
  opacity: 1;
}


    /* Optional checkerboard background for PNGs */
    #eepngGrid .item {
      background: 
        linear-gradient(45deg, #ccc 25%, transparent 25%), 
        linear-gradient(-45deg, #ccc 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #ccc 75%), 
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
      background-size: 20px 20px;
      background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }
     .pngGrid .item {
      background: 
        linear-gradient(45deg, #ccc 25%, transparent 25%), 
        linear-gradient(-45deg, #ccc 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #ccc 75%), 
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
      background-size: 20px 20px;
      background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }
    
    
    .search-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 20px auto;
}

.search-container .search-icon {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 16px;
}

#searchInput {
  width: 100%;
  padding: 10px 10px 10px 35px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 14px;
  transition: border 0.3s ease;
}

#searchInput:focus {
  border-color: #007BFF;
  outline: none;
}



.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  justify-content: space-between;

  }

.category-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  justify-content: space-between;
}

.category-label {
  background-color: #fff;
  color: white;
  padding: 6px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  text-align: center;
  min-width: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.category-label:hover {
  transform: translateY(-4px);
}

.items {
  width: 100%;
  position: relative;
}

.items img {
  width: 100%;
  height: 190px;
  border-radius: 10px;
}

.image-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 5px 10px;
  color: white;
  font-size: 25px;
  border-radius: 5px;
}

.black-text {
  color: black !important;
  font-size :30px;
}


.count {
  position: absolute;
  top: -2px;
  right: -1px;
  width: 30%;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  color: white;
  font-size: 20px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .category-label {
    width: 100%;
  }
}

@media (min-width: 769px) {
  .category-label {
    width: calc(50% - 8px);
  }
}
.png-background {
  background: 
    linear-gradient(45deg, #ccc 25%, transparent 25%), 
    linear-gradient(-45deg, #ccc 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #ccc 75%), 
    linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}
