img {
  max-width: 100%;
  height: auto;
}

article .window-body img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(75vh, 720px);
  margin: 12px auto;
  padding: 6px;
  border: 2px solid #99ccff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(8, 36, 63, 0.2);
  object-fit: contain;
}

.image-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  max-height: 80vh;
  margin: 12px auto;
  overflow: auto;
}

.image-viewer img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.image-card {
  width: fit-content;
  max-width: 100%;
  margin: 12px auto;
  padding: 8px;
  overflow: hidden;
  border: 2px solid #99ccff;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(220, 240, 255, 0.9));
  box-shadow: 0 4px 14px rgba(8, 36, 63, 0.25), inset 0 2px 6px rgba(255, 255, 255, 0.8);
}

.image-card img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(75vh, 720px);
  margin: 0 auto;
  border-radius: 5px;
  object-fit: contain;
}

.image-card figcaption {
  margin-top: 8px;
  color: #0a4d8c;
  font-size: 0.9em;
  text-align: center;
  overflow-wrap: anywhere;
}
