.zoom-figure-control {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
}

.zoom-figure-preview {
  display: block;
  overflow: hidden;
  border: 1px solid #526b80;
  background: #0b1119;
}

.zoom-figure-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-grid .zoom-figure-preview {
  display: grid;
  aspect-ratio: 1.42;
  background: #12212d;
}

.gallery-grid .zoom-figure-preview img {
  height: 100%;
  object-fit: contain;
}

.zoom-figure-label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 9px;
  padding: 8px 13px;
  border: 1px solid #789fbc;
  border-radius: 4px;
  background: #152b3d;
  color: #d2eaff;
  font-size: .875rem;
  font-weight: 600;
}

.zoom-figure-control:not(:disabled) {
  cursor: zoom-in;
}

.zoom-figure-control:disabled {
  opacity: 1;
  cursor: default;
}

.zoom-figure-control:disabled .zoom-figure-label {
  display: none;
}

.zoom-figure-control:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.zoom-figure-control:focus-visible .zoom-figure-preview {
  border-color: #b7d8ff;
}

@media (hover: hover) {
  .zoom-figure-control:not(:disabled):hover .zoom-figure-preview {
    border-color: #b7d8ff;
  }

  .zoom-figure-control:not(:disabled):hover .zoom-figure-label {
    border-color: #b7d8ff;
    background: #284b66;
  }
}

@media (max-width: 760px) {
  main .eyebrow {
    font-size: .8125rem;
    letter-spacing: .08em;
  }

  main .breadcrumb,
  main .image-frame figcaption,
  main .works-project-figure figcaption,
  #tyl-works .employee-figure figcaption,
  #work .roberts-project > .eyebrow,
  .detail-viewer.is-phone-zoom > .detail-viewer-caption {
    font-size: .875rem;
  }

  main .gallery-grid .caption-source,
  #work .roberts-project:has([aria-haspopup="dialog"]) .roberts-zoom-hint {
    font-size: .8125rem;
  }
}
