/* =====================================================================
   SOFTCARDS v2.3H — Unified Card + Forum + Static Grid Styling
   Theme: XJS Soft Tops Club
   Author: Laurence J / GPT-5 Design Collab
   ===================================================================== */

/* ---------------------------------------------------------------------
   BASE COLOURS & GLOBAL VARS
   --------------------------------------------------------------------- */
:root {
  --soft-green: #1a3b2e;
  --soft-cream: #eae3d1;
  --soft-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ---------------------------------------------------------------------
   WRAPPER + TITLES
   --------------------------------------------------------------------- */
.softcards-wrapper {
  max-width: 1400px;
  margin: 0 auto 40px auto;
  padding: 0 16px;
}

.softcards-wrapper.opt-green {
  background: var(--soft-green);
  color: var(--soft-cream);
  border-radius: 14px;
  padding: 25px;
}

.softcards-wrapper.opt-cream {
  background: var(--soft-cream);
  color: var(--soft-green);
  border-radius: 14px;
  padding: 25px;
}

.softcards-title {
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin: 0 0 22px;
  color: var(--soft-green);
}

/* ---------------------------------------------------------------------
   GRID SYSTEM
   --------------------------------------------------------------------- */
.softcards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.softcards-grid.softcards-single {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive tiers */
@media (max-width: 1024px) {
  .softcards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .softcards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ---------------------------------------------------------------------
   CARD BASE
   --------------------------------------------------------------------- */
.softcard {
  background: var(--soft-cream);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.softcards-wrapper.opt-green .softcard { background: #234f3c; }

.softcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 59, 46, 0.12);
}

/* ---------------------------------------------------------------------
   CARD IMAGE
   --------------------------------------------------------------------- */
.softcard-img {
  aspect-ratio: 16 / 9;
  background: #d8d2bf;
  display: block;
  overflow: hidden;
}
.softcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------------------------------------------------------------
   CARD CONTENT
   --------------------------------------------------------------------- */
.softcard-content {
  padding: 14px 16px 16px;
  color: var(--soft-green);
  line-height: 1.55;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.softcards-wrapper.opt-green .softcard-content { color: var(--soft-cream); }

.softcard-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 6px 0;
}
.softcard-title a {
  color: inherit;
  text-decoration: none;
}
.softcard-title a:hover { text-decoration: underline; }

.softcard-meta {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 2px 0 8px;
}
.softcard-excerpt { font-size: 0.95rem; }

/* ---------------------------------------------------------------------
   LOAD MORE / EMPTY STATE
   --------------------------------------------------------------------- */
.softcards-controls {
  text-align: center;
  margin-top: 28px;
}
.softcards-load-more {
  display: inline-block;
  margin: 0 auto;
  padding: 10px 20px;
  border-radius: 10px;
  border: 2px solid var(--soft-green);
  background: var(--soft-cream);
  color: var(--soft-green);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.softcards-load-more:hover {
  background: var(--soft-green);
  color: var(--soft-cream);
}
.softcards-empty {
  text-align: center;
  color: var(--soft-green);
  opacity: 0.8;
  font-size: 1rem;
  padding: 40px 0;
}

/* ---------------------------------------------------------------------
   FORUM SOFTLIST (v2.3H)
   --------------------------------------------------------------------- */
.softlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.softlist-item {
  display: flex;
  align-items: center;
  background: #eae3d1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.25s ease;
}
.softlist-item:hover {
  transform: translateY(-2px);
  background-color: #f2ebd9;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.softlist-img {
  width: 120px;
  height: 90px;
  flex-shrink: 0;
  object-fit: cover;
  border-right: 2px solid #1a3b2e;
}
.softlist-content {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.softlist-title {
  font-weight: 700;
  font-size: 1rem;
  color: #1a3b2e;
  margin-bottom: 4px;
}
.softlist-meta {
  font-size: 0.9rem;
  color: #1a3b2e;
  opacity: 0.8;
}
.softlist-status {
  background: #1a3b2e;
  color: #eae3d1;
  padding: 3px 8px;
  font-size: 0.8rem;
  border-radius: 6px;
  margin-left: auto;
}
.softlist-status a {
  color: #eae3d1;
  text-decoration: none;
}
.softlist-status a:hover { text-decoration: underline; }

/* Dark variant (optional) */
.softlist.dark .softlist-item {
  background: #1a3b2e;
  color: #eae3d1;
  border-color: rgba(255,255,255,0.1);
}
.softlist.dark .softlist-status {
  background: #eae3d1;
  color: #1a3b2e;
}
.softlist.dark .softlist-item:hover {
  background: #234e3d;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Responsive forum list */
@media (max-width: 768px) {
  .softlist-item { flex-direction: column; align-items: flex-start; }
  .softlist-img {
    width: 100%;
    height: 160px;
    border-right: none;
    border-bottom: 2px solid #1a3b2e;
  }
  .softlist-status {
    margin-top: 6px;
    align-self: flex-end;
  }
}

/* ---------------------------------------------------------------------
   UTILITIES (split layouts, dividers, CTAs)
   --------------------------------------------------------------------- */
.softdivider {
  height: 26px;
  background: linear-gradient(to bottom, #eae3d1, #f3efe3);
  border-radius: 12px;
  max-width: 1100px;
  margin: 0 auto;
}
.softsplit {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .softsplit { grid-template-columns: 1fr; }
}
.softphoto {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.softphoto img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.softcta {
  background: #1a3b2e;
  color: #eae3d1;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.softcta strong { font-size: clamp(18px, 2.2vw, 22px); }

/* =====================================================================
   MODULE — SOFTCARDS_STATIC v2 STABLE (Manual Heritage Grid)
   ===================================================================== */
.softcards-block {
  display: block;
  clear: both;
  max-width: 1250px;
  margin: 40px auto 60px;
  padding: 0 20px;
}
.softcards-block .softcards-title {
  text-align: center;
  color: #1a3b2e;
  font-family: "Georgia","Times New Roman",serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin: 0 0 24px;
}

/* --- Grid --- */
.softcards-block .softcards-grid {
  display: grid;
  gap: 26px;
  align-items: stretch;
  justify-items: stretch;
}
.softcards-block .softcards-cols-1 { grid-template-columns: 1fr; }
.softcards-block .softcards-cols-2 { grid-template-columns: repeat(2, 1fr); }
.softcards-block .softcards-cols-3 { grid-template-columns: repeat(3, 1fr); }
.softcards-block .softcards-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .softcards-block .softcards-cols-3,
  .softcards-block .softcards-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .softcards-block .softcards-grid { grid-template-columns: 1fr !important; gap: 18px; }
}

/* --- Cards --- */
.softcards-block .softcard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
  min-height: 200px;
}
.softcards-block .softcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.softcards-block .softcard-title,
.softcards-block .softcard h3 {
  color: #1a3b2e;
  font-size: 1.15rem;
  font-family: "Georgia","Times New Roman",serif;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 .4em;
}
.softcards-block .softcard-excerpt,
.softcards-block .softcard p {
  color: #1a3b2e;
  opacity: .9;
  font-size: .97rem;
  font-family: "Helvetica Neue","Arial",sans-serif;
  margin: 0 0 1.2em;
  flex-grow: 1;
}
.softcards-block .softcard a.softbtn {
  align-self: start;
  text-decoration: none;
}

/* Colour variants for themed frames */
.softcards-block.opt-cream .softcard { background: #f3efe3; }
.softcards-block.opt-green .softcard {
  background: #1a3b2e;
  color: #eae3d1;
}
.softcards-block.opt-green .softcard h3,
.softcards-block.opt-green .softcard p { color: #eae3d1; }
.softcards-block.opt-green .softcard a.softbtn.cream {
  background: #2b5946 !important;
  color: #eae3d1 !important;
}
.softcards-block.opt-green .softcard a.softbtn.cream:hover {
  background: #3c7058 !important;
}




/* ======================================================================
   SOFTCARDS & SOFTPHOTO — PATCH v2.3I
   Comprehensive refinements for Safari, Firefox & Mobile
   ----------------------------------------------------------------------
   Includes:
   ✅ A — Title rendering & wrapping fix
   ✅ B — Homepage overflow containment
   ✅ C — Proper stacking on mobile
   ✅ D — Softphoto image scaling (Featured Photo)
   ====================================================================== */

/* --- A — Fix text rendering and wrapping on all cards --- */
.softcard-title a,
.softcard-title {
  display: inline-block;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  padding-bottom:0;
  background: none !important;
}

/* --- B — Homepage softsplit image containment --- */
.softsplit img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* --- C — Mobile grid stacking (applies to all softcards) --- */
@media screen and (max-width: 900px) {
  .softcards-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    max-width: 100%;
  }

  .softcard {
    margin: 0 auto;
    width: 100%;
  }
}

/* --- D — Softphoto containment (Featured Photo block) --- */
@media screen and (max-width: 900px) {
  .softphoto {
    overflow: hidden;
    max-width: 100%;
  }

  .softphoto img,
  .softphoto .wppa-container img,
  .softphoto .thumb-img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    max-width: 100%;
  }

  /* Reset WPPA fixed dimensions if present */
  .wppa-container,
  .wppa-container-wrapper {
    height: auto !important;
    width: 100% !important;
  }
}

/* ======================================================================
   END PATCH v2.3I
   ====================================================================== */

/* Match ACF submit button to Softbtn style */
.acf-form-submit input[type="submit"] {
  background: #1a3b2e !important;
  color: #eae3d1 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 22px !important;
  font-weight: 600;
  transition: background 0.2s ease-in-out;
}

.acf-form-submit input[type="submit"]:hover {
  background: #2d5945 !important;
}


/* ==========================================================
   E-20e.1 — My Albums Visual Upgrade
   Apply grid and card styling to [my_content] output
   ========================================================== */

.softcards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.softcard {
  background: #eae3d1;
  border-radius: 14px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.softcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.25);
}

/* Limit My Albums grid to 3 cards per row */
.softcards-wrapper[data-softcards] .softcards-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1200px) {

/* on /member-photo-gallery */
body.page-id-24279
.softcards-wrapper[data-softcards] .softcards-grid {
  grid-template-columns: repeat(auto-fill, minmax(315px, 1fr));
  }
/* on /my-gallery */
body.page-id-24285
.softcards-wrapper[data-softcards] .softcards-grid {
  grid-template-columns: repeat(auto-fill, minmax(315px, 1fr));
  }
}

/* Remove top gap when no softcards title is present */
.softcards-wrapper[data-softcards] > div:first-child {
  margin-top: 0 !important;
}

/* --- E-20f.3a layout corrections --- */

/* Top/bottom nav bars */
.softpaper.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
}
.softpaper.navbar a.softbtn {
  flex: 0 0 auto;
}

/* Intro 40/60 split */
.softpaper.intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 24px;
}
.softpaper.intro .intro-photo {
  flex: 0 0 40%;
  max-width: 40%;
  min-width: 380px;
}
.softpaper.intro .intro-info {
  flex: 1 1 60%;
  max-width: 60%;
  min-width: 480px;
}

/* Story photo grid — always quarters */
.story-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.story-photos figure {
  flex: 1 1 25%;
  max-width: 25%;
  padding: 8px;
  background: #fdfbf6;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  margin: 0;
}
.story-photos figcaption {
  font-size: .9em;
  margin-top: 6px;
}
@media (max-width: 800px) {
  .story-photos figure { flex:1 1 48%; max-width:48%; }
}
@media (max-width: 500px) {
  .story-photos figure { flex:1 1 100%; max-width:100%; }
}


/* --- Fix stacked navbar buttons --- */
/* --- Fix stacked navbar buttons --- */
.softpaper.navbar {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
}
.softpaper.navbar a.softbtn {
  flex: 0 0 auto;
  margin: 0;
}


/* --- Fix intro 40/60 layout --- */
.softpaper.intro {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 24px;
}
.softpaper.intro .intro-photo {
  flex: 0 0 40%;
  max-width: 40%;
  min-width: 380px;
}
.softpaper.intro .intro-info {
  flex: 1 1 60%;
  max-width: 60%;
  min-width: 480px;
}

/* --- E-20f.3d Navbar alignment correction --- */
.softpaper .navbar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  width: 100% !important;
}

.softpaper .navbar a.softbtn {
  flex: 0 0 auto !important;
  margin: 0 !important;
}



/* --- E-20g.1 — Force single album intro 40/60 layout --- */
.softpaper.intro {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.softpaper.intro .intro-info {
  flex: 1 1 60% !important;
  max-width: 60% !important;
  min-width: 460px !important;
}

.softpaper.intro .intro-photo {
  flex: 0 0 40% !important;
  max-width: 40% !important;
  min-width: 360px !important;
}

@media (max-width: 900px) {
  .softpaper.intro {
    flex-wrap: wrap !important;
  }
  .softpaper.intro .intro-info,
  .softpaper.intro .intro-photo {
    max-width: 100% !important;
    min-width: 100% !important;
  }
}

/* --- E-20g.3 — Force 40/60 intro layout --- */
.softpaper.intro {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 28px !important;
  flex-wrap: nowrap !important;
}

.softpaper.intro .intro-info {
  flex: 1 1 60% !important;
  max-width: 60% !important;
}

.softpaper.intro .intro-photo {
  flex: 0 0 40% !important;
  max-width: 40% !important;
  display: block !important;
}

.softpaper.intro .intro-photo img {
  width: 100% !important;
  height: auto !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

/* Responsive fix for mobile */
@media (max-width: 900px) {
  .softpaper.intro {
    flex-direction: column !important;
  }
  .softpaper.intro .intro-info,
  .softpaper.intro .intro-photo {
    max-width: 100% !important;
  }
}

@media (min-width: 900px) {
  .softpaper.intro .softsplit.ratio-40-60 {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 28px !important;
  }

  .softpaper.intro .softsplit.ratio-40-60 > div:first-child {
    flex: 0 0 40% !important;
    max-width: 40% !important;
    padding-left: 1.2rem !important;
  }

  .softpaper.intro .softsplit.ratio-40-60 > div:last-child {
    flex: 0 0 60% !important;
    max-width: 60% !important;
    padding-right: 1.2rem !important;
  }
}



/* ==========================================================
   CLEAN INTRO LAYOUT USING SOFTFRAME (no interference)
   ========================================================== */

.softframe.intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 32px;
  margin: 20px 0 40px 0;
  padding: 20px;
  background: #f6f2e7;
  border-radius: 16px;
}

/* Intro photo (left column) */
.softframe.intro .intro-photo {
  flex: 0 0 38%;
  max-width: 38%;
}

.softframe.intro .intro-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Intro info (right column) */
.softframe.intro .intro-info {
  flex: 1 1 60%;
  max-width: 60%;
}

/* Responsive */
@media (max-width: 900px) {
  .softframe.intro {
    flex-direction: column;
  }
  .softframe.intro .intro-photo,
  .softframe.intro .intro-info {
    max-width: 100%;
    flex: 1 1 100%;
  }
}


.softframe.intro {
  display:flex;
  justify-content: space-between;
  align-items:flex-start;
  gap:32px;
}
.softframe.intro .intro-photo { 
  flex:0 0 40%; 
}
.softframe.intro .intro-info { 
  flex:1 1 60%; 
}

/* ----------------------------------------------------
   SOFTFRAME — Unified Album Layout System
---------------------------------------------------- */

.softframe {
    background: var(--soft-cream);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 36px;
}

/* Colour variants */
.softframe.opt-cream { background: var(--soft-cream); color: var(--soft-green); }
.softframe.opt-green { background: var(--soft-green); color: var(--soft-cream); }

/* Headings inside frames */
.softframe h2,
.softframe h3,
.softframe h1 {
    margin-top: 0;
    color: var(--soft-green);
}
.softframe.opt-green h2,
.softframe.opt-green h3,
.softframe.opt-green h1 {
    color: var(--soft-cream);
}

/* ----------------------------------------------------
   SOFTSPLIT — Column Layout Engine
   ratio-40-60, ratio-25-25-25-25 etc
---------------------------------------------------- */

.softsplit {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: nowrap;
}

/* Intro layout 40/60 */
.softsplit.ratio-40-60 > .intro-photo { flex: 0 0 40%; max-width: 40%; }
.softsplit.ratio-40-60 > .intro-info  { flex: 1 1 60%; max-width: 60%; }

/* ----------------------------------------------------
   Image handling
---------------------------------------------------- */

.softframe img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* ----------------------------------------------------
   STORY SECTIONS (Restoration, Mods, Adventures)
---------------------------------------------------- */

.story-block {
    background: #fbf9f2;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.story-photos {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.story-photos figure {
    flex: 1 1 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
}

.story-photos img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

.story-photos figcaption {
    font-size: 0.9rem;
    margin-top: 6px;
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 900px) {
    .softsplit { flex-direction: column; }
    .softsplit.ratio-40-60 > * { max-width: 100% !important; flex: 1 1 100% !important; }

    .story-photos figure {
        flex: 1 1 48%;
        max-width: 48%;
    }
}
@media (max-width: 550px) {
    .story-photos figure {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Fix mobile stacking for single car album intro */
@media (max-width: 900px) {
    .intro-photo,
    .intro-info {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .intro-info h1 {
        margin-top: 24px; /* gives breathing room below photo */
    }
}


/* DEBUG — TEMPORARY HIGHLIGHT */
/*.intro-photo { background: rgba(255,0,0,0.15) !important; }
.intro-info { background: rgba(0,0,255,0.15) !important; }

*/

.softframe {
    overflow: visible !important;
}


@media (max-width: 900px) {
    .softsplit {
        display: block !important;
    }
    .softsplit > * {
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* --- FULL Safari-proof mobile override for softsplit --- */
@media (max-width: 900px) {

    /* Force the container to break */
    .softsplit,
    .softsplit.ratio-40-60,
    .softsplit.ratio-60-40 {
        display: block !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    /* Force children to become full width stacked items */
    .softsplit > *,
    .softsplit.ratio-40-60 > *,
    .softsplit.ratio-60-40 > * {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        min-height: auto !important;
        margin: 0 0 20px 0 !important;
    }

    /* Additional Safari fix: break flex height calculations */
    .softsplit > div,
    .softsplit.ratio-40-60 > div,
    .softsplit.ratio-60-40 > div {
        min-height: 1px !important;    /* Forces reflow */
        height: auto !important;
    }
}

/* HARD RESET of parent softpaper behaviour on mobile */
@media (max-width: 900px) {
    .softpaper,
    .softpaper.opt-cream,
    .softpaper.opt-green,
    .softpaper.opt-none {
        display: block !important;
        flex-wrap: wrap !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* kill leftover layout rules from theme */
    .softpaper > * {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
}

/* ===== FIX: Mobile softsplit preventing height ===== */
@media (max-width: 900px) {
    .softsplit,
    .softsplit.ratio-40-60,
    .softsplit.ratio-60-40 {
        display: flex !important;
        flex-wrap: wrap !important;       /* <-- the key fix */
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .softsplit > * {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;         /* <-- prevents height collapse */
    }

    .intro-info,
    .intro-photo {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;         /* <-- ensures both expand normally */
    }
}

/* ===========================================================
   E-21A.4 — FIXED Toolbar (Soft Tops Club Edition)
   =========================================================== */



/* ==================================================================
   Success Banner (sits just under the toolbar when present)
   ================================================================== */
.album-editor-notice {
  position: -webkit-sticky;
  position: sticky;
  top: 0px;   /* toolbar top (120) + approx toolbar height (60) */
  z-index: 9998;
  margin: 0 0 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #dce7d6;
  border: 1px solid #4b7b4b;
  color: #1a3b2e;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.album-editor-notice--hidden {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}


/* ==================================================================
   ACF – Add Row Button
   ================================================================== */

.acf-repeater .acf-actions {
  text-align: left !important;
}

.acf-repeater .acf-actions .button,
.acf-repeater .acf-actions .acf-button {
  background: #1a3b2e;
  color: #eae3d1;
  border-radius: 6px;
  border: 2px solid #1a3b2e;
  font-weight: 600;
  padding: 6px 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  cursor: pointer;
}

.acf-repeater .acf-actions .button:hover,
.acf-repeater .acf-actions .acf-button:hover {
  background: #eae3d1;
  color: #1a3b2e;
}

/* ---- CRITICAL FIX: allow sticky toolbar to work ---- */
.site-content,
.softpaper,
.softframe,
.softframe.intro,
.softcards-wrapper,
#content,
.entry-content {
    overflow: visible !important;
}

/* =======================================================
   TRACE MODE — Album Editor Sticky Debugging
   Highlights containment and overflow issues
   ======================================================= */



/* Show overflow rules clearly */
* {
    outline-offset: -2px;
}

/* ===========================================================
   E-21 — Album Editor Toolbar (final position)
   =========================================================== */

body.page-id-22208 .album-editor-toolbar {
  position: fixed;
  top: 152px;   /* sits exactly under admin bar + green menu */
  left: 0;
  right: 0;
  z-index: 9990;

  background: #eae3d1;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.15);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}



/* ===========================================================
   E-21C — Album Editor Toolbar (final styling)
   Cream bar with green edge + soft shadow
   =========================================================== */

/* Fixed toolbar, just below header, Album Editor page only */
body.page-id-22208 .album-editor-toolbar {
  position: fixed;
  top: 152px;                  /* your tested perfect offset */
  left: 0;
  right: 0;
  z-index: 9990;

  background: #eae3d1;         /* cream bar */
  color: #1a3b2e;              /* heritage green text */
  padding: 10px 24px;
  border-bottom: 2px solid #1a3b2e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Content starts comfortably below the toolbar */
body.page-id-22208 .album-editor-start {
  margin-top: 180px;           /* tweak up/down if needed */
}

/* Button alignment inside toolbar */
.album-editor-toolbar-left,
.album-editor-toolbar-right {
  flex: 1 1 0;
}

.album-editor-toolbar-left {
  text-align: left;
}

.album-editor-toolbar-right {
  text-align: right;
}

/* Subtle refinement of buttons inside toolbar */
.album-editor-toolbar .softbtn {
  min-width: 160px;
  padding: 8px 22px;
  font-weight: 600;
  border-radius: 8px;
}

/* Right-hand cream button: green outline on cream */
.album-editor-toolbar .softbtn.cream {
  background: #eae3d1;
  color: #1a3b2e;
  border: 2px solid #1a3b2e;
}
.album-editor-toolbar .softbtn.cream:hover {
  background: #1a3b2e;
  color: #eae3d1;
}

/* Left-hand (green) button: use existing softbtn default */
.album-editor-toolbar .softbtn:not(.cream) {
  border: 2px solid #1a3b2e;
}

/* Success notice: normal block under toolbar, no sticky */
.album-editor-notice {
  position: relative !important;
  top: auto !important;
  z-index: auto !important;
  margin-top: 14px;
}

/* ===========================================================
   Disable TRACE MODE debug outlines
   =========================================================== */



/* Remove global outline-offset debugging */
* {
  outline: none !important;
  outline-offset: 0 !important;
}

/* ===========================================================
   E-21C — Album Editor Toolbar (Cream + Green + Shadow)
   =========================================================== */



/* Ensure Album Editor page uses cream softpaper background */
/*.page-template-album-editor #primary,
.page-template-album-editor #main {
    background: var(--soft-cream) !important;
}
*/
/* Optional: give page a subtle softpaper panel edge */
/*.page-template-album-editor #primary {
    padding-top: 40px;
}*/



.album-editor-toolbar {
    background: var(--soft-cream);
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--soft-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.page-id-22208 .album-editor-toolbar {
  position: fixed;
  top: 152px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1250px;
  z-index: 9990;

  background: #eae3d1;
  color: #1a3b2e;
  padding: 10px 24px;
  border-bottom: 2px solid #1a3b2e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);

  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 14px;
}

/* adds some space within the album editor page */
body.page-template-page-album-editor .softintro {
    margin-top: 60px;
    margin-bottom: 20px;
}

/* Move intro title block downward (Album Editor only) */
.page-template-page-album-editor .softsection {
    margin-top: 80px;
    /* adjust this number to taste */
}

/* Reduce gap between intro title and ACF softpaper container */
.page-template-page-album-editor .softpaper {
    margin-top: 1px;   /* adjust to your preference */
}


body.page-id-22028 h2.album-editor-start {
    display: none !important;
}

/* TEST — this should turn background blue if CSS is applying */
body.page-id-22028 {
    background: rgba(0,0,255,0.2) !important;
}

/* REMOVE GAP ABOVE THE ACF FORM — empty softsection */
body.page-id-22028 section.softsection {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Force-remove giant top margin from the Create/Edit Album heading */
.page-template-page-album-editor h2.album-editor-start {
    margin-top: 0 !important;
    padding-top: 10px !important;
}

/* Saturday 15th November 2025 */

/* Hide ACF default submit button on Album Editor screens */
.album-editor-page .acf-form-submit input[type="submit"],
.album-editor-page .acf-form-submit .button {
    display: none !important;
}

/* Move ACF Add Row buttons to the left */
.album-editor-page .acf-repeater .acf-actions {
    text-align: left !important;
}

/* Inline row add buttons */
.album-editor-page .acf-repeater .acf-row .acf-actions {
    justify-content: flex-start !important;
}

/* Force ALL ACF Add Row buttons fully left */
.album-editor-page .acf-repeater .acf-actions,
.album-editor-page .acf-repeater .acf-actions.-bottom,
.album-editor-page .acf-repeater .acf-actions.-hover,
.album-editor-page .acf-repeater .acf-row .acf-actions {
    display: flex !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

/* Remove ACF auto-margin pushing button to the right */
.album-editor-page .acf-repeater .acf-actions .acf-button,
.album-editor-page .acf-repeater .acf-row .acf-actions .acf-button {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Force the toolbar buttons to display left and right in one row */
.album-editor-toolbar .softtops-loadbar-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
}

/* Left and right wrapper behaviour */
.album-editor-toolbar .softtops-loadbar-left,
.album-editor-toolbar .softtops-loadbar-right {
    flex: 0 0 auto;
}

/* Optional: ensure Save hugs right edge */
.album-editor-toolbar .softtops-loadbar-right .softbtn-save {
    margin-left: auto !important;
}

/* Force-hide mobile editor bar on desktop */
.mobile-album-editor-bar {
    display: none !important;
}
@media (max-width: 768px) {
    .mobile-album-editor-bar {
        display: flex !important;
    }
}
/* Force-hide mobile editor bar on desktop */

/* ============================================================
   MOBILE ALBUM EDITOR — FLOATING CANCEL / SAVE BAR
   ============================================================ */

/* Hidden by default (desktop) */
.mobile-album-editor-bar {
    display: none;
}

/* Mobile only */
@media (max-width: 768px) {

    .mobile-album-editor-bar {
        /* Positioning */
        position: fixed;
        left: 50%;
        bottom: calc(env(safe-area-inset-bottom, 16px) + 12px);
        transform: translateX(-50%);

        /* Layout */
        width: calc(100% - 32px);
        max-width: 480px;
        padding: 12px 16px;

        display: flex;
        justify-content: space-between;
        align-items: center;

        /* Styling */
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 18px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.25);

        /* Ensure it's above all site elements */
        z-index: 99999;
    }

    /* Slight button resizing for mobile elegance */
    .mobile-album-editor-bar .softbtn {
        width: 45%;
        font-size: 17px;
        padding: 14px 0;
        border-radius: 12px;
        text-align: center;
        display: inline-block;
    }
}
/* Fix the loadbar for BOTH editor and display pages */
.album-editor-page .album-editor-toolbar-container {
    position: fixed;
    top: 150px; /* matches editor */
    left: 10%;
    width: 100%;
    max-width: 1250px;
    right: 0;
    z-index: 9999;
}


/*  position: fixed;
  top: 152px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1250px;
  z-index: 9990;*/




/* ============================================================
   SOFT TOPS — PROMINENT ALERT BAR (Desktop + Mobile)
   ============================================================ */

/* ============================================================
   SOFT TOPS — PROMINENT ALERT BAR (Desktop + Mobile)
   ============================================================ */

#softtops-toast {
    position: fixed;
    top: 170px; /* below the main menu bar */
    left: 40%;
    transform: translateX(-50%);

    background: var(--soft-green, #1a3b2e);
    color: var(--soft-cream, #eae3d1);

    padding: 18px 28px;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);

    font-size: 20px;
    font-weight: 600;
    text-align: center;

    opacity: 0;
    transform-origin: center;
    transform: translateX(-50%) translateY(-10px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;

    z-index: 999999;
}

/* Visible state */
#softtops-toast.softtops-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile tweaks */
@media (max-width: 768px) {
    #softtops-toast {
        max-width: calc(100% - 40px);
        font-size: 18px;
        padding: 16px 20px;
    }
}

/* ================================== */



/* ============================================================
   UNIVERSAL SOFTHEADER (DESKTOP + MOBILE)
   Used on Album Editor, Album Display, etc.
   ============================================================ */

/* DESKTOP HEADER (with buttons inside) */
.softheader {
  position: sticky;                 /* stick under main menu */
  top: 80px;                        /* tweak if needed to sit just below nav */
  z-index: 999;
  padding: 8px 16px 0;              /* little breathing space from page edge */
}

.softheader-inner {
  max-width: 1200px;                /* match main content width */
  margin: 0 auto;
  padding: 10px 18px;

  background: #f3efe3; /* changed aea3d1 to f3fef3 */
  color: var(--soft-green, #f3efe3);
  border-radius: 18px;
  box-shadow: var(--soft-shadow, 0 4px 10px rgba(0,0,0,0.08));

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.softheader-left,
.softheader-right {
  flex: 0 0 auto;
}

.softheader-center {
  flex: 1 1 auto;
  text-align: center;
}



/* Divider under the header, aligned with content */
.softdivider {
  max-width: 1200px;
  margin: 0 auto 24px;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}


/* ============================================================
   MOBILE VERSION (no buttons in header)
   ============================================================ */

.softheader-mobile {
  display: none;
}

/* On mobile: hide desktop header, show simple title/tagline */
@media (max-width: 768px) {

  .softheader {
    display: none;
  }

  .softheader-mobile {
    display: block;
    padding: 18px 16px 8px;
    background: #f3efe3;;
    color: var(--soft-green, #1a3b2e);
    box-sizing: border-box;
  }

  .softheader-mobile .softheader-title {
    margin: 0 0 4px;
    font-size: 24px;
    line-height: 1.2;
  }

  .softheader-mobile .softheader-tagline {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
  }
}



/* Inner container: aligns with page width */
.softheader-desktop-inner {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 18px 40px 22px 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border: 1px solid rgba(22,52,38,.25) !important; 
    background: #f3efe3;
    border-radius: 14 14 14px 14px;
    box-shadow: var(--soft-shadow);
}

/* Left + right buttons */
.softheader-left,
.softheader-right {
    display: flex;
    justify-content: flex-start;
}
.softheader-right { justify-content: flex-end; }

/* Title + tagline */
.softheader-titleblock {
    text-align: center;
}
.softheader-title {
  font-family: "Georgia","Times New Roman",serif !important;
  font-size: 1.85rem !important;
  font-weight: 700 !important;
  color: #1a3b2e !important;
  line-height: 1.1 !important;
  margin: 0 0 0.025em 0 !important; 
}
.softheader-tagline {
  font-size: clamp(13px,3.1vw,19px) !important;
  font-weight: 500 !important;
  color: #1a3b2e !important;
  opacity: 0.9 !important;
  line-height: 1.15 !important;
  margin: 0 0 0.35em 0 !important;
}


/* ============================================
   MOBILE VERSION
   ============================================ */
@media (max-width: 768px) {
    .softheader-desktop {
        display: none;
    }

    .softheader-mobile {
        margin-top: 120px; /* sits below main menu on mobile */
        padding: 28px 20px 16px 20px;
        text-align: center;
    }

    .softheader-mobile-title {
        font-size: 26px;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .softheader-mobile-tagline {
        font-size: 15px;
        opacity: 0.9;
    }
}


/* ==========================================================
   FIXED UNIVERSAL SOFTHEADER — MATCHES INTRO TITLE BLOCKS
   ========================================================== */

/* Outer container: fixed, spans entire viewport */
.softheader-desktop {
    position: sticky;
    top: 0; /* Laurence adjustment  */
    left: 0;
    width: 100%;
    z-index: 9;
    background: #f3efe3;
    display: flex;
    justify-content: center;

    background: transparent; /* do not apply colour here */
    pointer-events: none; /* allow inner block to receive events only */
}

/* Inner block: the cream bar that holds title/buttons */
.softheader-desktop-inner {
    pointer-events: auto;

    width: 100%;
    max-width: 1250px; /* changed from 1500 to 1250 */

    background: #f3efe3;
    border-radius: 14px 14px 14px 14px;
    box-shadow: var(--soft-shadow);
    padding: 4px 40px 4px 40px; /* laurence adjusted */

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* Buttons left/right */
.softheader-left,
.softheader-right {
    display: flex;
    align-items: center;
}
.softheader-left { justify-content: flex-start; }
.softheader-right { justify-content: flex-end; }

/* Title + tagline */
.softheader-titleblock {
    text-align: center;
}


/* Push page content down so header does not overlap */
body.album-editor-page #primary,
body.album-editor-page .site-main {
    padding-top: 2px !important;
}
.softheader-divider {
  position: relative;              /* ← no longer fixed */
  height: 2px;
  background: rgba(0, 0, 0, 0.06); /* match intro divider */
  margin: 16px auto 32px auto;     /* adds spacing before content */
  max-width: 1400px;               /* aligns with main page width */
  border-radius: 2px;
  z-index: 1;                      /* below header */
}




/* MOBILE */
@media (max-width: 768px) {

    .softheader-desktop { display: none; }

    .softheader-mobile {
        margin-top: 120px;
        padding: 24px 20px;
        text-align: center;
        background: #f3efe3;
        border-radius: 0 0 14px 14px;
        box-shadow: var(--soft-shadow);
    }

    .softheader-mobile-title {
        font-size: 26px;
        font-weight: 700;
        color: var(--soft-green);
    }

    .softheader-mobile-tagline {
        font-size: 15px;
        opacity: .85;
        color: var(--soft-green);
    }
    
}




/* Remove excess space between header and softpaper content */
/* Remove gap between fixed SoftHeader and first content block */
/* Adjust top padding below fixed softheader */
/*body.album-editor-page #primary,
body.album-editor-page .site-main {
    padding-top: 80px !important;  /* Match your softheader height */
}*/

/* Restore ACF fields to standard club cream */
body.album-editor-page .acf-field,
body.album-editor-page .acf-repeater,
body.album-editor-page .acf-fields {
    background-color: #eae3d1 !important;
}

/* ======================================================
   SOFTFORM FRAME — For Structured Editable Input Blocks
   ====================================================== */

.softform-frame {
    background-color: #f3efe3;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    padding: 25px 30px;
    margin: 30px 0;
}

/* Lighten the content paper wrapper for Album Editor only */
/*body.album-editor-page .softpaper.opt-cream {
    background-color: #f3efe3;
} laurence at 8:30 saturdday */


/* E-27 — Car Album Dynamic Browse Renderer */

.car-album-article {
  max-width: 1100px;
  margin: 0 auto 40px auto;
  padding: 0 16px;
}

.car-album-sections.softpaper-block {
  background: var(--soft-cream);
  color: var(--soft-green);
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
  padding: 24px;
  margin-top: 24px;
}

/* Section wrappers */
.car-album-section + .car-album-section {
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 20px;
  padding-top: 20px;
}

.car-album-section-title {
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  font-weight: 600;
}

/* Key-value spec rows */
.car-album-spec-list {
  margin: 0;
}

.car-album-spec-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  column-gap: 16px;
  padding: 4px 0;
}

.car-album-spec-label {
  font-weight: 600;
}

.car-album-spec-value {
  margin: 0;
}

/* Paragraph/story blocks */
.car-album-paragraph-block + .car-album-paragraph-block {
  margin-top: 16px;
}

.car-album-subtitle {
  font-size: 1rem;
  margin: 0 0 4px 0;
  font-weight: 600;
}

.car-album-text p {
  margin: 0 0 8px 0;
}

/* Mobile tweaks */
@media (max-width: 700px) {
  .car-album-spec-row {
    grid-template-columns: 1fr;
  }
}

/* ACF repeater */
.car-album-repeater-row {
    margin: 20px 0;
    padding: 16px;
    border-radius: 12px;
    background: rgba(0,0,0,0.03);
}

.car-album-repeater-row h4 {
    margin: 0 0 8px 0;
}

.car-album-image-block {
    margin-top: 10px;
}

.car-album-image-block img {
    max-width: 100%;
    display: block;
    border-radius: 10px;
    box-shadow: var(--soft-shadow);
}
:root {

/* ============================================================
   1. ABOUT THE CAR
   ============================================================ */
--theme-about-mat:  #BCBD34;   /* Steel Blue (mat) */
--theme-about-tab:  #2E4A72;   /* Deep Steel Blue (banner) */
--theme-about-text: #ffffff;   /* white text */
/* ============================================================
   2. WORK IN PROGRESS
   ============================================================ */
--theme-wip-mat:      #FCBD34;   /* Bright Orange */
--theme-wip-tab:      #C68A2D;   /* Autumn Gold (deep) */
--theme-wip-text:     #1a1a1a;   /* charcoal text */

/* ============================================================
   3. MAINTENANCE
   ============================================================ */
--theme-maintenance-mat:  #C68A2D;   /* Autumn Gold */
--theme-maintenance-tab:  #8C6A28;   /* Deep Gold */
--theme-maintenance-text: #ffffff;   /* white */
  

/* ============================================================
   4. RESTORATION
   ============================================================ */
--theme-restoration-mat:  #B7410E;   /* Rust */
--theme-restoration-tab:  #7A2D07;   /* Dark Rust / Claret */
--theme-restoration-text: #ffffff;   /* white */

/* ============================================================
   5. MODIFICATION
   ============================================================ */
--theme-modification-mat:  #6C8C74;   /* Sage Green */
--theme-modification-tab:  #4C6A55;   /* Deep Sage */
--theme-modification-text: #ffffff;   /* white */
/* ============================================================
   6. SHORT TRIP
   ============================================================ */
--theme-trip-mat:  #8CBFE6;   /* Sky Blue */
--theme-trip-tab:  #4F84B3;   /* Deep Sky Blue */
--theme-trip-text: #ffffff;   /* white */
  /* ============================================================
     HOLIDAY ADVENTURES (Deep Ocean Blue)
     ============================================================ */
--theme-adventure-mat:  #e6eef5;   /* pale blue-grey */
--theme-adventure-tab:  #2e4a72;   /* deep ocean blue */
--theme-adventure-text: #ffffff;   /* white */
/* ============================================================
   8. AWARDS
   ============================================================ */
--theme-award-mat:  #B59B55;   /* Gold */
--theme-award-tab:  #8A6C2A;   /* Dark Gold */
--theme-award-text: #ffffff;   /* white */

/* ============================================================
   9. FUTURE PLANS
   ============================================================ */
--theme-future-mat:  #C9C9C9;   /* Silver Grey */
--theme-future-tab:  #8E8E8E;   /* Gunmetal Grey */
--theme-future-text: #1a1a1a;   /* charcoal */
  
    /* Neutral (About / Then & Now) */
  --theme-neutral-header:    #cfc7b5;
  --theme-neutral-bg:        #f3ede3;
}
/* ============================================================
   ACF ADD STORY BUTTON NORMALISATION — applies to all sections
   ============================================================ */
body.album-editor-page 
  .acf-field-repeater .acf-button {
    display: inline-block !important;
    margin: 10px 0 18px 0 !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
}

/* ensure the action row does not add extra spacing */
body.album-editor-page .acf-field-repeater .acf-actions {
    margin: 0 !important;
    padding: 0 !important;
}

/* force the button to appear directly under the section banner */
body.album-editor-page 
  .acf-field-repeater > .acf-input > .acf-actions {
      display: block !important;
}
/* ============================================================
   Article ARCHIVE / BROWSE — restore contained layout
   ============================================================ */

body.archive .site-content,
body.blog .site-content {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}
/* ============================================================
   FORCE: softcard images show full photo (no crop)
   ============================================================ */
a.softcard-img > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: var(--soft-cream) !important;
}

a.softcard-img {
  background: var(--soft-cream) !important;
}




/* ==========================================================
   Unified Soft Header Bar (Canonical)
   ========================================================== */

.softheader-wrap {
  width: 100%;
  margin: 0 0 24px;
}

.softheader-paper {
      margin-left: auto;
  margin-right: auto;
    margin: 2px auto 16px;
  /* Fixed visual height */
  min-height: 105px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
max-width: 1258px !important;
width: 100% !important;
background: #f3efe3;
border-radius: 14px !important;
border: 1px solid rgba(22,52,38,.25) !important;
box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
padding: 4px 40px 10px !important;
box-sizing: border-box !important;
text-align: center !important;
}


/* ----------------------------------------------------------
   Left / Right slots
   ---------------------------------------------------------- */

.softheader-left,
.softheader-right {
  display: flex;
  align-items: center;
  min-width: 80px; /* reserve space even if empty */
}

/* ----------------------------------------------------------
   Center block
   ---------------------------------------------------------- */

.softheader-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.softheader-title {
  margin: 0;
  font-size: 2.05rem;
  padding-bottom:1px !important;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #1a3b2e;
}


/* Tagline */
.softheader-tagline {
  margin-top: 4px;
  font-size: 0.95rem;
  color: #4b6b5a;
  min-height: 1.2em; /* reserve vertical space */
}

/* Center CTA */
.softheader-center-cta {
  margin-top: 8px;
}


/* Ensure softbtn renders correctly inside unified header */
.softheader-paper .softbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
/* Header toolbar buttons: stable height, minimum width */
.softheader-paper .softbtn {
  min-width: 110px;      /* approx width of “Cancel” */
  height: 40px;          /* lock vertical rhythm */
  padding: 0 18px;       /* horizontal comfort */
  line-height: 1;
  border-radius: 6px;
    color: #eae3d1 !important;
  white-space: nowrap;   /* never wrap */
}




/* =========================================================
   Unified Header – Hide desktop buttons on mobile
   ========================================================= */

@media (max-width: 768px) {

  /* Hide left + right action buttons */
  .softheader-left,
  .softheader-right {
    display: none !important;
  }

  /* Tighten vertical rhythm on mobile */
  .softheader-paper {
    min-height: 64px;
    padding: 10px 16px;
    grid-template-columns: 1fr !important; /* collapse to single column */
  }

  /* Ensure center truly occupies full width */
  .softheader-center {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }


}



/* =========================================================
   Unified Header Bar – Structural Layout
   ========================================================= */
/* =========================================================
   Soft Button Normalisation (a + button parity)
   ========================================================= */

.softbtn,
.softbtn:link,
.softbtn:visited,
button.softbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 110px;        /* “Cancel” baseline */
  height: 40px;            /* lock vertical rhythm */
  padding: 0 18px;

  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;

  border-radius: 6px;
  white-space: nowrap;
  cursor: pointer;

  text-decoration: none;
}

/* Remove browser button chrome */
button.softbtn {
  background: none;
  border: none;
  appearance: none;
  -webkit-appearance: none;
}

/* Green variant – applies equally to <a> and <button> */
.softbtn.green {
  background-color: #1a3b2e;
  color: #eae3d1;
}

/* Safety: override UA text-fill quirks */
button.softbtn.green {
  color: #eae3d1;
  -webkit-text-fill-color: #eae3d1;
}
@media (max-width: 768px) {

  /* Make the logo block the green bar */
.softtops-mobile-header {
    background-color: #1a3b2e !important;
    padding: 1px 0 !important;   /* tighten vertical space */
  }

  /* Ensure logo itself stays visually correct */
  .site-header img,
  .site-header .custom-logo {
    max-height: 72px;             /* adjust if needed */
    width: auto;
    display: block;
    margin: 0 auto;
  }

}
@media (max-width: 768px) {

  .site-header .inner-wrap,
  .site-header .header-container,
  #masthead .inner-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }

}
/*@media (max-width: 768px) {

  /* Remove the old menu bar completely */
/*.site-header .inner-wrap, .site-header .header-container, #masthead .inner-wrap {
    display: none !important;
  }

}*/


/* Colour the bars */
.menu-toggle::before,
.menu-toggle::after {
  background-color: #eae3d1 !important; 
  color: black !important;
  border-radius:16px !important;
}


@media (max-width: 768px) {

  .menu-toggle {
    position: absolute;
    z-index: 999;
  }

}
@media (max-width: 768px) {

  .menu-toggle {
    position: fixed;
    top: 107px;      /* adjust to sit alongside unified header */
    left: 6px;
    z-index: 999;
  }

}

@media (max-width: 768px) {

  /* Force ALL mobile menu text to British Racing Green */
  #site-navigation,
  #site-navigation *,
  #site-navigation.toggled,
  #site-navigation.toggled *,
  #site-navigation.toggled-on,
  #site-navigation.toggled-on * {
    color: #1a3b2e !important;
  }

}

/* DEBUG: outline SlickNav blocks so we can see what's what */
.slicknav_menu { outline: 3px solid red !important; }
.slicknav_menu > * { outline: 2px solid orange !important; }
.slicknav_menu .slicknav_nav { outline: 2px solid lime !important; }
.slicknav_menu .slicknav_nav > li { outline: 1px solid cyan !important; }
.slicknav_menu .slicknav_nav > li:first-child { outline: 3px solid magenta !important; }
/* Hide the first SlickNav item (often HOME) if it's being used as a logo row */
@media (max-width: 1024px) {
  .slicknav_menu .slicknav_nav > li:first-child {
    display: none !important;
  }
}
.car-album-silhouette-wrap {
  margin: 6px 0 4px;
  width:150px;
  text-align: left;
}

.car-silhouette {
  display: inline-block;
  width: 15px;          /* desktop */
  height: auto;
  opacity: 0.85;
}

/* Slightly smaller on mobile */
@media (max-width: 600px) {
  .car-silhouette {
    width: 30px;
  }
}
/* Centre Car Album text cluster only */
.softcard[data-post-type="car_album"] .softcard-title {
  margin: 8px 0 6px !important;
}


/* Gallery meta: camera + text in two-column grid */
.softcard-meta .member-gallery-silhouette-wrap {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 10px;
  align-items: center;
}

/* Camera / tripod SVG */
.softcard-meta .member-gallery-silhouette-wrap svg,
.softcard-meta .member-gallery-silhouette-wrap img {
  width: 22px;
  height: auto;
  opacity: 0.75;
  display: block;
}

/* Meta text */
.softcard-meta .member-gallery-silhouette-wrap {
  font-size: 0.9rem;
  line-height: 1.35;
}

/* Gallery cards only: identify by link URL */
.softcard:has(a.softcard-img[href*="/member-galleries/"]) .softcard-content {
  padding-left: 1px !important;
  padding-right: 1px;
}

/* === Softcards Photo Frame === */
.softcard:has(a.softcard-img[href*="/member-galleries/"]) .softcard-img {
  display: block;
  max-height:360px;
  padding: 4px;                 /* thinner mount */
  background: #f6f1e6;          /* very close to page cream */
  border-radius: 4px;           /* less blobby */
  box-shadow:
    inset 0 0 0 1px rgba(26,59,46,0.18),
    0 2px 6px rgba(0,0,0,0.10);
}
/* Gallery card image must fill frame */
.softcard-img img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;   /* this is the critical line */
}
/* Gallery cards only — remove aspect-ratio */
.softcard:has(a.softcard-img[href*="/member-galleries/"]) .softcard-img {
  aspect-ratio: auto;
}
/* Gallery cards — fixed photo height */
.softcard:has(a.softcard-img[href*="/member-galleries/"]) .softcard-img {
  height: 230px;        /* ← adjust once, cards stay stable */
  max-height: none;
}
/* Gallery images — fill width, preserve full image */
.softcard:has(a.softcard-img[href*="/member-galleries/"]) .softcard-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: none;
  display: block;
}

/* GALLERY CARDS — full-bleed photo */
.softcard:has(a.softcard-img[href*="/member-galleries/"]) .softcard-img {
  margin-left: -28px;   /* matches card padding */
  margin-right: -28px;
  border-radius: 0;     /* let frame define shape */
}
/* Gallery card content — tighter vertical rhythm */
.softcard:has(a.softcard-img[href*="/member-galleries/"]) .softcard-meta {
  margin: 0;

}
/* Gallery cards should NOT stretch vertically */
.softcard:has(a.softcard-img[href*="/member-galleries/"]) .softcard-content {
  flex: 0 !important;
}

.softcard:has(a.softcard-img[href*="/member-galleries/"]) .softcard-content {
  padding-bottom: 0 !important;
}
    /* Gallery cards: allow text to span full width under photo */
@media (min-width: 768px) {
    .softcard:has(a.softcard-img[href*="/member-galleries/"]) .softcard-content {
          margin-left: -22px;   /* matches card padding */
      margin-right: -22px;
      padding-left: 14px !important;
      padding-right: 14px !important;
}
}
/* Portrait image optical centring */
.softcard-img img {
  object-position: center 52%;
}
/* Inner photo edge — subtle paper shadow */
.softcard:has(a.softcard-img[href*="/member-galleries/"]) .softcard-img img {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}


.softpaper-inner {
  max-width: 1050px;          /* comfortable reading width */
  margin: 0 auto;            /* centre the column */
  padding: 1.5rem 1.75rem;   /* inner breathing space */
}

.softpaper-inner ul {
  margin-top: 1.25rem;
  padding-left: 1.25rem;
}

.softpaper-inner li {
  margin-bottom: 0.75rem;
}
.softcard-identity {
    width:100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 6px;
}



.softcard-identity-stacked {
  justify-content: center;
  margin-top: 12px;
}

.softcard-identity img {
  width: 22px;
  height: auto;
  opacity: 0.9;
}

.softcard-album .softcard-identity img {
  width: 44px;
}

/* ======== IN LINE ======== */
/*.softcard-identity-inline {
  justify-content: flex-start;
}*/
/* icon */
.softcard-identity-inline {
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  width: 100%;
}
.softcard-identity-inline img {
  width: 55px !important;          /* or 20px / 18px if you want it lighter */
  height: auto;
  flex: 0 0 22px !important;       /* never grow, never shrink */
  opacity: 0.85;
}


.softcard-identity-inline .softcard-meta-text {
  flex: 1 1 auto;
  min-width: 0;             /* critical for Safari */
  font-size: 0.9rem;
  line-height: 1.3;
}



