/* ==========================================================
   Sprockett's — Community Custom CSS  (v7)
   Replaces v6. Removes forced 16:9 ratio so post images render
   at natural proportions (no edge-cropping).
   Paste in: Group → Settings → Branding → Advanced Options → Custom CSS
   Toggle Live Mode ON.
   ========================================================== */

/* --- Brand typography --- */
body, button, input, textarea, select {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}
h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 800 !important;
  color: #1a1a2e !important;
}

/* --- Brand buttons --- */
button[class*="primary"],
.btn-primary,
button[type="submit"] {
  background-color: #1974CE !important;
  border-color: #1974CE !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
}
button[class*="primary"]:hover { background-color: #0d4f8a !important; }


/* ==========================================================
   POST FEED — image full-width on top, natural aspect
   ========================================================== */

/* 1. Stack post container: text on top, image below */
html body div.post_container {
  flex-direction: column !important;
  gap: 14px !important;
  width: 100% !important;
  align-items: stretch !important;
}

/* 2. Force the LEFT text column to full width */
html body div.post_container > div.line-clamp-1 {
  width: 100% !important;
  max-width: 100% !important;
}

/* 3. Force the RIGHT image column to full width, no items-end pinning */
html body div.post_container > div.flex.h-full.flex-col {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  align-items: stretch !important;
  justify-content: stretch !important;
}

/* 4. Inner flex row that wraps the image-bordered box */
html body div.post_container div.flex.items-start.justify-end {
  width: 100% !important;
  align-items: stretch !important;
  justify-content: stretch !important;
}

/* 5. Image wrapper — defeat hard-coded h-[72px]/w-[72px] and
      lg:h-[104px]/lg:w-[104px]. NO aspect-ratio — let image
      dictate its own height for natural proportions. */
html body div.post_container [class*="border-communities-border"] {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 600px !important;
  border-radius: 14px !important;
  flex: 1 1 auto !important;
  aspect-ratio: auto !important;
}

/* 6. Inner divs of the image wrapper — let height be auto */
html body div.post_container [class*="border-communities-border"] > div,
html body div.post_container [class*="border-communities-border"] > div > div {
  width: 100% !important;
  height: auto !important;
}

/* 7. The image itself — width fills, height natural */
html body div.post_container img[alt="Thumbnail"] {
  width: 100% !important;
  height: auto !important;
  max-height: 600px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}

/* 8. Card polish */
html body .hl-card-content {
  border-radius: 16px !important;
  border: 1px solid #e5e5e5 !important;
  box-shadow: 0 1px 2px rgba(25,116,206,0.04) !important;
}
