.draw-feature > .studio-birds-preview {
  position: relative;
  display: block;
  min-width: 0;
  margin: 19px 19px 19px 0;
  border-radius: 20px;
  overflow: hidden;
  cursor: zoom-in;
}

.studio-birds-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.studio-birds-preview__hint {
  position: absolute;
  inset: auto auto 10px 10px;
  padding: 5px 11px;
  border: 1px solid #fff9;
  border-radius: 9px;
  background: #231e1eea;
  color: #fffaf7;
  font-size: .79rem;
  font-weight: 750;
}

.studio-birds-preview:focus-visible {
  outline: 3px solid var(--ruby);
  outline-offset: 3px;
}

#studio-birds-detail {
  width: min(1120px, calc(100% - 24px));
  background: #fcf8f3;
}

#studio-birds-detail::backdrop {
  background: #211923d6;
}

.studio-birds-detail__viewport {
  max-height: min(72dvh, 750px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #211e20;
}

.studio-birds-detail__viewport img {
  display: block;
  width: var(--studio-birds-detail-width, 100%);
  max-width: none;
  height: auto;
}

.studio-birds-detail__viewport:not([data-zoomed]) img {
  max-width: min(115.2dvh, 1200px);
  margin-inline: auto;
}

.studio-birds-detail__zoom {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px;
}

.studio-birds-detail__zoom button,
.studio-birds-detail__close {
  min-width: 44px;
  min-height: 44px;
  padding: 4px 12px;
  border: 1px solid #ded5ce;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.studio-birds-detail__close,
.studio-birds-detail__zoom :is([data-zoom="in"], [data-zoom="out"]) {
  font-size: 1.35rem;
}

.studio-birds-detail__zoom [aria-pressed="true"] { background: #f0e5de; }
.studio-birds-detail__zoom button:disabled { opacity: .46; cursor: default; }

@media (max-width: 760px) {
  .draw-feature > .studio-birds-preview {
    margin: 0 12px 12px;
    border-radius: 12px;
  }

  #studio-birds-detail { width: calc(100% - 12px); }
  #studio-birds-detail .dialog-head { padding: 8px 12px; }
}
