.kwtw {
  width: 100%;
}

.kwtw__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.kwtw__btn {
  border: 1px solid #d7d7d7;
  background: #ffffff;
  color: #111111;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.3;
  width: 100%;
}

.kwtw__btn.is-active,
.kwtw__btn:focus-visible {
  outline: none;
  border-color: #111111;
}

.kwtw__panel[hidden] {
  display: none !important;
}

.kwtw__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.kwtw__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.kwtw__thumb {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  background: #f2f2f2;
}

.kwtw__img,
.kwtw__placeholder {
  width: 100%;
  height: 100%;
  display: block;
}

.kwtw__img {
  object-fit: cover;
}

.kwtw__placeholder {
  background: linear-gradient(135deg, #ececec, #dcdcdc);
}

.kwtw__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
}

.kwtw__title a,
.kwtw__cat a,
.kwtw__more {
  text-decoration: none;
}

.kwtw__cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.kwtw__cats--more {
  margin-top: 10px;
}

.kwtw__cat a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
}

.kwtw__count {
  opacity: 0.75;
}

.kwtw__empty {
  padding: 14px;
  border: 1px solid #ececec;
  border-radius: 10px;
}

.kwtw__footer {
  margin-top: 14px;
}

.kwtw__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  box-sizing: border-box;
}

.kwtw__details summary {
  list-style: none;
}

.kwtw__details summary::-webkit-details-marker {
  display: none;
}

.widget .kwtw__thumb,
.wp-block-group .kwtw__thumb,
.sidebar .kwtw__thumb,
aside .kwtw__thumb {
  width: 100%;
}

@media (max-width: 640px) {
  .kwtw__nav {
    grid-template-columns: 1fr;
  }

  .kwtw__thumb {
    aspect-ratio: 16 / 9;
  }
}
