/* Journal index — orientation-aware featured-image previews.
 * Three variants share one component. They use original WordPress attachment
 * dimensions, not JS, fixed crops or editor-specific template selections.
 * This file deliberately does not style single posts. */
.journal > .journal-orientation-entry {
  --lf-journal-media-column: 48%;
  --lf-journal-column-gap: max(clamp(26px, 3vw, 48px), var(--lf-news-image-text-target-gap, 5rem));
  /* The reference is the portrait card's former centered 680px copy region.
   * All image ratios use one text origin; only the right media width changes.
   * With a 30px page padding and 80px gap, its margin is 31.25vw - 399px.
   * Keep the inset nonnegative so narrow desktop widths remain usable. */
  --lf-journal-copy-inset: max(0px, calc(31.25vw - 399px));
}
.journal > .journal-orientation--landscape {
  --lf-journal-media-column: 62.5%;
}
.journal > .journal-orientation--portrait {
  --lf-journal-media-column: 37.5%;
}
.journal > .journal-orientation-entry .journal-orientation-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--lf-journal-media-column));
  align-items: center;
  column-gap: var(--lf-journal-column-gap);
}
.journal-orientation-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding-inline-start: var(--lf-journal-copy-inset);
}
.journal-orientation-heading {
  width: 100%;
}
.journal > .journal-orientation-entry .post-title {
  max-width: none;
  margin: var(--lf-bp-news-list-title-space-top, 0px) 0 var(--lf-bp-news-list-title-space-bottom, 0px);
}
.journal > .journal-orientation-entry .post-title a {
  color: inherit;
  text-decoration: none;
}
.journal-orientation-summary {
  width: 100%;
  margin: 20px 0 0;
  padding: 0;
}
.journal > .journal-orientation-entry .journal-post-summary .entry-subtitle {
  max-width: none;
  margin: 0;
  text-align: var(--lf-news-text-align, left);
  text-align-last: var(--lf-news-text-last-align, left);
  /* News-list subtitle typography belongs to the journal component; this
   * must not affect the visually separate News single view. */
  font-weight: var(--lf-bp-news-list-subtitle-font-weight, inherit) !important;
  font-style: var(--lf-bp-news-list-subtitle-font-style, inherit);
  text-transform: var(--lf-bp-news-list-subtitle-text-transform, inherit);
}
.journal > .journal-orientation-entry .journal-post-summary .entry-learn-more {
  margin-top: var(--lf-bp-news-list-more-space-top, 28px);
}
.journal-orientation-media {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  margin: 0;
}
/* The image and its credit share the exact width. The intrinsic-width cap and
 * 82svh aspect-ratio cap reproduce the previous image sizing, including small
 * source images and very tall portraits. No fixed widths or JS measurement. */
.journal-orientation-media-inner {
  min-width: 0;
  max-width: 100%;
  width: min(100%, var(--lf-journal-image-native-width, 100%), calc(82svh * var(--lf-journal-image-ratio, 1)));
}
.journal-orientation-media .journal-image-link {
  display: block;
  width: 100%;
}
.journal-orientation-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
/* Component owner: journal thumbnail copyright, scoped to list view only.
 * The values below are the existing credit defaults until explicitly changed. */
.journal .journal-entry .featured-image-credit {
  font-size: var(--lf-bp-news-list-credits-font-size, var(--type-caption, 0.6875rem));
  font-weight: var(--lf-bp-news-list-credits-font-weight, inherit);
  letter-spacing: var(--lf-bp-news-list-credits-letter-spacing, inherit);
  line-height: var(--lf-bp-news-list-credits-line-height, 1.45);
  text-transform: var(--lf-bp-news-list-credits-text-transform, inherit);
  font-style: var(--lf-bp-news-list-credits-font-style, inherit);
  margin-top: var(--lf-bp-news-list-credits-space-top, 8px);
  margin-bottom: var(--lf-bp-news-list-credits-space-bottom, 0px);
}
@media (max-width: 900px) {
  .journal > .journal-orientation-entry .journal-orientation-layout {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }
  .journal-orientation-media {
    grid-row: 1;
  }
  .journal-orientation-copy {
    grid-row: 2;
    width: 100%;
    padding-inline-start: 0;
  }
  .journal-orientation-media-inner {
    width: min(100%, var(--lf-journal-image-native-width, 100%));
  }
  .journal-orientation-summary {
    margin-top: 18px;
  }
}
