.gallery-api-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--slate-150);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.gallery-api-state > div {
  max-width: 520px;
}

.gallery-api-state strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy-900);
  font: 800 1rem/1.3 var(--font-display);
}

.gallery-api-state p {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.82rem;
  line-height: 1.6;
}

.gallery-api-spinner {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 3px solid var(--slate-200);
  border-top-color: var(--blue-500);
  border-radius: 999px;
  animation: gallery-api-spin 0.8s linear infinite;
}

.gallery-api-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.9rem;
  font-weight: 900;
}

.gallery-api-error {
  border-color: #fecaca;
  background: #fff7f7;
}

.gallery-api-error .gallery-api-icon {
  background: #fee2e2;
  color: #b91c1c;
}

.gallery-featured-badge {
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 8px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  color: var(--white);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

@keyframes gallery-api-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .gallery-api-state {
    min-height: 190px;
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }
}
