/*
Theme Name: Post Local Vibe Stable Scenic Logo v4.2
Author: Post Local Vibe
Description: Restored clean editorial version of Post Local Vibe with stable responsive layout.
Version: 4.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: post-local-vibe
*/
:root{
 --plv-green:#1f5c47;--plv-green2:#123d2f;--plv-gold:#c99a45;
 --plv-cream:#f4f0e6;--plv-paper:#fffdf8;--plv-ink:#17231d;--plv-muted:#687269;
 --plv-line:#ddd6c8;--serif:Georgia,"Times New Roman",serif;--sans:Arial,Helvetica,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--plv-cream);color:var(--plv-ink);font-family:var(--sans);line-height:1.55}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.wrap{width:min(1120px,calc(100% - 32px));margin:0 auto}

/* hard reset against corrupted/debug styles */
body, .site, .site-main, .home, .content-area{background:var(--plv-cream)!important}
*::before,*::after{box-sizing:border-box}
body *{outline-color:transparent}
body *[style*="background: rgb(0, 255"],body *[style*="#00ff"],body *[style*="#7fff00"]{background:transparent!important}

.site-header{background:#fff;border-bottom:1px solid #ece7dc;position:sticky;top:0;z-index:30}
.header-inner{min-height:76px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px}
.brand img{width:165px;max-height:50px}
.primary-nav ul{list-style:none;margin:0;padding:0;display:flex;justify-content:center;gap:24px;align-items:center}
.primary-nav a{font-size:13px;font-weight:700;color:#2c4036}
.primary-nav a:hover,.current-menu-item>a{color:var(--plv-green)}
.header-search{display:flex;align-items:center;gap:8px}
.header-search input{width:190px;border:1px solid var(--plv-line);border-radius:999px;padding:10px 13px;background:#faf9f5}
.header-search button{border:0;border-radius:999px;background:var(--plv-green);color:#fff;padding:10px 14px;font-weight:700}
.menu-toggle{display:none}

/* featured strip */
.featured-section{padding:28px 0 22px;background:#f9f6ef}
.featured-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.feature-card{position:relative;overflow:hidden;border-radius:14px;min-height:280px;background:#222;box-shadow:0 10px 25px rgba(20,35,28,.08)}
.feature-card img{width:100%;height:280px;object-fit:cover}
.feature-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 38%,rgba(10,24,17,.84) 100%)}
.feature-copy{position:absolute;z-index:2;left:18px;right:18px;bottom:18px;color:#fff}
.feature-copy .cat{display:inline-block;padding:5px 9px;border-radius:999px;background:#426ae0;font-size:10px;font-weight:800}
.feature-copy h2{font:700 1.45rem/1.1 var(--serif);margin:9px 0 0;text-shadow:0 1px 2px rgba(0,0,0,.25)}

/* main feed */
.content-shell{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;padding:28px 0 50px}
.feed{display:grid;gap:18px}
.feed-card{display:grid;grid-template-columns:42% 58%;overflow:hidden;border:1px solid var(--plv-line);border-radius:14px;background:#fff;box-shadow:0 8px 20px rgba(20,35,28,.04)}
.feed-card:nth-child(even){grid-template-columns:42% 58%}
.feed-thumb{min-height:220px;background:#eae5da;overflow:hidden}
.feed-thumb img{width:100%;height:100%;min-height:220px;object-fit:cover}
.feed-body{padding:22px;display:flex;flex-direction:column;justify-content:center}
.kicker{margin:0 0 7px;color:#426ae0;font-size:10px;font-weight:800;text-transform:uppercase}
.feed-card h2{margin:0 0 10px;font:700 1.45rem/1.14 var(--serif)}
.excerpt{color:#626b63;font-size:13px;margin:0 0 14px}
.meta{font-size:11px;color:#8a918c}
.read-more{margin-top:10px;color:var(--plv-green);font-weight:700;font-size:12px}

/* sidebar */
.sidebar{display:grid;align-content:start;gap:18px}
.widget{border:1px solid var(--plv-line);border-radius:14px;background:#fff;padding:18px}
.widget h3{font:700 1.25rem var(--serif);margin:0 0 12px}
.widget ul{list-style:none;margin:0;padding:0}
.widget li{padding:9px 0;border-bottom:1px solid #eee9df;font-size:12px}
.widget li:last-child{border-bottom:0}
.widget a:hover{color:var(--plv-green)}

/* pagination */
.pagination{display:flex;justify-content:center;margin-top:24px}
.nav-links{display:flex;gap:8px}
.page-numbers{min-width:34px;height:34px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--plv-green);color:var(--plv-green);font-size:12px}
.page-numbers.current{background:var(--plv-green);color:#fff}

/* post */
.single-wrap{width:min(900px,calc(100% - 32px));margin:36px auto;background:#fff;border:1px solid var(--plv-line);border-radius:16px;padding:34px}
.single-title{font:700 clamp(2.4rem,5vw,4.6rem)/1 var(--serif);margin:0 0 16px}
.entry-content{font:17px/1.8 var(--serif)}
.entry-content a{color:var(--plv-green);text-decoration:underline}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}

/* footer */
.site-footer{background:#f8f5ed;border-top:1px solid var(--plv-line);margin-top:32px}
.footer-inner{padding:30px 0;display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:30px}
.footer-logo img{width:170px}
.footer-inner h3{font:700 1.15rem var(--serif);margin:0 0 10px}
.footer-inner ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.footer-bottom{border-top:1px solid var(--plv-line);padding:13px 0;color:#737b74;font-size:11px}

@media(max-width:900px){
 .header-inner{grid-template-columns:auto auto}.menu-toggle{display:block;justify-self:end;border:0;background:#eef4ef;border-radius:10px;padding:10px 12px}
 .primary-nav,.header-search{display:none}
 .primary-nav.open{display:block;grid-column:1/-1}.primary-nav.open ul{display:grid;gap:10px;padding:14px 0}
 .featured-grid{grid-template-columns:1fr 1fr}.feature-card:first-child{grid-column:1/-1}
 .content-shell{grid-template-columns:1fr}.sidebar{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
 .featured-grid,.sidebar,.footer-inner{grid-template-columns:1fr}
 .feed-card,.feed-card:nth-child(even){grid-template-columns:1fr}
 .feed-thumb img{min-height:240px}
 .feature-card img{height:250px}
}


/* v3.1 custom uploaded logo */
.brand img{
  width: clamp(220px, 24vw, 360px);
  max-height: 74px;
  object-fit: contain;
}
.footer-logo img{
  width: clamp(220px, 22vw, 340px);
  max-height: 82px;
  object-fit: contain;
}
@media(max-width:900px){
  .brand img{width:240px;max-height:64px}
}
@media(max-width:620px){
  .brand img{width:200px;max-height:56px}
  .footer-logo img{width:220px;max-height:64px}
}


/* =========================================================
   v3.2 Stability hardening
   - Scoped visual system to reduce plugin/core CSS collisions
   - No debug backgrounds/outlines
   - WordPress block editor content compatibility
   ========================================================= */
body.plv-stable-theme{
  background:var(--plv-cream)!important;
  color:var(--plv-ink);
  overflow-x:hidden;
}
body.plv-stable-theme .site-header,
body.plv-stable-theme .site-main,
body.plv-stable-theme .featured-section,
body.plv-stable-theme .content-shell,
body.plv-stable-theme .site-footer{
  max-width:none;
}
body.plv-stable-theme img{
  max-width:100%;
  height:auto;
}
body.plv-stable-theme .wp-site-blocks,
body.plv-stable-theme .wp-block-group,
body.plv-stable-theme .wp-block-post-content{
  max-width:100%;
}
body.plv-stable-theme .entry-content .alignwide{
  width:min(1100px,calc(100vw - 32px));
  max-width:none;
  margin-left:50%;
  transform:translateX(-50%);
}
body.plv-stable-theme .entry-content .alignfull{
  width:100vw;
  max-width:none;
  margin-left:50%;
  transform:translateX(-50%);
}
body.plv-stable-theme .entry-content figure,
body.plv-stable-theme .entry-content table,
body.plv-stable-theme .entry-content iframe{
  max-width:100%;
}
body.plv-stable-theme .entry-content table{
  width:100%;
  border-collapse:collapse;
}
body.plv-stable-theme .entry-content th,
body.plv-stable-theme .entry-content td{
  border:1px solid #e4ded1;
  padding:10px 12px;
}
body.plv-stable-theme .entry-content blockquote{
  margin:26px 0;
  padding:18px 22px;
  border-left:4px solid var(--plv-green);
  background:#f6f3eb;
}
body.plv-stable-theme .screen-reader-text{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}
body.plv-stable-theme :focus-visible{
  outline:2px solid var(--plv-green);
  outline-offset:3px;
}

/* neutralize common accidental debug helpers without affecting admin */
body.plv-stable-theme .debug,
body.plv-stable-theme [class*="debug-box"],
body.plv-stable-theme [class*="layout-debug"]{
  outline:0!important;
  box-shadow:none!important;
  background-image:none!important;
}

/* wp admin bar safe sticky offset */
body.admin-bar.plv-stable-theme .site-header{top:32px}
@media(max-width:782px){
  body.admin-bar.plv-stable-theme .site-header{top:46px}
}


/* =========================================================
   v3.3 — Scenic Post Local Vibe logo in header and footer
   ========================================================= */
.brand img{
  width: clamp(240px, 28vw, 390px);
  max-height: 84px;
  object-fit: contain;
  object-position: left center;
}

.footer-logo img{
  width: clamp(210px, 25vw, 340px);
  max-height: 88px;
  object-fit: contain;
  object-position: left center;
}

.header-inner{
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  min-height: 88px;
}

.primary-nav ul{
  gap: 18px;
}

.primary-nav a{
  font-size: 12px;
}

@media(max-width:900px){
  .brand img{
    width: 250px;
    max-height: 68px;
  }
}

@media(max-width:620px){
  .brand img{
    width: 210px;
    max-height: 56px;
  }
  .footer-logo img{
    width: 220px;
    max-height: 64px;
  }
}


/* =========================================================
   v3.5 — Internal links + Related/Internal posts
   ========================================================= */
.entry-content a.plv-internal-link{
  color:var(--plv-green);
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}
.entry-content a.plv-external-link{
  color:#b05d2f;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}
.entry-content a.plv-external-link::after{
  content:" ↗";
  font-size:.78em;
}

.plv-inline-related{
  margin:26px 0;
  padding:16px 18px;
  border-left:4px solid var(--plv-green);
  border-radius:10px;
  background:#f3f7f4;
  font-family:var(--sans);
}
.plv-inline-related small{
  display:block;
  margin-bottom:5px;
  color:var(--plv-muted);
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.plv-inline-related a{
  color:var(--plv-green)!important;
  font-weight:800;
  text-decoration:none!important;
}

.plv-related{
  width:min(100%,1000px);
  margin:46px auto 0;
  padding-top:30px;
  border-top:2px solid var(--plv-line);
}
.plv-related-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.plv-related-head h2{
  margin:0;
  font:700 2.1rem/1 var(--serif);
  color:var(--plv-green2);
}
.plv-related-head p{
  margin:0;
  color:var(--plv-muted);
  font-size:12px;
}
.plv-related-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.plv-related-card{
  overflow:hidden;
  border:1px solid var(--plv-line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 20px rgba(20,35,28,.04);
}
.plv-related-thumb{
  display:block;
  aspect-ratio:1.45/1;
  overflow:hidden;
  background:#ece8de;
}
.plv-related-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.plv-related-body{
  padding:15px 16px 17px;
}
.plv-related-body .kicker{
  margin-bottom:6px;
}
.plv-related-body h3{
  margin:0 0 8px;
  font:700 1.15rem/1.16 var(--serif);
}
.plv-related-body .meta{
  margin-top:8px;
}

@media(max-width:760px){
  .plv-related-grid{grid-template-columns:1fr}
}


/* =========================================================
   v3.6 — Remove Recent Posts / Categories sidebar from body
   ========================================================= */
.content-shell{
  grid-template-columns:minmax(0,1fr)!important;
  max-width:1120px;
}

.feed{
  width:100%;
}

.sidebar{
  display:none!important;
}

/* Wider story feed now that the sidebar is removed */
.feed-card{
  grid-template-columns:34% 66%;
}

.feed-thumb{
  min-height:250px;
}

.feed-thumb img{
  min-height:250px;
}

@media(max-width:760px){
  .feed-card,
  .feed-card:nth-child(even){
    grid-template-columns:1fr;
  }
}


/* =========================================================
   v3.7 — Fix featured-card overlap issue
   ========================================================= */
.featured-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.feature-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:0;
  overflow:hidden;
  border:1px solid var(--plv-line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 25px rgba(20,35,28,.05);
}

.feature-card::after{
  display:none !important;
  content:none !important;
}

.feature-media{
  display:block;
  overflow:hidden;
  background:#eae5da;
}

.feature-media img{
  width:100%;
  height:220px;
  min-height:220px;
  object-fit:cover;
}

.feature-copy{
  position:static !important;
  left:auto;
  right:auto;
  bottom:auto;
  z-index:auto;
  padding:16px 18px 18px;
  color:var(--plv-ink);
  background:#fff;
}

.feature-copy .cat{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  background:#edf3ff;
  color:#426ae0;
  font-size:10px;
  font-weight:800;
  letter-spacing:.02em;
}

.feature-copy h2{
  margin:12px 0 0;
  color:var(--plv-green2);
  text-shadow:none;
  font:700 1.36rem/1.16 var(--serif);
  word-break:normal;
  overflow-wrap:anywhere;
}

.feature-copy h2 a{
  color:inherit;
  text-decoration:none;
}

@media(max-width:900px){
  .featured-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:620px){
  .featured-grid{
    grid-template-columns:1fr;
  }
  .feature-media img{
    height:230px;
    min-height:230px;
  }
  .feature-copy h2{
    font-size:1.26rem;
    line-height:1.2;
  }
}


/* =========================================================
   v3.8 — More homepage imagery + premium modern footer
   ========================================================= */

/* Image-rich topic section */
.plv-topic-section{
  padding:30px 0 8px;
  background:#f7f3ea;
}
.plv-section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:16px;
}
.plv-section-head h2{
  margin:0;
  font:700 clamp(1.9rem,3.5vw,2.8rem)/1 var(--serif);
  color:var(--plv-green2);
}
.plv-section-head p{
  margin:0;
  color:var(--plv-muted);
  font-size:12px;
}
.plv-topic-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
}
.plv-topic-card{
  position:relative;
  overflow:hidden;
  min-height:150px;
  border-radius:14px;
  background:#29483a;
  color:#fff;
  box-shadow:0 10px 22px rgba(20,35,28,.05);
}
.plv-topic-card img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s ease;
}
.plv-topic-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(12,28,20,.04) 18%,rgba(11,29,20,.86) 100%);
}
.plv-topic-card:hover img{
  transform:scale(1.04);
}
.plv-topic-card span{
  position:absolute;
  z-index:2;
  left:14px;
  right:14px;
  bottom:13px;
  font:700 1rem/1.1 var(--serif);
}
.plv-topic-card small{
  display:block;
  margin-top:4px;
  color:#eef5f0;
  font:500 10px/1.2 var(--sans);
}

/* Extra visual story cards */
.plv-more-visual{
  padding:10px 0 46px;
}
.plv-visual-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.plv-visual-card{
  overflow:hidden;
  border:1px solid var(--plv-line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 22px rgba(20,35,28,.04);
}
.plv-visual-media{
  display:block;
  aspect-ratio:1.55/1;
  overflow:hidden;
  background:#ebe7de;
}
.plv-visual-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s ease;
}
.plv-visual-card:hover .plv-visual-media img{
  transform:scale(1.035);
}
.plv-visual-body{
  padding:14px 15px 16px;
}
.plv-visual-body .kicker{
  margin-bottom:6px;
}
.plv-visual-body h3{
  margin:0 0 7px;
  font:700 1.08rem/1.16 var(--serif);
  color:var(--plv-green2);
}
.plv-visual-body .meta{
  font-size:10px;
}

/* Modern footer */
.site-footer{
  margin-top:54px;
  border-top:0;
  background:
    radial-gradient(circle at 7% 0%,rgba(31,92,71,.08),transparent 28%),
    radial-gradient(circle at 92% 10%,rgba(201,154,69,.10),transparent 24%),
    linear-gradient(180deg,#f7f4ec 0%,#eef3ee 100%);
  color:var(--plv-ink);
}
.plv-footer-shell{
  display:grid;
  grid-template-columns:1.3fr .8fr .8fr;
  gap:20px;
  padding:42px 0 30px;
}
.plv-footer-card{
  border:1px solid rgba(31,92,71,.11);
  border-radius:22px;
  background:rgba(255,255,255,.78);
  box-shadow:0 16px 38px rgba(20,35,28,.05);
}
.plv-footer-brand{
  padding:25px;
  position:relative;
  overflow:hidden;
}
.plv-footer-brand::after{
  content:"";
  position:absolute;
  width:170px;
  height:170px;
  right:-70px;
  top:-80px;
  border-radius:50%;
  background:rgba(31,92,71,.05);
}
.plv-footer-brand img{
  position:relative;
  z-index:2;
  width:min(100%,330px);
  max-height:84px;
  object-fit:contain;
  object-position:left center;
  margin-bottom:13px;
}
.plv-footer-brand p{
  position:relative;
  z-index:2;
  margin:0;
  max-width:520px;
  color:#5f6a62;
  font-size:13px;
  line-height:1.75;
}
.plv-footer-actions{
  position:relative;
  z-index:2;
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  margin-top:18px;
}
.plv-footer-btn{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 15px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}
.plv-footer-btn.primary{
  background:var(--plv-green);
  color:#fff;
}
.plv-footer-btn.secondary{
  background:#fff;
  color:var(--plv-green);
  border:1px solid rgba(31,92,71,.15);
}
.plv-footer-links{
  padding:23px 22px 18px;
}
.plv-footer-kicker{
  display:block;
  margin-bottom:5px;
  color:#879288;
  font-size:9px;
  letter-spacing:.15em;
  font-weight:800;
  text-transform:uppercase;
}
.plv-footer-links h3{
  margin:0 0 12px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(31,92,71,.09);
  font:700 1.5rem/1 var(--serif);
  color:var(--plv-green2);
}
.plv-footer-links ul{
  list-style:none;
  margin:0;
  padding:0;
}
.plv-footer-links li{
  border-bottom:1px solid rgba(31,92,71,.07);
}
.plv-footer-links li:last-child{
  border-bottom:0;
}
.plv-footer-links a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 0;
  color:#405047;
  font-size:12px;
}
.plv-footer-links a::after{
  content:"→";
  color:#9aa49d;
  transition:transform .18s ease;
}
.plv-footer-links a:hover{
  color:var(--plv-green);
}
.plv-footer-links a:hover::after{
  transform:translateX(3px);
}
.plv-footer-bottom{
  border-top:1px solid rgba(31,92,71,.09);
  background:rgba(255,255,255,.42);
}
.plv-footer-bottom-inner{
  min-height:62px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  color:#737c75;
  font-size:10px;
}
.plv-footer-legal{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}
.plv-footer-legal a{
  color:#5f6d64;
}

@media(max-width:1000px){
  .plv-topic-grid{grid-template-columns:repeat(3,1fr)}
  .plv-visual-grid{grid-template-columns:repeat(2,1fr)}
  .plv-footer-shell{grid-template-columns:1fr 1fr}
  .plv-footer-brand{grid-column:1/-1}
}
@media(max-width:620px){
  .plv-section-head{align-items:flex-start;flex-direction:column}
  .plv-topic-grid,.plv-visual-grid,.plv-footer-shell{grid-template-columns:1fr}
  .plv-footer-brand{grid-column:auto}
  .plv-footer-bottom-inner{align-items:flex-start;flex-direction:column;padding:14px 0}
}


/* =========================================================
   v3.9 — Ensure images show on single post pages
   ========================================================= */
.single-hero-media{
  margin:24px 0 26px;
  border-radius:16px;
  overflow:hidden;
  background:#ebe7de;
  box-shadow:0 10px 26px rgba(20,35,28,.05);
}
.single-hero-media img{
  width:100%;
  height:auto;
  min-height:320px;
  max-height:520px;
  object-fit:cover;
}

.plv-inline-content-image{
  margin:26px 0;
  border-radius:14px;
  overflow:hidden;
  background:#ebe7de;
  box-shadow:0 8px 22px rgba(20,35,28,.04);
}
.plv-inline-content-image img{
  width:100%;
  height:auto;
  min-height:250px;
  max-height:430px;
  object-fit:cover;
}

@media(max-width:620px){
  .single-hero-media img{
    min-height:220px;
    max-height:360px;
  }
  .plv-inline-content-image img{
    min-height:180px;
    max-height:300px;
  }
}


/* =========================================================
   v4.0 — Clear single-post images + large main homepage photo
   ========================================================= */

/* Homepage featured area: one large main photo + two supporting cards */
.featured-grid{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(260px,.85fr);
  grid-template-rows:1fr 1fr;
  gap:16px;
}

.featured-grid .feature-card:first-child{
  grid-column:1;
  grid-row:1 / 3;
}

.featured-grid .feature-card:nth-child(2){
  grid-column:2;
  grid-row:1;
}

.featured-grid .feature-card:nth-child(3){
  grid-column:2;
  grid-row:2;
}

.featured-grid .feature-card:first-child .feature-media img{
  height:420px;
  min-height:420px;
}

.featured-grid .feature-card:first-child .feature-copy{
  padding:20px 22px 23px;
}

.featured-grid .feature-card:first-child .feature-copy h2{
  font-size:1.7rem;
  line-height:1.12;
}

.featured-grid .feature-card:nth-child(2) .feature-media img,
.featured-grid .feature-card:nth-child(3) .feature-media img{
  height:170px;
  min-height:170px;
}

.featured-grid .feature-card:nth-child(2) .feature-copy,
.featured-grid .feature-card:nth-child(3) .feature-copy{
  padding:13px 15px 15px;
}

.featured-grid .feature-card:nth-child(2) .feature-copy h2,
.featured-grid .feature-card:nth-child(3) .feature-copy h2{
  font-size:1.08rem;
}

/* Clearer article imagery */
.single-hero-media{
  background:#fff;
}

.single-hero-media img,
.plv-inline-content-image img{
  image-rendering:auto;
  filter:none!important;
  opacity:1!important;
}

.single-hero-media img{
  min-height:0;
  max-height:560px;
  object-fit:cover;
}

.plv-inline-content-image img{
  min-height:0;
  max-height:460px;
  object-fit:cover;
}

@media(max-width:900px){
  .featured-grid{
    grid-template-columns:1fr 1fr;
    grid-template-rows:auto auto;
  }
  .featured-grid .feature-card:first-child{
    grid-column:1 / -1;
    grid-row:auto;
  }
  .featured-grid .feature-card:nth-child(2),
  .featured-grid .feature-card:nth-child(3){
    grid-column:auto;
    grid-row:auto;
  }
  .featured-grid .feature-card:first-child .feature-media img{
    height:360px;
    min-height:360px;
  }
}

@media(max-width:620px){
  .featured-grid{
    grid-template-columns:1fr;
  }
  .featured-grid .feature-card:first-child,
  .featured-grid .feature-card:nth-child(2),
  .featured-grid .feature-card:nth-child(3){
    grid-column:auto;
    grid-row:auto;
  }
  .featured-grid .feature-card:first-child .feature-media img,
  .featured-grid .feature-card:nth-child(2) .feature-media img,
  .featured-grid .feature-card:nth-child(3) .feature-media img{
    height:240px;
    min-height:240px;
  }
}


/* =========================================================
   v4.1 — True sharp-image fix
   ========================================================= */
.single-hero-media img,
.plv-inline-content-image img,
.feature-media img{
  filter:none!important;
  backdrop-filter:none!important;
  transform:none!important;
  image-rendering:auto!important;
  opacity:1!important;
}

/* Do not force tiny images to stretch beyond their natural size. */
.single-hero-media{
  text-align:center;
  background:#fff;
}

.single-hero-media img{
  width:auto!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0 auto;
  object-fit:contain!important;
}

.plv-inline-content-image{
  text-align:center;
  background:#fff;
}

.plv-inline-content-image img{
  width:auto!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0 auto;
  object-fit:contain!important;
}

/* Homepage lead card gets the sharp image at natural quality. */
.featured-grid .feature-card:first-child .feature-media{
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.featured-grid .feature-card:first-child .feature-media img{
  width:100%;
  height:auto!important;
  min-height:0!important;
  max-height:430px;
  object-fit:cover;
  object-position:center;
}


/* =========================================================
   v4.2 — Single post: only one main image
   ========================================================= */
.plv-inline-content-image{
  display:none!important;
}
