.exhibition-wall {
  margin-block: clamp(1.75rem, 5vw, 3.5rem);
  scroll-margin-top: 4rem;
}

.exhibition-wall .exhibition-wall-stage {
  display: grid;
  place-items: center;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  height: clamp(17rem, 64vw, 38rem);
  overflow: hidden;
  padding: clamp(1.25rem, 5vw, 3.75rem);
  background: var(--room) var(--wall-image, none) center / cover no-repeat;
  touch-action: pan-y pinch-zoom;
}

.exhibition-wall .exhibition-wall-photo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  box-shadow: 0 .3rem 1.15rem #292a2750;
}

.exhibition-wall .exhibition-wall-caption {
  margin-top: .65rem;
  text-align: center;
  font-size: .95rem;
}

.exhibition-wall-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin-top: .85rem;
}

.exhibition-wall-controls button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color var(--link-hover), background-color var(--link-hover);
}

.exhibition-wall-controls button:not([aria-disabled="true"]):is(:hover, :focus-visible) {
  border-color: var(--ink);
  background: var(--room);
}

.exhibition-wall-controls button[aria-disabled="true"] {
  opacity: .45;
  cursor: default;
}

.exhibition-wall-position {
  min-width: 7ch;
  font-size: .9rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.exhibition-wall-links {
  margin-top: .85rem;
  color: var(--ink);
  font-size: .9rem;
}

.exhibition-wall-links summary {
  min-height: 44px;
  line-height: 44px;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .exhibition-wall-controls button {
    transition: none;
  }
}
