/* Blog image treatment: scoped to journal index and single articles. */
.nf-editorial-site.single-post .nf-article-v1-image,
.nf-editorial-site.single-post .nf-article-v1-angle-grid figure {
  background: transparent;
  overflow: visible;
}
.nf-editorial-site.single-post .nf-article-v1-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-block: 40px !important;
}
.nf-editorial-site.single-post .nf-article-v1-image img,
.nf-editorial-site.single-post .nf-article-v1-angle-grid img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 620px;
  margin-inline: auto;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 3px 14px rgb(61 43 34 / 6%);
}
.nf-editorial-site.single-post .nf-article-v1-image > a { max-width: 100%; }
.nf-editorial-site.single-post .nf-article-v1-image figcaption,
.nf-editorial-site.single-post .nf-article-v1-angle-grid figcaption {
  background: transparent;
  max-width: 54ch;
  margin: 12px auto 0;
  padding: 0 8px;
  color: var(--nf-text-2);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}
.nf-editorial-site.single-post .nf-journal-hero .nf-journal-image img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 420px;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgb(61 43 34 / 6%);
}
.nf-editorial-site.page-id-7 .nf-reading-card-image { background: transparent; overflow: visible; }
.nf-editorial-site.page-id-7 .nf-reading-card-image > a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 220px;
}
.nf-editorial-site.page-id-7 .nf-reading-card-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 220px;
  border-radius: 12px;
  object-fit: contain !important;
  box-shadow: 0 3px 14px rgb(61 43 34 / 6%);
}
@media (max-width: 782px) {
  .nf-editorial-site.single-post .nf-journal-hero .nf-journal-image img { max-height: 280px; }
  .nf-editorial-site.single-post .nf-article-v1-image { margin-block: 30px !important; }
  .nf-editorial-site.single-post .nf-article-v1-image img,
  .nf-editorial-site.single-post .nf-article-v1-angle-grid img,
  .nf-editorial-site.single-post .nf-journal-hero .nf-journal-image img,
  .nf-editorial-site.page-id-7 .nf-reading-card-image img { border-radius: 9px; }
  .nf-editorial-site.page-id-7 .nf-reading-card-image > a { height: 140px; }
  .nf-editorial-site.page-id-7 .nf-reading-card-image img { max-height: 140px; }
  .nf-editorial-site.page-id-7 .nf-reading-journal-grid > li:first-child .nf-reading-card-image > a { height: 300px; }
  .nf-editorial-site.page-id-7 .nf-reading-journal-grid > li:first-child .nf-reading-card-image img { max-height: 300px; }
}

.nf-editorial-site.page-id-7 .nf-reading-post-card { border-radius: 14px; overflow: hidden; }
.nf-editorial-site.page-id-7 .nf-reading-card-image { padding: 16px 16px 0; height: 256px; }
.nf-editorial-site.page-id-7 .nf-reading-card-image img { background: transparent; }
.nf-editorial-site.page-id-7 .nf-reading-journal-grid > li:first-child .nf-reading-card-image > a { height: 100%; min-height: 328px; }
.nf-editorial-site.page-id-7 .nf-reading-journal-grid > li:first-child .nf-reading-card-image img { max-height: 328px; }
@media(max-width:782px){.nf-editorial-site.page-id-7 .nf-reading-card-image{height:180px;padding:12px 12px 0}.nf-editorial-site.page-id-7 .nf-reading-journal-grid > li:first-child .nf-reading-card-image > a{min-height:0;height:256px}.nf-editorial-site.page-id-7 .nf-reading-journal-grid > li:first-child .nf-reading-card-image img{max-height:256px}}

.nf-editorial-site.page-id-7 .nf-reading-card-image img { width:auto!important;height:auto!important;aspect-ratio:auto!important;flex:none; }

/* Related reading is a set of article recommendations, not a product gallery. */
.nf-editorial-site.single-post .nf-reading-related {
  background: var(--nf-bg);
  border-top: 1px solid var(--nf-line);
  padding-block: 38px 48px;
}
.nf-editorial-site.single-post .nf-reading-related-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  grid-auto-flow: row;
  gap: 18px;
  overflow: visible;
}
.nf-editorial-site.single-post .nf-reading-related .nf-reading-post-card {
  display: grid;
  grid-template-columns: 88px minmax(0,1fr);
  align-items: start;
  gap: 16px;
  padding: 18px;
  border: 0;
  border-radius: 14px;
  background: var(--nf-bg-2);
}
.nf-editorial-site.single-post .nf-reading-related .nf-reading-card-image {
  height: auto;
  background: transparent;
  overflow: visible;
}
.nf-editorial-site.single-post .nf-reading-related .nf-reading-card-image a {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: auto;
}
.nf-editorial-site.single-post .nf-reading-related .nf-reading-card-image img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 160px;
  aspect-ratio: auto !important;
  border-radius: 9px;
  object-fit: contain !important;
}
.nf-editorial-site.single-post .nf-reading-related .nf-reading-card-copy {
  padding: 0;
  align-self: stretch;
}
.nf-editorial-site.single-post .nf-reading-related .nf-reading-card-copy h3 {
  font-size: 22px !important;
  line-height: 1.4 !important;
  margin-bottom: 12px !important;
}
.nf-editorial-site.single-post .nf-reading-related .nf-reading-card-copy .nf-reading-meta {
  font-size: 8px !important;
  letter-spacing: .05em;
  margin-bottom: 8px !important;
}
.nf-editorial-site.single-post .nf-reading-related .nf-reading-text-link {
  border-top: 0;
  padding-top: 0;
  min-height: 32px;
}
@media(max-width:1024px) {
  .nf-editorial-site.single-post .nf-reading-related-grid {
    grid-template-columns: 1fr !important;
    grid-auto-columns: auto;
    padding: 0 !important;
    gap: 14px;
  }
  .nf-editorial-site.single-post .nf-reading-related .nf-reading-post-card {
    grid-template-columns: 84px minmax(0,1fr);
    padding: 16px;
  }
  .nf-editorial-site.single-post .nf-reading-related .nf-reading-card-copy h3 {
    font-size: 19px !important;
  }
}

/* Compact desktop recommendations; preserve the accepted mobile rows. */
@media(min-width:1025px) {
  .nf-editorial-site.single-post .nf-reading-related .nf-reading-post-card {
    grid-template-columns: 70px minmax(0,1fr);
    padding: 16px;
  }
  .nf-editorial-site.single-post .nf-reading-related .nf-reading-card-image img {
    max-height: 128px;
  }
}




/* Place a portrait beside its existing explanatory paragraph. */
.nf-editorial-site.single-post .entry-content .nf-inline-reference{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:28px;align-items:start;margin-block:20px;clear:both}
.nf-editorial-site.single-post .entry-content .nf-inline-copy>p{margin:0 0 16px!important}
.nf-editorial-site.single-post .entry-content .nf-inline-copy>p:last-child{margin-bottom:0!important}
.nf-editorial-site.single-post .entry-content .nf-inline-reference>figure:has(img[data-photo-key]){margin:0!important}
.nf-editorial-site.single-post .entry-content .nf-inline-reference>p{margin:0!important}
.nf-editorial-site.single-post .entry-content .nf-inline-reference>figure{margin:0!important;min-width:0}
.nf-editorial-site.single-post .entry-content .nf-inline-reference img[data-photo-key]{max-height:var(--reference-height,260px)!important;aspect-ratio:auto!important}
.nf-editorial-site.single-post .entry-content .nf-article-v1-angle-grid img[data-photo-key]{width:auto!important;height:auto!important;aspect-ratio:auto!important;max-width:100%!important;max-height:320px!important}
@media(max-width:640px){.nf-editorial-site.single-post .entry-content .nf-inline-reference{grid-template-columns:1fr;gap:18px;margin-block:24px}.nf-editorial-site.single-post .entry-content .nf-inline-reference img[data-photo-key]{max-height:300px!important}}
/* Inline model references support the article rather than occupying a full screen. */
.nf-editorial-site.single-post .entry-content figure:has(img[data-photo-key]){margin-block:24px!important}
.nf-editorial-site.single-post .entry-content img[data-photo-key]{max-height:400px!important;width:auto!important;height:auto!important;max-width:100%!important;object-fit:contain!important}
.nf-editorial-site.single-post .entry-content figure:has(img[data-photo-key]) figcaption{max-width:42ch!important;margin-top:10px!important}
@media(max-width:782px){.nf-editorial-site.single-post .entry-content img[data-photo-key]{max-height:320px!important}.nf-editorial-site.single-post .entry-content figure:has(img[data-photo-key]){margin-block:20px!important}}
/* Editorial covers retain their full landscape composition. */
.nf-editorial-site.single-post .nf-journal-hero .nf-journal-image img[data-editorial-cover]{width:100%!important;height:auto!important;max-width:100%!important;max-height:none!important;aspect-ratio:3/2!important;object-fit:contain!important;background:transparent;display:block}
.nf-editorial-site.single-post .nf-journal-image:has(img[data-editorial-cover]){display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:0;overflow:visible!important;background:transparent!important}
.nf-editorial-caption{font:12px/1.65 Inter,Arial,sans-serif;color:#736455;margin:12px 0 0;text-align:center;padding:0 8px}
.nf-editorial-site.page-id-7 .nf-reading-card-image{height:auto!important;padding:16px 16px 0}
.nf-editorial-site.page-id-7 .nf-reading-card-image>a,.nf-editorial-site.page-id-7 .nf-reading-journal-grid>li:first-child .nf-reading-card-image>a{height:auto!important;min-height:0!important;aspect-ratio:3/2;display:flex;align-items:center}
.nf-editorial-site.page-id-7 .nf-reading-card-image img[data-editorial-cover]{width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:3/2!important;object-fit:contain!important}
.nf-editorial-site.single-post .nf-reading-related .nf-reading-post-card{grid-template-columns:100px minmax(0,1fr)!important;align-items:center;padding:16px;gap:16px}
.nf-editorial-site.single-post .nf-reading-related .nf-reading-card-image img[data-editorial-cover]{width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:3/2!important;object-fit:contain!important}
.nf-editorial-site.single-post .nf-reading-related .nf-reading-card-copy h3{font-size:21px!important;line-height:1.35!important;margin-bottom:8px!important}
.nf-editorial-site.single-post .nf-reading-related .nf-reading-card-copy .nf-reading-meta{margin-bottom:6px!important}
.nf-editorial-site.single-post .nf-reading-related .nf-reading-text-link{margin-top:8px!important;min-height:24px}
@media(max-width:782px){.nf-editorial-site.single-post .nf-reading-related .nf-reading-post-card{grid-template-columns:84px minmax(0,1fr)!important;padding:14px;gap:14px}.nf-editorial-site.single-post .nf-reading-related .nf-reading-card-copy h3{font-size:18px!important}}

/* Native columns retain the reviewed reading layout. */
.nf-editorial-site.single-post .entry-content .nf-inline-reference {flex-wrap:nowrap!important}
.nf-editorial-site.single-post .nf-inline-reference>.nf-inline-copy{min-width:0;margin:0!important}
.nf-editorial-site.single-post .nf-inline-reference>.nf-inline-photo{min-width:0;margin:0!important}
.nf-editorial-site.single-post .entry-content .nf-inline-photo figure.nf-blog-model{margin:0!important}
.nf-reference-short{--reference-height:165px}.nf-reference-medium{--reference-height:235px}.nf-reference-long{--reference-height:300px}
@media(max-width:640px){.nf-editorial-site.single-post .entry-content .nf-inline-reference{display:grid!important}.nf-inline-reference>.wp-block-column{flex-basis:auto!important}}
.nf-photo-open:focus-visible,.nf-photo-viewer button:focus-visible,.nf-photo-viewer a:focus-visible{outline:2px solid var(--nf-gold-deep,#73572c);outline-offset:3px}
.nf-editorial-site.single-post .nf-journal-hero .nf-journal-image:has(img[data-editorial-cover]){height:auto!important;align-self:center}
.nf-editorial-site.single-post .nf-journal-hero .nf-journal-image{border:0!important;padding:0!important;background:transparent!important}
@media(min-width:1025px){.nf-editorial-site.single-post .nf-journal-hero:has(img[data-editorial-cover]){padding-block:44px}}
