/* sggk-media.css — sggk.info — 2026-06-26
 * Lead images: thumb left, text right. Fixed width, height follows image aspect ratio.
 */

:root {
  --sggk-media-frame-w: 14rem;
}

/* Row layout: list cards, single articles, legacy HTML */
.sggk-media-body,
.sggk-media-body--row,
.sggk-media-body--stacked {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .sggk-media-body,
  .sggk-media-body--row,
  .sggk-media-body--stacked,
  .sggk-section-content article[itemtype="https://schema.org/Article"] .sggk-media-body {
    flex-direction: row !important;
    align-items: flex-start !important;
  }
}

.sggk-media-body > .sggk-prose {
  flex: 1 1 0%;
  min-width: 0;
}

/* List cards: same body text size as single article pages (.content.sggk-prose = text-lg) */
.sggk-media-item .content.sggk-prose,
.sggk-media-item .sggk-prose {
  font-size: 1.125rem;
  line-height: calc(1.75 / 1.125);
}

/* Frame hugs image: fixed width, auto height (no letterboxing) */
.sggk-media-thumb {
  display: block;
  flex-shrink: 0;
  width: var(--sggk-media-frame-w) !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin-inline: auto;
  margin-bottom: 0 !important;
  padding: 0;
  line-height: 0;
  border-radius: 0.5rem;
  background: rgb(0 0 0 / 4%);
  box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
  overflow: hidden;
}

@media (min-width: 48rem) {
  .sggk-media-thumb {
    margin-inline: 0;
  }
}

.dark .sggk-media-thumb {
  background: rgb(255 255 255 / 6%);
}

.sggk-media-thumb img,
.sggk-media-img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: unset !important;
  border-radius: 0;
  box-shadow: none;
}

/* Legacy HTML may still attach object-cover / fixed aspect on the img */
.sggk-media-thumb img[class*="object-cover"] {
  object-fit: unset !important;
  height: auto !important;
}
