/* Only the controls below a gallery category; artwork and grids stay unchanged. */
.gallery-group > .gallery-more-controls {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-block-start: clamp(24px, 4vw, 44px);
  text-align: center;
}

.gallery-more-controls > .gallery-more-count {
  margin: 0;
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.gallery-more-controls > .button.gallery-load-more {
  width: max-content;
  min-width: min(100%, 16rem);
  max-width: 100%;
  min-height: 56px;
  gap: .75rem;
  padding: 13px clamp(18px, 4vw, 32px);
  border-color: #9b691e;
  background: #d7ad63;
  color: #1d1008;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.gallery-more-controls > .button.gallery-load-more:hover {
  background: #ebc984;
}

.gallery-more-controls > .button.gallery-load-more:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.gallery-more-controls > .button.gallery-load-more[aria-disabled="true"] {
  background: #d7ad63;
  cursor: progress;
  transform: none;
}

.gallery-more-controls .gallery-more-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.gallery-more-controls .gallery-more-arrow {
  flex: none;
  font-size: 1.25em;
  line-height: 1;
}

.gallery-more-controls > .gallery-load-status:not([data-state="error"]) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.gallery-more-controls > .gallery-load-status[data-state="error"] {
  color: var(--text);
  font-size: .9375rem;
}

@media (max-width: 700px) {
  .gallery-more-controls > .button.gallery-load-more {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-more-controls > .button.gallery-load-more {
    transition: none;
  }

  .gallery-more-controls > .button.gallery-load-more:hover {
    transform: none;
  }
}
