.collections-container {
  padding: 1rem;
}
.collections-container .collection-category {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.5rem;
  font-weight: bold;
  border-bottom: 1px solid var(--card-border-color);
  color: var(--text-color);
  text-align: left;
}
.collections-container .collection-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}
.collections-container .collection-card {
  box-shadow: none;
  background-color: transparent;
  border: 0;
}
@media (min-width: 768px) {
  .collections-container .collection-card {
    flex: 1 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
    margin: 0 0.8rem;
  }
}
.collections-container .card-body {
  margin: 0;
  padding: 1rem;
  border-radius: 0.3rem;
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-height: 80px;
  transition: background-color 0.2s ease-in-out;
}
.collections-container .card-body:hover {
  background-color: var(--card-hover-bg);
}
.collections-container .card-body:hover .collection-avatar {
  transform: scale(1.1);
}
.collections-container .collection-avatar {
  flex: none;
  width: 45px;
  height: 45px;
  margin-right: 0.75rem;
  object-fit: cover;
  transition-duration: 0.2s;
  transition-timing-function: ease-in-out;
}
.collections-container .collection-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: transparent;
  object-fit: cover;
}
.collections-container .card-content {
  display: flex;
  width: 100%;
}
.collections-container .collection-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.collections-container .collection-title {
  color: var(--text-color);
  font-weight: bold;
}
@media (max-width: 767px) {
  .collections-container .collection-title {
    white-space: normal;
    word-break: break-word;
  }
}
@media (min-width: 768px) {
  .collections-container .collection-title {
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.collections-container .collection-intro {
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--sec-text-color);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  overflow: hidden;
}
@media (max-width: 767px) {
  .collection-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .collection-card {
    max-width: 100%;
    flex: 1 1 auto;
    padding: 0 5%;
  }
  .collection-card .card-body {
    padding: 1.25rem;
  }
}
