#category {
  --grid-num: 3;
  --grid-t-num: 3;
  --grid-m-num: 2;
}

#category .item {
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  width: 100%;
}

#category .item .image {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  overflow: hidden;
  flex: 1;
}

#category .item .image .bg {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s;
}

#category .item:hover .image .bg {
  transform: scale(1.05);
}

#category .item .text {
  width: 100%;
  height: 70px;
  background-color: var(--color-dark);
}

#category .item .text h4 {
  text-align: center;
  color: #fff;
  font-weight: 600;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#category .item.new-item .text {
  height: 100%;
}

#category .item.new-item .text h4 {
  font-size: 36px;
}

/* Desktop ( 1024px ~)*/
@media all and (min-width: 1024px) {}

/* Laptop ( 1024px ~ 1360px)*/
@media all and (min-width: 1024px) and (max-width: 1360px) {
  #category .item .text {
    height: 60px;
  }
}

/* Tablet ( 768px ~ 1023px)*/
@media all and (min-width: 768px) and (max-width: 1023px) {
  #category .item .text {
    height: 55px;
  }

  #category .item.new-item .text h4 {
    font-size: 26px;
  }
}

/* Mobile ( ~ 767px)*/
@media all and (max-width: 767px) {
  #category {
    column-gap: 10px;
  }

  #category .item .text {
    height: 35px;
  }

  #category .item .text h4 {
    font-size: 14px;
  }

  #category .item.new-item .text h4 {
    font-size: 20px;
  }
}