/* OnStorio AI Cover Acceptance v1.0.3 — preserve every pixel of AI newspaper cover.
   Applies only to raster AI covers; does not alter Feed card sizing or other covers.
   The source is 3:5 and the desktop card is 3:4: full visibility requires side space.
   A genuinely wider, full-bleed cover requires a separate 3:4 rendered asset. */
#onstorio-feed-app .os-cover-link.os-cover-raster.os-cover-ai-generated {
  background-color: #f8f5ed !important;
  background-image: none !important;
}
#onstorio-feed-app .os-cover-link.os-cover-raster.os-cover-ai-generated .os-selected-cover {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  background: #f8f5ed !important;
}
/* Web: preserve the original Feed geometry, with no crop. */
@media (min-width: 681px) {
  body:not(.onstorio-app-mode) #onstorio-feed-app .os-cover-link.os-cover-raster.os-cover-ai-generated .os-selected-cover {
    object-fit: contain !important;
  }
}
@media (max-width: 680px) {
  body:not(.onstorio-app-mode) #onstorio-feed-app .os-cover-link.os-cover-raster.os-cover-ai-generated .os-selected-cover {
    object-fit: contain !important;
  }
}
/* App: same pixel preservation, no layout or navigation changes. */
body.onstorio-app-mode #onstorio-feed-app .os-cover-link.os-cover-raster.os-cover-ai-generated .os-selected-cover {
  object-fit: contain !important;
}

/* v1.0.4: APP ONLY — shorten AI cover vertically to keep the authored
   language and author above the bottom Tap to read / navigation safe zone.
   The full image remains visible; do not crop, stretch or modify web cards. */
@media (max-width: 680px) {
  body.onstorio-app-mode #onstorio-feed-app .os-cover-link.os-cover-raster.os-cover-ai-generated {
    background: #f8f5ed !important;
  }
  body.onstorio-app-mode #onstorio-feed-app .os-cover-link.os-cover-raster.os-cover-ai-generated::before,
  body.onstorio-app-mode #onstorio-feed-app .os-cover-link.os-cover-raster.os-cover-ai-generated::after {
    display: none !important;
  }
  body.onstorio-app-mode #onstorio-feed-app .os-cover-link.os-cover-raster.os-cover-ai-generated .os-selected-cover {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center top !important;
    transform: none !important;
    background: #f8f5ed !important;
  }
}

/* v1.0.8 HIRURG: App-only full container height; keep contain and no distortion.
   The beige background fills the image box, without changing desktop geometry. */
