/* Ivrea Observatory v6.5.13 — SkyCam Live desktop-first full-width layout
   The camera image uses the real 4:3 frame and fills the available card width.
   No crop, no forced viewport height, no letterboxing. */

html body .skycam-card.io-skycam-card {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

html body .skycam-card.io-skycam-card .skycam-image-link {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;
  line-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

html body .skycam-card.io-skycam-card .skycam-image {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}

/* Desktop: let the 4:3 SkyCam frame become the visual focus of the card. */
@media (min-width: 721px) {
  html body .skycam-card.io-skycam-card .skycam-image-link,
  html body .skycam-card.io-skycam-card .skycam-image {
    width: 100% !important;
    height: auto !important;
  }
}

/* Mobile keeps the already-correct fluid behaviour. */
@media (max-width: 720px) {
  html body .skycam-card.io-skycam-card .skycam-image-link,
  html body .skycam-card.io-skycam-card .skycam-image {
    width: 100% !important;
    height: auto !important;
  }
}
