.ragos3d {
  container-type: inline-size;
  --ragos3d-ink: #173047;
  --ragos3d-accent: #bb2635;
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  margin: 2rem auto;
  color: var(--ragos3d-ink);
  font-family: inherit;
}

.ragos3d *,
.ragos3d *::before,
.ragos3d *::after {
  box-sizing: border-box;
}

.ragos3d [hidden] {
  display: none !important;
}

.ragos3d__poster {
  position: relative;
  overflow: hidden;
  border: 1px solid #cbd5de;
  border-radius: 10px;
  background: #eaf0f5;
}

.ragos3d__poster img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.ragos3d__load {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: block;
  width: max-content;
  max-width: calc(100% - 40px);
  min-height: 48px;
  margin: 0 auto;
  padding: 13px 22px;
  border: 2px solid #fff;
  border-radius: 7px;
  background: var(--ragos3d-accent);
  box-shadow: 0 3px 15px #132b4340;
  color: #fff;
  font: inherit;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}

.ragos3d__load:hover {
  background: #9c1e2b;
}

.ragos3d__load:focus-visible,
.ragos3d__standalone:focus-visible {
  outline: 3px solid #176b9c;
  outline-offset: 4px;
}

.ragos3d__load:disabled {
  cursor: wait;
  opacity: 0.8;
}

.ragos3d__mount {
  display: none;
  width: 100%;
  height: 0;
}

.ragos3d__stage {
  position: relative;
}

.ragos3d__loading {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  left: 16px;
  padding: 15px 18px;
  border: 1px solid #cbd5de;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 2px 12px #132b4324;
  color: var(--ragos3d-ink);
}

.ragos3d__loading p {
  margin: 0 0 9px;
  font: inherit;
  line-height: 1.5;
}

.ragos3d__loading progress {
  display: block;
  width: 100%;
  height: 12px;
  margin: 0;
  accent-color: var(--ragos3d-accent);
}

.ragos3d[data-ragos3d-expanded] .ragos3d__mount {
  display: block;
  height: 1000px;
  overflow: hidden;
  border: 1px solid #cbd5de;
  border-radius: 10px;
  background: #eaf0f5;
}

.ragos3d__frame {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
}

.ragos3d__status {
  min-height: 3.2em;
  margin: 10px 0 0;
  font-size: 0.9375em;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ragos3d__status:empty {
  display: none;
}

.ragos3d[data-ragos3d-expanded] .ragos3d__status:empty {
  display: block;
}

.ragos3d__caption {
  margin: 12px 0 0;
  font-size: 0.9375em;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.ragos3d__caption p,
.ragos3d__noscript {
  margin: 0 0 8px;
}

.ragos3d__standalone {
  color: #155d88;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .ragos3d {
    margin: 1.5rem auto;
  }

  .ragos3d[data-ragos3d-expanded] .ragos3d__mount {
    height: calc(100svh - 24px);
  }

  .ragos3d__load {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 11px 14px;
    font-size: 0.9375em;
  }
}

/* Match the viewer's compact layout, including narrow CMS article columns. */
@container (max-width: 720px) {
  .ragos3d[data-ragos3d-expanded] .ragos3d__mount {
    height: calc(100svh - 24px);
  }
}
@media (max-width: 1020px) and (max-height: 540px) {
  .ragos3d[data-ragos3d-expanded] .ragos3d__mount {
    height: calc(100svh - 24px);
  }
}
.ragos3d__frame {
  scroll-margin-block-start: 12px;
}
