/* Controls for the capture galleries and the embedded refit examples. */
.actions button, button.zoom, button[data-copy=zoom], button[data-copy=close],
button[data-copy=previous], button[data-copy=next], .dialog-top button,
button[data-refit-zoom], #refit-close, a[data-prep-full] {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #7becb3;
  min-height: 44px;
  padding: .4rem .5rem .4rem .15rem;
  font: inherit;
  font-weight: 650;
  line-height: 1.45;
  text-decoration: none;
  text-underline-offset: .28em;
}

.actions button:not(:disabled):hover, button.zoom:hover, button[data-copy]:not(:disabled):hover,
.dialog-top button:hover, button[data-refit-zoom]:hover, #refit-close:hover, a[data-prep-full]:hover {
  background: transparent;
  color: #baf8d4;
  text-decoration: underline;
}

.actions button:focus-visible, button.zoom:focus-visible, button[data-copy]:focus-visible,
.dialog-top button:focus-visible, button[data-refit-zoom]:focus-visible, #refit-close:focus-visible,
a[data-prep-full]:focus-visible {
  outline: 2px solid #ead27c;
  outline-offset: 3px;
}

.actions button::before, button.zoom::before, button[data-copy]::before,
.dialog-top button::before, button[data-refit-zoom]::before, #refit-close::before, a[data-prep-full]::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-right: .55rem;
  vertical-align: -1px;
  background: currentColor;
}

.actions button::before {
  clip-path: polygon(0 0, 20% 0, 20% 20%, 40% 20%, 40% 30%, 60% 30%, 60% 40%, 80% 40%, 80% 50%, 100% 50%, 100% 60%, 80% 60%, 80% 70%, 60% 70%, 60% 80%, 40% 80%, 40% 90%, 20% 90%, 20% 100%, 0 100%);
}

.actions button[aria-pressed=true] {
  background: transparent;
  color: #ead27c;
}

.actions button[aria-pressed=true]::before {
  clip-path: inset(10%);
}

button.zoom::before, button[data-copy=zoom]::before, button[data-refit-zoom]::before, a[data-prep-full]::before {
  clip-path: polygon(0 40%, 0 0, 40% 0, 40% 20%, 20% 20%, 20% 40%, 0 40%, 60% 100%, 60% 80%, 80% 80%, 80% 60%, 100% 60%, 100% 100%, 60% 100%);
}

button[data-copy=previous]::before, button[data-copy=next]::before {
  clip-path: polygon(40% 0, 60% 0, 60% 20%, 40% 20%, 40% 40%, 100% 40%, 100% 60%, 40% 60%, 40% 80%, 60% 80%, 60% 100%, 40% 100%, 40% 80%, 20% 80%, 20% 60%, 0 60%, 0 40%, 20% 40%, 20% 20%, 40% 20%);
}

button[data-copy=next]::before {
  transform: scaleX(-1);
}

button[data-copy=close]::before, .dialog-top button::before, #refit-close::before {
  clip-path: polygon(0 0, 20% 0, 50% 30%, 80% 0, 100% 0, 100% 20%, 70% 50%, 100% 80%, 100% 100%, 80% 100%, 50% 70%, 20% 100%, 0 100%, 0 80%, 30% 50%, 0 20%);
}

a[data-prep-full] {
  display: inline-flex;
  align-items: center;
}
