.gal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.gal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gal-filter {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border, #d8e2d5);
  background: var(--surface, #ffffff);
  color: var(--text, #1d2a1f);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.gal-filter[aria-pressed="true"] {
  background: #2f7d4f;
  border-color: #2f7d4f;
  color: #ffffff;
}
.gal-status {
  font-size: 13px;
  color: var(--muted, #5d6e60);
}
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.gal-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #d8e2d5);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.06));
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gal-card[hidden] {
  display: none;
}
.gal-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid var(--border, #d8e2d5);
  background-color: #eef3ec;
  background-image:
    linear-gradient(45deg, #e1e9de 25%, transparent 25%),
    linear-gradient(-45deg, #e1e9de 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e1e9de 75%),
    linear-gradient(-45deg, transparent 75%, #e1e9de 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  cursor: pointer;
  overflow: hidden;
}
.gal-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.gal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #5d6e60);
}
.gal-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: #edf5ef;
  color: #2f7d4f;
}
.gal-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.gal-card p {
  font-size: 13px;
  color: var(--muted, #5d6e60);
  margin: 0;
  flex: 1;
}
.gal-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gal-play {
  flex: 1 1 100%;
  min-height: 40px;
  border-radius: 8px;
  border: none;
  background: #1d2a1f;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.gal-play:hover {
  background: #2f7d4f;
}
.gal-play[data-playing="1"] {
  background: #d9a441;
  color: #1d2a1f;
}
.gal-dl {
  flex: 1 1 70px;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border, #d8e2d5);
  background: #fbfcf9;
  color: var(--text, #1d2a1f);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.gal-dl:hover {
  border-color: #2f7d4f;
  color: #2f7d4f;
}
.gal-edit-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #2f7d4f;
}
@media (max-width: 900px) {
  .gal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .gal-grid {
    grid-template-columns: 1fr;
  }
}