/* Sundeo.org — Live Walkthrough Additional Information image sizing (r5)
   Page-scoped. Images follow the EXISTING slot width; they never size the grid.
   No cropping: original image aspect ratio determines rendered height. */

/* A grid child must not demand extra width because it contains a large image. */
.sw-page .sw-layout > .sw-details {
  min-width: 0;
  max-width: 100%;
}

/* Keep each original slot inside the existing right-column width. */
.sw-page .sw-details .sw-detail {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Prevent the image's intrinsic width from becoming the flex item basis. */
.sw-page .sw-details .sw-detail-content {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
}

/* Always fit the image to its slot, never enlarge the slot to fit the image. */
.sw-page .sw-details .sw-detail-image {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}
