.envira-gallery-image img {
  border: 1px solid #ddd;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  border-radius: 4px;
}.centered-text {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  line-height: 1.7;
  font-size: 1.1rem;
}
.centered-text p {
  margin-bottom: 1.5rem;
}.wp-block-navigation a {
  font-weight: 700;
}
.natgeo-post {
  font-family: 'Source Sans Pro', sans-serif;
  color: #222;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.8;
}
.natgeo-post h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}
.natgeo-post .intro {
  font-size: 1.25rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.natgeo-post p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}
.natgeo-post blockquote {
  border-left: 4px solid #FFD700;
  padding-left: 1rem;
  font-style: italic;
  color: #555;
  margin: 2rem 0;
}
.natgeo-post img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-bottom: 2px solid #FFD700;
}
.natgeo-post figcaption {
  font-style: italic;
  font-size: 0.875rem;
  color: #777;
  margin-top: -1rem;
  margin-bottom: 2rem;
}/* Style for featured image with gold underline */
.wp-block-post-featured-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-bottom: 3px solid #FFD700; /* National Geographic gold */
  margin-bottom: 2rem;
}
.wp-block-post-featured-image img {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Side-by-side image styling */
.natgeo-sidepair {
  gap: 1rem;
  margin: 2rem 0;
}

.natgeo-sidepair .wp-block-image img {
  border-bottom: 3px solid #FFD700;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.natgeo-byline {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-family: 'Source Sans Pro', sans-serif;
}

.natgeo-byline p {
  margin: 0.25rem 0;
}

.natgeo-byline strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  color: #111;
}

.byline-sub {
  color: #777;
  font-size: 0.875rem;
  font-style: italic;
}
.wp-caption {
  text-align: center;
}

.wp-caption-text {
  text-align: center;
}
/* Nat Geo–inspired call-to-action */
a.wp-block-button__link.natgeo-cta {
  background: #111;                 /* deep black */
  color: #fff;                      /* readable text */
  border: 3px solid #FFC600;        /* Nat Geo yellow */
  padding: 14px 22px;               /* roomy tap target */
  text-transform: uppercase;        /* magazine feel */
  letter-spacing: 0.04em;
  font-weight: 700;
  border-radius: 4px;               /* subtle, not pill */
  box-shadow: 0 2px 0 rgba(0,0,0,.25);
  text-decoration: none;
}

a.wp-block-button__link.natgeo-cta:hover,
a.wp-block-button__link.natgeo-cta:focus {
  background: #FFC600;              /* invert on hover */
  color: #111;
  box-shadow: 0 3px 0 rgba(0,0,0,.3);
  transform: translateY(-1px);
}
/* ENVIRA: Move gallery captions below images and center them */
.envira-gallery-wrap .envira-caption {
    position: static !important;    /* stop overlay positioning */
    background: none !important;    /* remove dark overlay background */
    opacity: 1 !important;          /* make captions always visible */
    display: block !important;      /* ensure captions show */
    margin-top: 8px;
    padding: 0;
    text-align: center;
    font-size: 0.95em;
    font-style: italic;             /* optional */
    color: #555;                    /* Soft Naturals gray */
}

/* Ensure captions never hide on hover */
.envira-gallery-wrap .envira-gallery-item:hover .envira-caption,
.envira-gallery-wrap .envira-caption {
    visibility: visible !important;
}

/* Remove any extra spacing or unwanted styles */
.envira-gallery-wrap .envira-caption p,
.envira-gallery-wrap .envira-caption span {
    margin: 0;
    padding: 0;
}
/* ---- NAT GEO CAPTION STYLE (works for Envira + WP Gallery) ---- */
:root{
  /* tweak these to your Soft Naturals palette */
  --cap-text:#424242;          /* caption text */
  --cap-muted:#7a7a7a;         /* secondary/muted */
  --cap-rule:#d9d9d9;          /* thin divider */
  --natgeo-accent:#FFC600;     /* Nat Geo yellow accent */
  --cap-size:0.95rem;          /* base caption size */
  --cap-line:1.45;             /* line-height */
  --cap-letter:0.6px;          /* letter-spacing */
}

/* ENVIRA: put captions below and clean them up */
.envira-gallery-wrap .envira-caption{
  position: static !important;     /* no overlay */
  background: none !important;
  opacity: 1 !important;
  display: block !important;
  text-align: center;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--cap-rule);   /* quiet magazine divider */
  color: var(--cap-text);
  font-size: var(--cap-size);
  line-height: var(--cap-line);
  letter-spacing: var(--cap-letter);
  font-variant: small-caps;                /* Nat Geo vibe */
  text-transform: none;                    /* preserve your casing */
}
.envira-gallery-wrap .envira-caption p,
.envira-gallery-wrap .envira-caption span{ margin:0; }

/* Optional: a tiny Nat Geo "accent tab" above each caption */
.envira-gallery-wrap .envira-caption::before{
  content:"";
  display:block;
  width:24px; height:3px;
  margin:0 auto 8px;
  background:var(--natgeo-accent);
  border-radius:2px;
}

/* NATIVE WP Gallery block: match the same look */
.wp-block-gallery figcaption{
  position: static !important;
  background: none !important;
  color: var(--cap-text);
  text-align: center;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--cap-rule);
  font-size: var(--cap-size);
  line-height: var(--cap-line);
  letter-spacing: var(--cap-letter);
  font-variant: small-caps;
}
.wp-block-gallery figcaption::before{
  content:"";
  display:block;
  width:24px; height:3px;
  margin:0 auto 8px;
  background:var(--natgeo-accent);
  border-radius:2px;
}

/* If any theme/Envira rules hide captions on hover */
.envira-gallery-wrap .envira-caption,
.envira-gallery-wrap .envira-gallery-item:hover .envira-caption{
  visibility: visible !important;
}

/* Mobile polish */
@media (max-width: 640px){
  .envira-gallery-wrap .envira-caption,
  .wp-block-gallery figcaption{
    font-size: 0.92rem;
    letter-spacing: 0.4px;
    margin-top: 8px;
    padding-top: 8px;
  }
}
/* ---- NAT GEO CAPTION STYLE (works for Envira + WP Gallery) ---- */
:root{
  /* tweak these to your Soft Naturals palette */
  --cap-text:#424242;          /* caption text */
  --cap-muted:#7a7a7a;         /* secondary/muted */
  --cap-rule:#d9d9d9;          /* thin divider */
  --natgeo-accent:#FFC600;     /* Nat Geo yellow accent */
  --cap-size:0.95rem;          /* base caption size */
  --cap-line:1.45;             /* line-height */
  --cap-letter:0.6px;          /* letter-spacing */
}

/* ENVIRA: put captions below and clean them up */
.envira-gallery-wrap .envira-caption{
  position: static !important;     /* no overlay */
  background: none !important;
  opacity: 1 !important;
  display: block !important;
  text-align: center;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--cap-rule);   /* quiet magazine divider */
  color: var(--cap-text);
  font-size: var(--cap-size);
  line-height: var(--cap-line);
  letter-spacing: var(--cap-letter);
  font-variant: small-caps;                /* Nat Geo vibe */
  text-transform: none;                    /* preserve your casing */
}
.envira-gallery-wrap .envira-caption p,
.envira-gallery-wrap .envira-caption span{ margin:0; }

/* Optional: a tiny Nat Geo "accent tab" above each caption */
.envira-gallery-wrap .envira-caption::before{
  content:"";
  display:block;
  width:24px; height:3px;
  margin:0 auto 8px;
  background:var(--natgeo-accent);
  border-radius:2px;
}

/* NATIVE WP Gallery block: match the same look */
.wp-block-gallery figcaption{
  position: static !important;
  background: none !important;
  color: var(--cap-text);
  text-align: center;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--cap-rule);
  font-size: var(--cap-size);
  line-height: var(--cap-line);
  letter-spacing: var(--cap-letter);
  font-variant: small-caps;
}
.wp-block-gallery figcaption::before{
  content:"";
  display:block;
  width:24px; height:3px;
  margin:0 auto 8px;
  background:var(--natgeo-accent);
  border-radius:2px;
}

/* If any theme/Envira rules hide captions on hover */
.envira-gallery-wrap .envira-caption,
.envira-gallery-wrap .envira-gallery-item:hover .envira-caption{
  visibility: visible !important;
}

/* Mobile polish */
@media (max-width: 640px){
  .envira-gallery-wrap .envira-caption,
  .wp-block-gallery figcaption{
    font-size: 0.92rem;
    letter-spacing: 0.4px;
    margin-top: 8px;
    padding-top: 8px;
  }
}
/* NatGeo-style Read More link */
.read-more-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: #111; /* Elegant deep gray for text */
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease;
    padding-bottom: 2px;
}

/* Gold underline effect */
.read-more-link::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #c18e00; /* NatGeo gold */
    position: absolute;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

/* Hover effect */
.read-more-link:hover {
    color: #c18e00;
}

.read-more-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
/* NatGeo-style Read More link */
.read-more-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: #111; /* Elegant deep gray */
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease;
    padding-bottom: 2px;
}

/* Gold underline effect */
.read-more-link::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #c18e00; /* NatGeo gold */
    position: absolute;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

/* Hover effect */
.read-more-link:hover {
    color: #c18e00;
}

.read-more-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
/* NatGeo magazine-style cards with consistent 16:9 crop */
.gd-card .gd-fi img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;   /* change to 3 / 2 if you prefer */
  object-fit: cover;      /* fills the frame, crops edges */
  border-radius: 8px;
  display: block;
  transition: transform .25s ease;
}

.gd-card:hover .gd-fi img {
  transform: scale(1.03);
}
/* Style the NatGeo More Posts card content */
.gd-card {
  text-align: center;         /* center everything inside the card */
  padding: 0.75rem 0.5rem;    /* breathing room */
}

/* Post titles */
.gd-card .gd-card-title {
  font-size: 1.1rem;          /* adjust size as needed */
  font-weight: 700;           /* bold for impact */
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* Hover underline for titles */
.gd-card .gd-card-title a {
  text-decoration: none;
  color: inherit;             /* matches your theme text color */
  transition: border-bottom .2s ease;
  border-bottom: 2px solid transparent;
}
.gd-card .gd-card-title a:hover {
  border-bottom: 2px solid #FFCC33; /* NatGeo gold */
}

/* Excerpt text */
.gd-card .wp-block-post-excerpt {
  font-size: 0.95rem;
  color: #555;                /* softer gray tone */
  margin: 0 auto;
  max-width: 90%;             /* keeps text narrow for readability */
}
.gd-card .wp-block-post-excerpt p {
  margin: 0.25rem 0 0;        /* trim default spacing */
}
/* Read More link styling */
.gd-card .gd-readmore a {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFCC33;       /* NatGeo gold */
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.gd-card .gd-readmore a:hover {
  color: #000;          /* black on hover */
  transform: translateX(4px); /* slides slightly right */
}
/* NatGeo section heading underline */
.natgeo-underline{
  position:relative;display:inline-block;padding-bottom:.25rem;
}
.natgeo-underline:after{
  content:"";position:absolute;left:0;bottom:0;width:100%;height:4px;background:#FFCC33;
}

/* Card layout + centering */
.gd-card{ text-align:center; padding:.75rem .5rem; }

/* Featured image: magazine 16:9 crop + hover zoom */
.gd-card .gd-fi img{
  width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:8px;
  display:block;transition:transform .25s ease;
}
.gd-card:hover .gd-fi img{ transform:scale(1.03); }

/* Title styling + gold hover underline */
.gd-card .gd-card-title{ font-size:1.1rem;font-weight:700;margin:.75rem 0 .5rem;line-height:1.3; }
.gd-card .gd-card-title a{
  color:inherit;text-decoration:none;border-bottom:2px solid transparent;transition:border-color .2s ease;
}
.gd-card .gd-card-title a:hover{ border-bottom:2px solid #FFCC33; }

/* Excerpt */
.gd-card .wp-block-post-excerpt{ font-size:.95rem;color:#555;max-width:90%;margin:0 auto; }
.gd-card .wp-block-post-excerpt p{ margin:.25rem 0 0; }

/* Read More link */
.gd-card .gd-readmore a{
  display:inline-block;margin-top:.5rem;font-size:.95rem;font-weight:600;
  color:#FFCC33;text-decoration:none;transition:color .2s ease, transform .2s ease;
}
.gd-card .gd-readmore a:hover{ color:#000; transform:translateX(4px); }

/* Responsive safety (usually handled by theme) */
@media (max-width:781px){
  .gd-more-posts .wp-block-post-template{ grid-template-columns:1fr !important; }
}
@media (min-width:782px) and (max-width:1024px){
  .gd-more-posts .wp-block-post-template{ grid-template-columns:repeat(2,1fr) !important; }
}
/* Custom Read More link */
.gd-card .gd-readmore a {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFCC33;              /* NatGeo gold */
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.gd-card .gd-readmore a:hover {
  color: #000;                  /* black on hover */
  transform: translateX(4px);   /* subtle slide */
}
/* Style the Excerpt's built-in "Read on" link */
.gd-card .wp-block-post-excerpt__more-link,
.gd-card .wp-block-post-excerpt__more-text {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFCC33;              /* NatGeo gold */
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.gd-card .wp-block-post-excerpt__more-link:hover,
.gd-card .wp-block-post-excerpt__more-text:hover {
  color: #000;                  /* black on hover */
  transform: translateX(4px);   /* subtle slide */
}
/* === Nat Geo–Style Intro Paragraph === */
.natgeo-intro {
  max-width: 680px; /* narrows text measure for elegant reading */
  margin: 2.5rem auto 3rem auto; /* centers horizontally and adds breathing space */
  text-align: justify; /* balanced column look */
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #333;
}

/* Optional first-line accent for subtle sophistication */
.natgeo-intro::first-line {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #444;
}

/* Soft gold separator under the paragraph (echoes header) */
.natgeo-intro::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #d4af37;
  margin: 2rem auto 0 auto;
  border-radius: 2px;
  opacity: 0.9;
}
/* === N A T  G E O  S T Y L E  S === */

/* --- 1️⃣  Post Title (above featured image) --- */
.wp-block-post-title {
  text-align: center;
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 2.5vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-top: 2rem;
  margin-bottom: 1.6rem;
  color: #1a1a1a;
  position: relative;
}

/* Gold underline accent beneath title */
.wp-block-post-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #d4af37; /* Nat Geo gold */
  border-radius: 2px;
  opacity: 0.9;
}

/* --- 2️⃣  Medium-Wide Featured Image --- */
.medium-wide-featured {
  position: relative;
  display: block;
  width: 120%;
  max-width: 120%;
  margin-left: -10%;
  margin-right: -10%;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.medium-wide-featured img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Subtle gold accent under image */
.medium-wide-featured::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #d4af37;
  border-radius: 2px;
  opacity: 0.9;
}

/* --- 3️⃣  Intro Paragraph (choose alignment) --- */

/* Classic magazine: justified text */
.natgeo-intro {
  max-width: 680px;
  margin: 2.5rem auto 3rem auto;
  text-align: justify;
  font-family: "Lora", serif;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
}

/* --- Optional centered version ---
.natgeo-intro {
  max-width: 680px;
  margin: 2.5rem auto 3rem auto;
  text-align: center;
  font-family: "Lora", serif;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
}
*/

/* Gold separator under intro paragraph */
.natgeo-intro::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #d4af37;
  margin: 2rem auto 0 auto;
  border-radius: 2px;
  opacity: 0.9;
}

/* --- 4️⃣  Main Body Text --- */
.wp-block-post-content p {
  font-family: "Lora", serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2a2a2a;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
/* Allow the wrapper to show overflow beyond content width */
.medium-wide-wrap { 
  overflow: visible; 
  position: relative;
}

/* Center the featured image block and let it extend beyond content */
.medium-wide-wrap .wp-block-post-featured-image.medium-wide-featured {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;              /* your “medium-wide” look */
  max-width: none;          /* don't clamp to content size */
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

/* Image styling inside the featured image block */
.medium-wide-wrap .wp-block-post-featured-image.medium-wide-featured img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Optional: your gold accent under the featured image */
.medium-wide-wrap .wp-block-post-featured-image.medium-wide-featured::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #d4af37;
  border-radius: 2px;
  opacity: 0.9;
}

/* Mobile safety: reset to 100% width on narrow screens */
@media (max-width: 800px) {
  .medium-wide-wrap .wp-block-post-featured-image.medium-wide-featured {
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
  }
}
/* === N A T  G E O  S T Y L E  S === */

/* --- 1️⃣  Post Title (above featured image) --- */
.wp-block-post-title {
  text-align: center;
  font-family: "Libre Baskerville", serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 2.5vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-top: 2rem;
  margin-bottom: 1.6rem;
  color: #1a1a1a;
  position: relative;
}

/* Gold underline accent beneath title */
.wp-block-post-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #d4af37; /* Nat Geo gold */
  border-radius: 2px;
  opacity: 0.9;
}

/* --- 2️⃣  Featured Image Fix (medium-wide with wrapper) --- */

/* Allow wrapper to show overflow beyond content width */
.medium-wide-wrap { 
  overflow: visible; 
  position: relative;
}

/* Center and widen featured image */
.medium-wide-wrap .wp-block-post-featured-image.medium-wide-featured {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;              /* your “medium-wide” look */
  max-width: none;          /* don't clamp to content size */
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

/* Image inside featured block */
.medium-wide-wrap .wp-block-post-featured-image.medium-wide-featured img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Optional: gold accent bar beneath featured image */
.medium-wide-wrap .wp-block-post-featured-image.medium-wide-featured::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #d4af37;
  border-radius: 2px;
  opacity: 0.9;
}

/* Mobile: reset to 100% width */
@media (max-width: 800px) {
  .medium-wide-wrap .wp-block-post-featured-image.medium-wide-featured {
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* --- 3️⃣  Intro Paragraph (Centered or Justified) --- */

/* Centered (Modern) version */
.natgeo-intro {
  max-width: 680px;
  margin: 2.5rem auto 3rem auto;
  text-align: center;
  font-family: "Lora", serif;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
}

/* Gold underline beneath intro paragraph */
.natgeo-intro::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #d4af37;
  margin: 2rem auto 0 auto;
  border-radius: 2px;
  opacity: 0.9;
}

/* --- 4️⃣  Main Body Text --- */
.wp-block-post-content p {
  font-family: "Lora", serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2a2a2a;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
/* Larger body paragraphs site-wide */
.wp-block-post-content p {
  font-size: 1.2rem;        /* ≈19.2px */
  line-height: 1.8;
}
/* --- 5️⃣  Optional Lakota Quote Styling --- */
blockquote.lakota-quote {
  font-family: "Libre Baskerville", serif;
  font-style: italic;
  color: #444;
  border-left: 4px solid #d4af37;
  padding-left: 1em;
  margin: 2em auto;
  max-width: 640px;
  text-align: center;
}
/* Reset Gallery Captions to Default */
.wp-block-gallery figcaption {
    font-family: inherit;
    text-transform: none;
    font-size: inherit;
    letter-spacing: normal;
    font-style: italic; /* WP default caption */
    color: inherit;
    text-align: left;
}
/* Reset Gallery Captions to Default */
.wp-block-gallery figcaption {
    font-family: inherit;
    text-transform: none;
    font-size: inherit;
    letter-spacing: normal;
    font-style: italic; /* WP default caption */
    color: inherit;
    text-align: left;
}
/* === Envira: Caption typography — Nat-Geo style === */
.envira-gallery-item .envira-caption{
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.45;
  color: #2b2b2b;
  margin-top: 0.5rem;
  text-align: left;
}

/* Small gold rule above caption */
.envira-gallery-item .envira-caption::before{
  content:"";
  display:block;
  width:28px; height:2px;
  background:#c6a558;
  margin:0.35rem 0 0.5rem 0;
}
/* === Envira: Gentle hover ==== */
.envira-gallery-item{ position:relative; overflow:hidden; }

.envira-gallery-item .envira-gallery-link img{
  transition: opacity .25s ease-in-out, transform .25s ease;
}

.envira-gallery-item:hover .envira-gallery-link img{
  opacity:.92;
  transform: scale(1.01);
}
/* === Page header / intro === */
.natgeo-landing h1 {
  font-family: "Libre Baskerville", serif;
  letter-spacing: .2px;
  margin: .4rem 0 1rem;
  text-align: center;
}
.natgeo-landing h1:after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: .75rem auto 1.25rem;
  background: #c9a227; /* Nat-Geo gold */
}
.natgeo-landing p {
  font-family: "Lora", serif;
  line-height: 1.7;
}

/* === The list === */
.natgeo-list .wp-block-post{
  padding: 1.1rem 0 1.8rem;
  border-bottom: 1px solid #c9a22733; /* soft gold divider */
}
.natgeo-list .wp-block-post:last-child{ border-bottom: 0; }

/* Featured image */
.natgeo-list .wp-block-post-featured-image img{
  width:100%; height:auto; border-radius:4px;
  transition: filter .25s ease, transform .25s ease;
}
.natgeo-list .wp-block-post:hover .wp-block-post-featured-image img{
  filter: brightness(.95) contrast(1.05);
  transform: scale(1.01);
}

/* Title + excerpt */
.natgeo-list .wp-block-post-title,
.natgeo-list .wp-block-post-title a{
  font-family: "Libre Baskerville", serif;
  text-decoration:none; color:inherit;
}
.natgeo-list .wp-block-post-title{ margin:.6rem 0 .25rem; }

.natgeo-list .wp-block-post-excerpt{
  font-family: "Lora", serif;
  line-height:1.65; color:#333; margin:.1rem 0 .4rem;
}

/* Read more */
.natgeo-list .wp-block-read-more a{
  color:#c9a227; font-weight:600; text-underline-offset:3px;
}
.natgeo-list .wp-block-read-more a:hover{ text-decoration: underline; }

/* Pagination */
.natgeo-list .wp-block-query-pagination{
  margin-top:1.25rem; gap:.75rem; justify-content:center;
}
.natgeo-list .wp-block-query-pagination a{ text-decoration:none; }
.natgeo-list .wp-block-query-pagination .wp-block-query-pagination-previous,
.natgeo-list .wp-block-query-pagination .wp-block-query-pagination-next{
  padding:.35rem .7rem; border:1px solid #c9a22733; border-radius:3px;
}

/* Mobile refinements */
@media (max-width: 782px){
  .natgeo-landing h1:after{ margin:.6rem auto 1rem; }
  .natgeo-list .wp-block-post{ padding:.9rem 0 1.4rem; }
}
/* === Grid: 2 columns desktop / 1 column mobile === */
.natgeo-list.natgeo-grid2 .wp-block-post-template{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2rem; /* row / column gap */
}

/* No dividers in grid mode */
.natgeo-list.natgeo-grid2 .wp-block-post{
  border-bottom: 0;
  padding: 0;
}

/* Keep thumbnails tidy in grid */
.natgeo-list.natgeo-grid2 .wp-block-post-featured-image img{
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Back to single column on tablets/phones */
@media (max-width: 960px){
  .natgeo-list.natgeo-grid2 .wp-block-post-template{
    grid-template-columns: 1fr;
    gap: 1.25rem 0;
  }
  .natgeo-list.natgeo-grid2 .wp-block-post{
    padding: 1rem 0 1.4rem;
    border-bottom: 1px solid #c9a22733; /* bring back soft divider on mobile */
  }
  .natgeo-list.natgeo-grid2 .wp-block-post:last-child{ border-bottom: 0; }
}
/* 1) Unify all image/galleries captions typographically */
.wp-element-caption,
.wp-block-image figcaption,
.wp-block-gallery figcaption,
.wp-block-gallery figure.wp-block-image figcaption {
  font-family: var(--wp--preset--font-family--lora, serif) !important;
  font-size: 0.95rem !important;       /* make both single + gallery match */
  line-height: 1.5 !important;
  font-weight: 400 !important;
  font-style: italic !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-align: left !important;
  color: inherit !important;
  margin-top: .5em !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}

/* 2) Remove any Nat-Geo styling that was on gallery captions */
.wp-block-gallery figcaption {
  position: static !important;
  font-variant: normal !important;
}

/* 3) Remove decorative lines/dashes added by pseudo-elements */
.wp-block-gallery figcaption::before,
.wp-block-gallery figcaption::after,
.wp-block-gallery figure.wp-block-image::before,
.wp-block-gallery figure.wp-block-image::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  background: none !important;
}

/* 4) Make sure no color/white-on-gold styles sneak in from editor styles */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  color: inherit !important;
  text-shadow: none !important;
  text-align: left !important;
  padding: 0 !important;
  margin: .5em 0 0 0 !important;
  background: none !important;
  border: 0 !important;
}
/* ----------------------------------------
   Medium-Wide Image Style (Dec 2025)
---------------------------------------- */
.wp-block-image.is-style-medium-wide {
  max-width: 60%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 800px) {
  .wp-block-image.is-style-medium-wide {
    max-width: 100%;
  }
}
/* Force Medium-Wide image container to shrink */
.wp-block-image.is-style-medium-wide {
    max-width: 60% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ensure the image itself fits the container */
.wp-block-image.is-style-medium-wide img {
    width: 100% !important;
    height: auto !important;
}

/* Mobile fallback */
@media (max-width: 800px) {
    .wp-block-image.is-style-medium-wide {
        max-width: 100% !important;
    }
}
/* Medium Wide image style (72% width) */
.wp-block-image.is-style-medium-wide {
    width: 72% !important;
    max-width: 72% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ensure the image fills the container */
.wp-block-image.is-style-medium-wide img {
    width: 100% !important;
    height: auto !important;
}

/* Mobile – full width for readability */
@media (max-width: 800px) {
    .wp-block-image.is-style-medium-wide {
        width: 100% !important;
        max-width: 100% !important;
    }
}
.wp-block-gallery figcaption {
    display: none !important;
}
/* Hide captions inside Fancybox lightbox */
.fancybox-caption,
.fancybox-caption--separate {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Hide captions overlaying gallery thumbnails */
.wp-block-gallery .blocks-gallery-item figcaption,
.gallery-item .gallery-caption,
.wp-caption-text {
    display: none !important;
}

