/* ======================================================
   leaflet Browse — 40/60 layout (matches editor)
====================================================== */



body.single-member_leaflet .leaflet-browse-frame {
 
  max-width: 1200px;
  margin: 1px auto 0;
  border-radius: 16px;
}



body.single-member_leaflet .leaflet-browse-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 32px;
  align-items: start;
  padding: 24px 28px;
}





/* Mobile */
@media (max-width: 900px) {
  body.single-member_leaflet .leaflet-browse-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   leaflet Mobile Browse Bar
   ============================================================ */

@media (max-width: 768px) {
  body.single-member_leaflet .leaflet-mobile-browse-bar {
    position: fixed;
    left: 50%;
    bottom: env(safe-area-inset-bottom, 12px);
    transform: translateX(-50%);

    width: calc(100% - 24px);
    max-width: 520px;

    display: flex;
    justify-content: space-between;
    gap: 12px;

    padding: 12px 14px;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 999999;
  }

  body.single-member_leaflet {
    padding-bottom: 100px;
  }
}


/* Fixed hero frame */
.leaflet-hero-view {
  height: 180px;          /* adjust to taste: 240–280px */
  width: 100%;
  max-width: 320px;       /* keeps it modest */
  padding: 6px;
  border-radius: 16px;
  background: var(--softpaper-bg, #f3eddc);

  display: flex;
  align-items: center;
  justify-content: center;
}
.leaflet-hero-view img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}
.leaflet-browse-hero {
  align-self: start;
}
body.single-member_leaflet .leaflet-browse-grid-hero  {
    background: #f3eddc !important;
  max-width: 1200px;

  border-radius: 16px;
}



/* Give the block some breathing room */
.leaflet-browse-extract p {
  margin-bottom: 0.8em;
}

/* Optional: soften the opening line slightly */
.leaflet-browse-extract p:first-child {
  font-weight: 500;
}
/* Leaflet hero intro — limit visual length */
.leaflet-browse-extract {
  max-width: 56ch;
  font-size: 1.06rem;
  line-height: 1.55;
  margin-left: auto;
  margin-right: auto;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;   /* ← number of lines */
  overflow: hidden;
}

.leaflet-login-gate {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: center;
}

.leaflet-login-gate p {
  margin-bottom: 12px;
}

.leaflet-prose {
  max-width: 1200px;
  margin: 0 auto 3rem;
}
/* ======================================================
   Leaflet media block — 60 / 40 layout
====================================================== */

.leaflet-media-grid {
  display: grid;
  grid-template-columns: 3fr 2fr; /* 60 / 40 */
  gap: 32px;
  align-items: start;
  margin: 2.5rem 0;
}

/* Text column */
.leaflet-media-text {
    padding-top: 6px;
  font-size: 1rem;
  line-height: 1.6;
}

/* Image / media column */
.leaflet-media-image,
.leaflet-media-video {
  width: 100%;
}

.leaflet-media-image img,
.leaflet-media-video video,
.leaflet-media-video iframe {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
@media (max-width: 900px) {
  .leaflet-media-grid {
    grid-template-columns: 1fr;
  }
}
.leaflet-media-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: #000;
}




.article-media {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0;
}

.article-media img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Polaroid variant */
.article-media--large img {
  max-width: 820px;          /* key constraint */
  background: #fdfcf8;
  padding: 12px;
  border: 1px solid #e2e2e2;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.12),
    0 1px 3px rgba(0,0,0,0.08);
  border-radius: 3px;
}

.article-media--small img {
  max-width: 320px;          /* key constraint */
  background: #fdfcf8;
  padding: 12px;
  border: 1px solid #e2e2e2;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.12),
    0 1px 3px rgba(0,0,0,0.08);
  border-radius: 3px;
}
.article-media--micro img {
  max-width: 220px;          /* key constraint */
  background: #fdfcf8;
  padding: 12px;
  border: 1px solid #e2e2e2;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.12),
    0 1px 3px rgba(0,0,0,0.08);
  border-radius: 3px;
}

.article-media--editorial img {
  max-width: 640px;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.article-media--editorial-large img {
  max-width: 740px;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.article-media--editorial-small img {
  max-width: 320px;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.article-split {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 2rem;
  margin: 2.5rem 0;
  align-items: start;
}

.article-split--reverse {
  grid-template-columns: 60% 40%;
}

.article-split--reverse .article-media {
  order: 2;
}

.article-split--reverse .article-text {
  order: 1;
}

/* Media styling */
.article-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* Text styling */
.article-text {
  font-size: 1rem;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .article-split,
  .article-split--reverse {
    grid-template-columns: 1fr;
  }

  .article-split--reverse .article-media,
  .article-split--reverse .article-text {
    order: initial;
  }
}
.article-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
  margin: 2.5rem 0;
}

.article-split--reverse {
  grid-template-columns: 1.4fr 1fr;
}
.article-split > * {
  margin: 0;
  max-width: none;
}

.article-split img {
  display: block;
  width: 100%;
  height: auto;
}
.article-media {
  margin: 0;
  align-self: start;
}

.single article, .single .article-content, .single .softpaper {
  padding-top: 1.4em !important;
}

.softsplit-col-media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
