.hbwall-tg { width: 100%; }

.hbwall-tg__grid {
  display: grid;
  gap: 16px;
}

.hbwall-tg__grid--cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.hbwall-tg__grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hbwall-tg__grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hbwall-tg__grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hbwall-tg__grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hbwall-tg__grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .hbwall-tg__grid--cols-4,
  .hbwall-tg__grid--cols-5,
  .hbwall-tg__grid--cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .hbwall-tg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 420px) {
  .hbwall-tg__grid { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
}

.hbwall-tg__card {
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.hbwall-tg__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.hbwall-tg__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #fafafa;
}

.hbwall-tg__img--placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, #f2f2f2, #fafafa, #f2f2f2);
  background-size: 200% 100%;
  animation: hbwallTgShimmer 1.2s infinite;
}

@keyframes hbwallTgShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hbwall-tg__title {
  padding: 12px 12px 14px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: #1E2023;
}

.hbwall-tg__footer {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

.hbwall-tg__btn {
  border: 1px solid #F0F0F0;
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 700;
}

.hbwall-tg__btn[disabled] { opacity: .6; cursor: not-allowed; }

.hbwall-tg__loader {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-top-color: #999;
  border-radius: 50%;
  animation: hbwallTgSpin .8s linear infinite;
  display: none;
}

.hbwall-tg.is-loading .hbwall-tg__loader { display: inline-block; }

@keyframes hbwallTgSpin {
  to { transform: rotate(360deg); }
}

.hbwall-tg__empty,
.hbwall-tg--error {
  padding: 12px;
  border: 1px dashed #ddd;
  border-radius: 10px;
}
