body.artwork-preview-open { overflow: hidden; }

dialog.artwork-preview {
  box-sizing: border-box;
  width: min(34rem, calc(100% - 28px));
  max-width: none;
  max-height: calc(100% - 28px);
  padding: clamp(14px, 3vw, 22px);
  border: 1px solid #4c6878;
  border-radius: 12px;
  color: #f1f8fb;
  background: #0c1c27;
}

.artwork-preview[open] {
  display: grid;
  gap: 12px;
}

.artwork-preview::backdrop { background: #03080bd9; }

.artwork-preview header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.artwork-preview h2 {
  margin: 0;
  font-size: clamp(1.25rem, 5vw, 1.625rem);
  line-height: 1.2;
}

.artwork-preview header p {
  margin: 4px 0 0;
  color: #b5cfda;
  font-size: .9375rem;
}

.artwork-preview button {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #4c6878;
  border-radius: 6px;
  color: #f1f8fb;
  background: #182d3a;
  font: 700 .875rem Arial, sans-serif;
  cursor: pointer;
}

.artwork-preview button:focus-visible,
.artwork-preview-stage:focus-visible { outline: 2px solid #a7ecff; outline-offset: 2px; }
.artwork-preview-zoom { justify-self: end; }

.artwork-preview-stage {
  box-sizing: border-box;
  height: min(54svh, 26rem);
  overflow: auto;
  padding: 10px;
  border-radius: 8px;
  background: var(--hxc-oxygen-stage, #142632);
}

.artwork-preview-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

.artwork-preview.is-zoomed .artwork-preview-stage > img {
  width: min(160%, calc(var(--artwork-native-width, 100%) * 1.2));
  max-width: none;
  height: auto;
  margin-inline: auto;
}

.artwork-preview-stage:has(.artwork-preview-bottles) {
  background: var(--hxc-oxygen-photo-stage, #142632);
}

.artwork-preview-bottles {
  display: flex;
  justify-content: center;
  align-items: end;
  height: 100%;
  gap: clamp(12px, 4vw, 24px);
}

.artwork-preview-bottles img {
  width: auto;
  max-width: 45%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.artwork-preview-bottles:has(> img:only-child) { --hxc-platform-width: 10rem; }

.artwork-preview-bottles img[data-bottle-size="pocket"] {
  height: calc(100% * var(--hxc-oxygen-pocket-scale, .76));
}

.artwork-preview.is-zoomed .artwork-preview-bottles {
  width: 145%;
  height: 145%;
}
