/* Navigation sits beneath the complete 6:7 artwork, at its left/right edges. */
.chromatic-gallery {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  column-gap: 0;
  row-gap: 1rem;
  align-items: center;
  min-width: 0;
  color: var(--chromatic-ink);
  outline: 0;
}

.chromatic-gallery > .chromatic-frame {
  grid-column: 1 / -1;
  grid-row: 1;
}

.chromatic-gallery__arrow {
  grid-row: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  opacity: 0.8;
  box-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 200ms ease;
}

.chromatic-gallery__arrow--previous {
  grid-column: 1;
}

.chromatic-gallery__arrow--next {
  grid-column: 3;
}

.chromatic-gallery__arrow svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 0.9;
}

.chromatic-gallery__arrow:hover,
.chromatic-gallery__arrow:focus-visible,
.chromatic-gallery:focus-visible .chromatic-gallery__arrow {
  opacity: 1;
}

.chromatic-gallery__arrow:disabled {
  cursor: default;
}

.chromatic-gallery .chromatic-gallery__arrow:is(:focus, :active, :focus-visible) { border: 0; outline: 0; box-shadow: none; }
.chromatic-gallery__arrow:focus-visible svg,
.chromatic-gallery:focus-visible .chromatic-gallery__arrow svg { stroke-width: 1.7; }
.chromatic-gallery + .chromatic-installation-meta { margin-inline: 0; }

@media (prefers-reduced-motion: reduce) {
  .chromatic-gallery__arrow {
    transition: none;
  }
}
