/* Style gallery controls and hotkey tooltips. */

.gallery-hotkey-tooltip {
  position: fixed;
  z-index: 1200;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100vw - 1rem);
  padding: 0.2rem 0.4rem;
  color: var(--color-primary-content);
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: center;
  white-space: pre-line;
  visibility: hidden;
  background: var(--color-base-content);
  border: 1px solid var(--color-base-300);
  border-radius: 0.25rem;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.gallery-hotkey-tooltip.gallery-hotkey-tooltip-open {
  visibility: visible;
  opacity: 1;
}

.gallery-header button,
.gallery-nav button {
  color: inherit;
  background: var(--color-base-200);
  border: 1px solid var(--color-base-300);
  border-radius: 0.25rem;
}

.gallery-pane button {
  color: inherit;
}

.gallery-header button {
  padding: 0.3rem 0.7rem;
}

.gallery-axis:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.gallery-close {
  font-size: 1.25rem;
  line-height: 1;
}

.gallery-header .gallery-axis-active,
.gallery-header .gallery-toggle-active,
.gallery-pane .gallery-pane-current {
  color: var(--color-primary-content);
  font-weight: 600;
  background: var(--color-primary);
}

.gallery-header .gallery-axis-active,
.gallery-header .gallery-toggle-active {
  border-color: var(--color-primary);
}
