gpt-scene {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 16px;
}
.gpt-scene-figure {
  margin: 0;
  min-width: 0;
  max-width: 100%;
}
.gpt-scene-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  background: #101820;
  overflow: hidden;
}
.gpt-scene-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  background: #101820;
}
.gpt-scene-figure figcaption,
.gpt-scene-compare,
.gpt-scene-limits,
.gpt-scene-missing p {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.gpt-scene-limits {
  font-size: 15px;
}
.gpt-scene-missing {
  margin: 0;
  padding: 16px;
  background: #fffef7;
  color: #293e3d;
  border: 1px solid #c5d0bc;
  border-radius: 12px;
}
.gpt-scene-zoom,
.gpt-scene-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid #256759;
  border-radius: 10px;
  background: #fff;
  color: #293e3d;
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
}
.gpt-scene-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 12px;
  background: rgba(16, 24, 20, 0.72);
}
.gpt-scene-lightbox[hidden] {
  display: none !important;
}
.gpt-scene-lightbox-panel {
  display: flex;
  flex-direction: column;
  width: min(1100px, 100%);
  max-height: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 12px;
  border-radius: 16px;
  background: #fffef7;
  color: #293e3d;
}
.gpt-scene-lightbox-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
}
.gpt-scene-lightbox-toolbar button {
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid #256759;
  border-radius: 10px;
  background: #256759;
  color: #fff;
  font: inherit;
  font-size: 18px;
  line-height: 1.3;
}
.gpt-scene-lightbox-toolbar button[aria-pressed="true"] {
  background: #dfeada;
  color: #293e3d;
  border-width: 2px;
}
.gpt-scene-lightbox-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.4;
}
.gpt-scene-lightbox-viewport {
  flex: 1 1 auto;
  min-height: 120px;
  max-height: calc(100dvh - 220px);
  overflow: auto;
  background: #101820;
}
.gpt-scene-lightbox-viewport.is-fit {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gpt-scene-lightbox-viewport.is-fit img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 240px);
  object-fit: contain;
}
.gpt-scene-lightbox-viewport.is-original {
  display: block;
}
.gpt-scene-lightbox-viewport.is-original img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
}
.gpt-scene-lightbox-caption,
.gpt-scene-lightbox-hint {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
@media (max-width: 390px) {
  .gpt-scene-lightbox {
    padding: 8px;
  }
  .gpt-scene-lightbox-panel {
    padding: 8px;
    border-radius: 12px;
  }
  .gpt-scene-lightbox-toolbar button,
  .gpt-scene-zoom,
  .gpt-scene-retry {
    flex: 1 1 120px;
    font-size: 16px;
  }
}
