.gal-maker-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  padding: 16px 20px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d2a1f 0%, #264231 100%);
  color: #ffffff;
  border: 1px solid rgba(217, 164, 65, 0.35);
  box-shadow: 0 8px 22px rgba(29, 42, 31, 0.14);
}
.gal-maker-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
  flex: 1 1 280px;
}
.gal-maker-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.2);
  color: #f4cb74;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gal-maker-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}
.gal-maker-sub {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(243, 246, 241, 0.82);
}
.gal-maker-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  background: #d9a441;
  color: #1d2a1f !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(217, 164, 65, 0.34);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.gal-maker-cta:hover {
  background: #e5b452;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217, 164, 65, 0.45);
}
.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;
  }
  .gal-maker-banner {
    padding: 14px 16px;
  }
  .gal-maker-cta {
    width: 100%;
  }
}
