/* Contact: the resin object sits directly on the page, without a display panel. */
.contact-page .contact-art.contact-object { background: transparent; border: 0; box-shadow: none; height: auto; aspect-ratio: 1.5; min-height: 220px; max-height: 400px; }
.contact-object model-viewer,
.contact-page .contact-art .contact-object-poster {
  position: absolute; inset: 0 0 25px; display: block; width: 100%; height: calc(100% - 25px);
  margin: 0; background: transparent; object-fit: contain; transform: none; mix-blend-mode: normal;
}
.contact-object model-viewer {
  --poster-color: transparent; --progress-bar-color: var(--accent); --progress-mask: transparent;
  opacity: 0; pointer-events: none; touch-action: none; user-select: none; cursor: grab;
}
.contact-object model-viewer.is-dragging { cursor: grabbing; }
/* Dragging focuses the viewer programmatically; reserve the focus ring for keyboard use. */
.contact-object.pointer-focus model-viewer:focus { outline: none; }
.contact-object model-viewer::part(default-progress-bar) { height: 2px; }
.contact-object .contact-object-poster { opacity: 1; pointer-events: none; }
.contact-object.is-ready model-viewer { opacity: 1; pointer-events: auto; }
.contact-object.is-ready .contact-object-poster { opacity: 0; }
.contact-object-status {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; min-height: 20px;
  color: var(--muted); text-align: center; font: 9px/20px 'Space Mono', monospace;
  letter-spacing: .06em; text-transform: uppercase; pointer-events: none;
}
.contact-object-status:empty { display: none; }

@media (max-width: 800px) {
  .contact-page .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-page .contact-layout > * { min-width: 0; }
  .contact-page .contact-art.contact-object { min-height: min(220px, 60vw); }
}
