.group-gallery-section {
  margin-top: 10px;
}

.group-gallery-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.group-gallery-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
}

.group-gallery-tab-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.group-gallery-empty {
  color: #64748b;
  font-size: 14px;
  margin: 0 0 8px;
}

.group-gallery-albums-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.group-gallery-albums-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.group-gallery-album-card {
  flex: 0 0 auto;
  width: 112px;
  text-decoration: none;
  color: inherit;
}

.group-gallery-album-cover {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #e2e8f0;
  border: 1px solid var(--border, #e2e8f0);
  position: relative;
}

.group-gallery-album-cover img,
.group-gallery-album-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.group-gallery-album-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  opacity: 0.55;
}

.group-gallery-album-play {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.group-gallery-album-heading {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  min-width: 0;
}

.group-gallery-album-author {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
  color: #475569;
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.group-gallery-album-author img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.group-gallery-album-title {
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-gallery-album-meta {
  margin-top: 2px;
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 721px) {
  .group-gallery-albums-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 12px;
    overflow: visible;
  }

  .group-gallery-albums-track--page {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  }

  .group-gallery-album-card {
    width: auto;
  }
}
