.wallpaper-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
}

.wallpaper-card {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  /* background: #f9f9f9; */
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.wallpaper-image img {
  width: 100%;
  height: 100%;
}

.wallpaper-image.wallpaper-image--more a span {
  color: #f1f1f1;
}

.wallpaper-category {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--transparent-black);
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
}

.wallpaper-actions {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  position: absolute;
  gap: 10px;
  top: 0;
  right: 0;
  flex-direction: column-reverse;
}

.download-btn,
.share-btn {
  background: black;
  color: #fff;
  border: none;
  width: auto;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
}

.download-btn:hover,
.share-btn:hover {
  background: #242328;
}

.wallpaper-actions .share-btn img {
  width: 24px;
  height: 24px;
}

.wallpaper-actions .download-btn img {
  width: 24px;
  height: 24px;
}

.wallpaper-image {
  position: relative;
  overflow: hidden;
  height: 197px;
}

.wallpaper-more-content {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.3s;
}

.wallpaper-more-content img.arrow-icon {
  width: 19px;
  height: 10px;
  display: inline-block !important;
  margin-top: 2px;
}

.wallpaper-more-content span {
  font-size: 18px;
}

.wallpaper-more-content img {
  width: 24px;
  height: 24px;
}

.wallpaper-more-content:hover {
  background: rgba(0, 0, 0, 0.95);
}

.timed-gallery-simple-title h4.block-title.td-block-title.wallpaper {
  display: block;
}

@media (max-width: 1020px) {
  .wallpaper-grid {
    flex-direction: column;
  }

  .wallpaper-card[data-index="2"] {
    height: 100%;
    flex: none;
    box-shadow: none;
  }

  .wallpaper-card[data-index="2"] .wallpaper-more-content a {
    color: white;
    font-size: 16px;
  }

  .wallpaper-card[data-index="2"] img {
    display: none;
  }

  .wallpaper-card[data-index="2"] .wallpaper-image {
    height: 50px;
    border-radius: 10px;
  }

  .wallpaper-card[data-index="2"] .wallpaper-more-content {
    background: #f04748;
  }
  .wallpaper-more-content span {
    font-size: 15px;
  }

  .wallpaper-image img {
    object-fit: cover;
  }
}
