/* Display-only controls stay outside the artwork field. */
.presentationControls {
  width: min(1040px, 100%);
  margin: 2px auto 0;
  color: #736879;
  font-size: 11px;
}

.presentationControls summary {
  min-height: 44px;
  line-height: 44px;
  cursor: pointer;
  width: fit-content;
  max-width: 100%;
}

.presentationControls summary:focus-visible {
  outline: 2px solid #9381ae;
  outline-offset: 2px;
  border-radius: 4px;
}

#presentationSummary {
  margin-left: 12px;
  color: #8b7e92;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.presentationSliders {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 28px;
  row-gap: 2px;
}

.presentationSliders label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  min-width: 0;
  line-height: 16px;
  cursor: pointer;
}

.presentationSliders output {
  color: #55455f;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.presentationSliders input[type="range"] {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  accent-color: #877195;
  cursor: ew-resize;
}

.presentationSliders input[type="range"]:disabled {
  opacity: .55;
  cursor: default;
}

.presentationSliders label:has(input:disabled) {
  cursor: default;
}

#resetPresentation {
  min-height: 44px;
  padding: 8px 12px;
  border-color: transparent;
  background: transparent;
  font-size: 11px;
  white-space: nowrap;
}

#resetPresentation:hover:enabled {
  color: #55455f;
  background: #ffffff80;
}

#resetPresentation:disabled {
  opacity: .65;
}

#presentationHint {
  margin: 0 0 4px;
  color: #8b7e92;
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .presentationSliders { column-gap: 16px; }
}

@media (max-width: 520px) {
  .presentationSliders {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 16px;
  }
  #resetPresentation {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: -12px;
  }
  .presentationSliders label { column-gap: 4px; }
  #presentationHint { max-width: 100%; }
}
