/*
Theme Name: TheDesignPeople – Divi 5 Child
Template: Divi
Author: The Design People
Description: Website template.
Version: 1.0.0
*/

/* ============= 1) DESIGN TOKENS + GLOBAL HELPERS ============= */
:root {
  --td-red: #B41F14;
  --td-cream: #ece9e2;
  --td-light-green: #6C994B;
  --td-dark-green: #1D4E21;
  --td-white: #fff;
  --td-grey-100: #f6f5f3;
  --td-grey-200: #DBD8D4;
  --td-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#skip a,
#skip a:hover,
#skip a:visited {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#skip a:focus {
  position: static;
  width: auto;
  height: auto;
}

/* ============= 2) TYPOGRAPHY (Poppins) + BASE ELEMENTS ============= */
body:not(.et-fb) {
  font-family: "Poppins", sans-serif;
  letter-spacing: .02em;
  font-size: clamp(16px, calc(0.1923vw + 15.3077px), 19px) !important;
  color: #222;
  word-break: break-word;
  background-color: var(--td-grey-200);
}

body:not(.et-fb) p,
body:not(.et-fb) li {
  font-size: clamp(18px, calc(0.1923vw + 17.3077px), 21px) !important;
  line-height: 1.4;
  color: #222;
  font-weight: 400;
}

p {
  padding-bottom: 15px;
}

h1,
h2,
h3,
.h1,
.h2,
.h3 {
  font-family: "Poppins", sans-serif !important;
  font-weight: 600;
}

h4,
h5,
h6,
.h4,
.h5,
.h6 {
  font-family: "Poppins", sans-serif !important;
}

h1,
.h1 {
  font-size: 28.5px;
  line-height: 1.1;
  margin: 10px 0 0;
  color: var(--td-gold);
  padding-bottom: 15px;
}

h2,
.h2 {
  font-size: 25px;
  line-height: 1.2;
  color: var(--td-gold);
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: .5px solid var(--td-gold);
  display: inline-block;
}

h3,
.h3 {
  font-size: 21.5px;
  font-weight: 300;
  line-height: 1.3;
  padding-bottom: 15px;
  margin-top: 10px;
}

@media (min-width:768px) {

  h1,
  .h1 {
    font-size: 34.5px;
  }

  h2,
  .h2 {
    font-size: 30px;
  }

  h3,
  .h3 {
    font-size: 25.5px;
  }
}

@media (min-width:1280px) {

  h1,
  .h1 {
    font-size: 40px;
  }

  h2,
  .h2 {
    font-size: 35px;
  }

  h3,
  .h3 {
    font-size: 30px;
  }
}

a {
  color: var(--td-gold);
  font-weight: 400;
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-color: var(--td-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

a:hover {
  color: var(--td-navy);
  text-decoration-color: var(--td-navy);
}

hr {
  background: #efefef;
  min-height: 1px;
  margin: 15px 0 20px;
}

ul ul {
  margin-bottom: 0;
}

ol li {
  padding-bottom: 12px;
}

img {
  border-radius: 10px;
}

.leadText,
.leadText p {
  font-size: clamp(27px, calc(1.2vw + 10px), 40px);
  font-weight: 500;
  color: #172142;
}

/* Completely disable sticky behavior everywhere in the header */
.et-l--header,
.et-l--header .et_pb_section,
.et_pb_sticky,
.et_pb_sticky--top,
.et_pb_sticky--bottom,
[class*="et_pb_sticky"] {
  position: static !important;
  top: auto !important;
}

/* No transforms that can simulate a stuck state */
.et-l--header {
  transform: none !important;
}

/* Ensure parents don’t create odd clipping/thresholds */
#page-container,
#et-boc,
.et_builder_inner_content {
  overflow: visible !important;
}


/* ============= 3) LAYOUT WIDTHS (global rows) ============= */
@media (max-width:980px) {
  .et_pb_row {
    width: 92%;
    max-width: 1920px !important;
    margin: 0 auto;
  }
}

@media (min-width:981px) and (max-width:3500px){
  .et_pb_row, .et_pb_row:not([class*=et_flex_column]) {
    width: 92%!important;
    max-width: 1920px !important;
    margin: 0 auto;
  }
  
  .et_pb_group .et_pb_row, .et_pb_group .et_pb_row:not([class*=et_flex_column]) {
    width: 100%!important;
    max-width: 1920px !important;
    margin: 0 auto;
  }
}

  /* (header-row specifics moved to header-nav.css) */
}

/* ============= 4) BUTTONS (generic) ============= */
/* =========================================================
   FRONT-END BUTTON STYLES (NOT Divi Visual Builder UI)
   Builder body class includes: et-fb (and et-vb-root-ancestor)
   ========================================================= */

/* FRONT END ONLY: avoid styling Divi builder UI buttons */
body:not(.et-fb) button,
body:not(.et-fb) input[type="button"],
body:not(.et-fb) input[type="submit"],
body:not(.et-fb) .et_pb_button.no-icon-button,
body:not(.et-fb) .et_pb_button,
body:not(.et-fb) .et-db #et-boc .et-l .et_pb_module a.et_pb_button, 
.et_pb_button,
.et_pb_contact_submit, .et_password_protected_form .et_submit_button, .et_pb_bg_layout_light .et_pb_newsletter_button, .comment-reply-link, .form-submit .et_pb_button, .et_pb_bg_layout_light .et_pb_promo_button, .et_pb_bg_layout_light .et_pb_more_button, .et_pb_contact p input[type="checkbox"]:checked+label i:before, .et_pb_bg_layout_light.et_pb_module.et_pb_button  {
  font-size: 19px;
  text-transform: none;
  background-color: var(--td-light-green);
  padding: 8px 15px;
  color: #fff!important;
  letter-spacing: .5px;
  border-radius: 12px!important;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  border: .5px solid var(--td-light-green);
  text-decoration: none!important;

}

body:not(.et-fb) button:hover,
body:not(.et-fb) input[type="button"]:hover,
body:not(.et-fb) input[type="submit"]:hover,
body:not(.et-fb) .et_pb_button.no-icon-button:hover,
body:not(.et-fb) .et_pb_button:hover,
body:not(.et-fb) .et-db #et-boc .et-l .et_pb_module a.et_pb_button:hover,
.et_pb_contact_submit:hover, .et_password_protected_form .et_submit_button:hover, .et_pb_bg_layout_light .et_pb_newsletter_button:hover, .comment-reply-link:hover, .form-submit .et_pb_button:hover, .et_pb_bg_layout_light .et_pb_promo_button:hover, .et_pb_bg_layout_light .et_pb_more_button:hover, .et_pb_contact p input[type="checkbox"]:checked+label i:before:hover, .et_pb_bg_layout_light.et_pb_module.et_pb_button:hover{
  background-color: var(--td-dark-green);
  color: #fff!important;
  border: .5px solid #fff;
  text-decoration: none;
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}

body:not(.et-fb) .et_pb_bg_layout_light .et_pb_more_button {
  color: white!important;
}

body:not(.et-fb)  #page-container .et_pb_section .et_pb_button {
  text-decoration: none!important; }
  

/* ============= 5) LISTS & TABLES (generic) ============= */
/* -----------------------------------
   Tick List – clickable tick only
----------------------------------- */

.tick-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.tick-list ul {
  margin-top: 15px;
}

.tick-list li {
  list-style: none;
  position: relative;
  padding-left: 70px;
  /* space for large circle */
  padding-bottom: 14px;
  line-height: 1.5;
}

/* Clickable tick circle */
.tick-icon {
  position: absolute;
  left: 0;
  top: 0.1em;

  width: 52px;
  height: 52px;
  background: var(--td-light-green);
  border-radius: 50%;

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

  text-decoration: none;
  cursor: pointer;

  transition:
    background-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

/* Tick symbol */
.tick-icon::before {
  content: "✔";
  color: #fff!important;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

/* Hover + keyboard focus */
.tick-icon:hover,
.tick-icon:focus-visible {
  color: white!important;
  background: var(--td-dark-green);
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
  outline: none;
}

/* Active press */
.tick-icon:active {
  color: white!important;
  transform: scale(.96);
}

/* Optional: prevent text from feeling clickable */
.tick-list li {
  cursor: default;
}

@media (hover:none) {
  .tick-icon {
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .08);
  }
}


.cross-list {
  list-style: none;
  padding-left: 0;
}

.cross-list li {
  list-style-type: none;
  position: relative;
  padding-left: 30px;
  padding-bottom: 8px;
}

.cross-list li::before {
  content: "x";
  color: red;
  position: absolute;
  font-size: 30px;
  left: 0;
  top: -8px;
}

/* tables inside Divi layout */
.et-l table:not(.wp-block-table) {
  width: auto;
  min-width: 100%;
  border-collapse: collapse;
  border-radius: 5px;
  border: none;
  overflow: auto;
}

.et-l table:not(.wp-block-table) td {
  padding: 10px;
  border: none;
}

.et-l table {
  border: 0;
}

.et-l .addBorders table:not(.wp-block-table) td {
  border: 1px solid #efefef;
  padding: 15px;
  word-break: break-word;
}

/* ============= 6) FORMS (generic only) ============= */
input,
select,
textarea {
  border: 1px solid #cfcfcf;
  box-shadow: none;
  line-height: 1.5;
  padding: 8px;
  font-size: 17px;
  border-radius: 8px;
}

label {
  padding-bottom: 7px;
  display: block;
}

.et_pb_contact .et_pb_contact_field input, .et_pb_contact .et_pb_contact_field textarea, .et_pb_contact_select {
 font-family: "Poppins", sans-serif!important;
 font-size: 18px!important;
 color: #999!important;
}
.et_pb_contact_select {
 color: #777!important;
}

.small-help {
  font-size: .9em;
  opacity: .8;
}

/* Optional form wrapper */
.form-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid #cfcfcf;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
}

/* ============= 7) FOOTER (clean) ============= */
.et-l--footer p,
.et-l--footer,
.et-l--footer a,
.et-l--footer ul li {
  color: #f2eeee !important;
}

.footerLinks ul li {
  list-style-type: none;
  color: #f2eeee !important;
}

.footerLinks ul li a,
.footerLinks a {
  color: #f2eeee;
  text-decoration: underline;
}

.footerLinks ul li a:hover {
  text-decoration: underline;
}

.et-l--footer ul {
  padding-left: 0;
}

ul.et_pb_social_media_follow {
  margin-left: 0;
  padding-left: 0;
}

li.footerHeader,
li.footerHeader a {
  font-weight: 600 !important;
}

.et-l.et-l--footer a {
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-color: var(--td-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.et-l.et-l--footer a:hover {
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-color: var(--td-white);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.et-l.et-l--footer li.et_pb_social_icon a,
header.et-l.et-l--header a,
h3 a,
h2.woocommerce-loop-product__title,
a.woocommerce-LoopProduct-link.woocommerce-loop-product__link,
.et_pb_tabs_controls li a {
  text-decoration: none;
  text-decoration-line: none;
}

@media (min-width: 981px) {
   footer.et-l.et-l--footer .et_pb_gutters3 .et_block_row .et_pb_column, footer.et-l.et-l--footer .et_pb_gutters3.et_block_row>.et_pb_column {
        margin-right: 3% !important;
        width: 30% !important;
    }
}

@media (max-width:760px) {
.et_pb_row_0_tb_footer.et_pb_row {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 25px;
    padding-right: 25px;
}

.et_pb_image_0_tb_footer {
    width: 300px;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}

}

/* Mobile padding clean-up for ULs (footer only; header moved) */
@media (max-width:980px) {
  .et-l--footer ul {
    padding-left: 0;
  }
}

/* Small hover cleanup (header part moved) */
.et_pb_tabs_controls li a:hover,
li.et_pb_social_icon a:hover {
  text-decoration: none;
}

/* ============= 8) UTILITIES ============= */
.anchor-target {
  position: relative;
}

.anchor-target::before {
  content: "";
  display: block;
  height: 140px;
  margin-top: -140px;
  visibility: hidden;
}

/* ============= 9) GENERAL STYLES ============= */

body:not(.et-fb) .header-content.et_flex_module h1,
body:not(.et-fb) .header-content.et_flex_module h3,
body:not(.et-fb) .header-content.et_flex_module ul li,
body:not(.et-fb) .header-content.et_flex_module p {
  color: white !important;
}

.header-content.et_flex_module h1 {
  /* text-transform: uppercase!important; */
  font-size: 44px !important;
}

.header-content.et_flex_module ul li {
  margin-bottom: 13px;
  font-size: 25px !important;
}

.bigText p,
.bigText.white p {
  font-size: 23px;
}

.bigText.white p {
  color: #FFFFFF !important;
}

body.home section.et_pb_fullwidth_header_0 {
  margin-left: 15px!important;
}
  
.et_pb_fullwidth_header .et_pb_fullwidth_header_container {
  width: 80%;
  max-width: 1080px;
  margin-left: 0 !important;

}

@media (max-width:980px) {
  .et_pb_fullwidth_header, .et_pb_fullwidth_header .et_pb_fullwidth_header_container {
    width: 96%!important;
    max-width: 1080px;
    margin-left: auto!important;
    margin-right: auto!important;
    padding-top: 0 !important;
  }
  
 .et_pb_section_0.et_pb_section .et_pb_row:not([class*=et_flex_column]) {
   width: 100%!important;
   margin: auto;
   padding-left: 10%;
   padding-right: 10%;
 }
 
 .header-content.et_flex_module h1 {
   font-size: 38px !important;
 }
 
 body.home section.et_pb_fullwidth_header_0 {
   margin-left: 0!important;
 }
  
}

.et_pb_blurb_content h3 {
  font-size: 24px !important;
  font-weight: 600 !important;
}

/* TIP CARDS – simple layout + equal heights */

/* Ensure the row’s columns stretch and each module can fill the column */
.et_pb_row.tdp-tip-row{
  align-items: stretch !important;
}

.et_pb_row.tdp-tip-row > .et_pb_column{
  display: flex !important;
  flex-direction: column !important;
}

.et_pb_row.tdp-tip-row > .et_pb_column > .et_pb_module{
  height: 100% !important;
}

/* Card styling + make internal layout stack cleanly */
body .et_pb_blurb.tdp-tip-card{
  background: var(--td-cream);
  border: none!important;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  height: 100% !important;          /* fills the column */
  display: flex !important;
  flex-direction: column !important;
}

/* Center icon + title, keep description left aligned */
body .et_pb_blurb.tdp-tip-card .et_pb_main_blurb_image{
  margin: 0 auto 14px !important;
  float: none !important;           /* overrides any “icon left” behaviour */
}

body .et_pb_blurb.tdp-tip-card .et_pb_module_header{
  text-align: center !important;
  margin: 0 0 12px !important;
}

body .et_pb_blurb.tdp-tip-card .et_pb_blurb_description{
  text-align: left !important;
}

body .et_pb_blurb.tdp-tip-card .et_pb_blurb_description p{
  margin: 0 !important;
  line-height: 1.55;
}

/* Keep overlay as-is (only if you still need it) */
.tdp-overlay-section{ position: relative; }
.tdp-overlay-section::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}
.tdp-overlay-section > *{
  position: relative;
  z-index: 2;
}


/* Break tip cards at 1400px + CENTER last row */
@media (max-width: 1400px){
  .et_pb_row.tdp-tip-row{
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 26px !important;
    align-items: stretch !important;
    justify-content: center !important; /* <-- KEY: centers the incomplete last row */
  }

  .et_pb_row.tdp-tip-row > .et_pb_column{
    flex: 0 0 calc(33.333% - 26px) !important;
    max-width: calc(33.333% - 26px) !important;
    width: auto !important;
    margin: 0 !important;               /* IMPORTANT: don’t fight gap with margins */
    margin-bottom: 30px!important;
  }
}

/* 2 per row (still centered) */
@media (max-width: 1100px){
  .et_pb_row.tdp-tip-row{
    justify-content: center !important; /* keep centering at this breakpoint too */
  }

  .et_pb_row.tdp-tip-row > .et_pb_column{
    flex: 0 0 calc(50% - 26px) !important;
    max-width: calc(50% - 26px) !important;
  }
}

/* 1 per row (mobile) */
@media (max-width: 767px){
  .et_pb_row.tdp-tip-row{
    justify-content: flex-start !important; /* optional, doesn’t matter at 100% width */
  }

  .et_pb_row.tdp-tip-row > .et_pb_column{
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}


/* Your width tweak (kept as-is) */
@media (min-width:981px) and (max-width:2000px){
  .et_pb_row_2.et_pb_row.tdp-tip-row {
    width: 92%!important;
  }
}


/* First column full width from 1200px and below (Divi 5-safe) */
@media (max-width: 1200px){

  /* Divi can use either the row OR an inner wrapper as the flex container */
  .tdp-first-full-1200,
  .tdp-first-full-1200 > .et_pb_row_inner,
  .tdp-first-full-1200 > .et_pb_row_inner_wrap{
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
  }

  /* Apply sizing to columns regardless of which element is flex container */
  .tdp-first-full-1200 > .et_pb_column,
  .tdp-first-full-1200 > .et_pb_row_inner > .et_pb_column,
  .tdp-first-full-1200 > .et_pb_row_inner_wrap > .et_pb_column{
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Extra hammer: specifically override your 3/5 and 2/5 tablet widths */
  .tdp-first-full-1200 > .et_flex_column_3_5,
  .tdp-first-full-1200 > .et_flex_column_3_5_tablet,
  .tdp-first-full-1200 > .et_flex_column_2_5,
  .tdp-first-full-1200 > .et_flex_column_2_5_tablet,
  .tdp-first-full-1200 > .et_pb_row_inner > .et_flex_column_3_5,
  .tdp-first-full-1200 > .et_pb_row_inner > .et_flex_column_3_5_tablet,
  .tdp-first-full-1200 > .et_pb_row_inner > .et_flex_column_2_5,
  .tdp-first-full-1200 > .et_pb_row_inner > .et_flex_column_2_5_tablet,
  .tdp-first-full-1200 > .et_pb_row_inner_wrap > .et_flex_column_3_5,
  .tdp-first-full-1200 > .et_pb_row_inner_wrap > .et_flex_column_3_5_tablet,
  .tdp-first-full-1200 > .et_pb_row_inner_wrap > .et_flex_column_2_5,
  .tdp-first-full-1200 > .et_pb_row_inner_wrap > .et_flex_column_2_5_tablet{
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}


/* =========================================================
   DIVI 5 NESTED CARDS (tdp-nested-all-1600)
   - Early break: nested image drops below text at <=1600px
   - Outer cards equal height (981–1600px)
   - Caption sits close to image (no reserved gap)
   ========================================================= */


/* =========================================================
   1) EARLY BREAK: Stack nested-row columns at 1600px and below
   ========================================================= */
@media (max-width: 1600px){

  .tdp-nested-all-1600 .et_pb_row_nested,
  .tdp-nested-all-1600 .et_pb_row_nested > .et_pb_row_inner,
  .tdp-nested-all-1600 .et_pb_row_nested > .et_pb_row_inner_wrap{
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
  }

  .tdp-nested-all-1600 .et_pb_row_nested > .et_pb_column,
  .tdp-nested-all-1600 .et_pb_row_nested > .et_pb_row_inner > .et_pb_column,
  .tdp-nested-all-1600 .et_pb_row_nested > .et_pb_row_inner_wrap > .et_pb_column{
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .tdp-nested-all-1600 .et_pb_row_nested > [class*="et_flex_column_"],
  .tdp-nested-all-1600 .et_pb_row_nested > .et_pb_row_inner > [class*="et_flex_column_"],
  .tdp-nested-all-1600 .et_pb_row_nested > .et_pb_row_inner_wrap > [class*="et_flex_column_"]{
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}


/* =========================================================
   2) EQUAL HEIGHT OUTER CARDS (981–1600px)
   + Caption close to image (no reserved padding gap)
   ========================================================= */
@media (max-width: 1600px) and (min-width: 981px){

  /* Outer row stretches columns (Divi 5 rows are flex; this enforces stretch) */
  .tdp-nested-all-1600{
    align-items: stretch !important;
  }

  /* Outer columns become flex columns */
  .tdp-nested-all-1600 > .et_pb_column,
  .tdp-nested-all-1600 > .et_pb_row_inner > .et_pb_column,
  .tdp-nested-all-1600 > .et_pb_row_inner_wrap > .et_pb_column{
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
  }

  /* First Group inside each outer column fills height */
  .tdp-nested-all-1600 > .et_pb_column > .et_pb_group,
  .tdp-nested-all-1600 > .et_pb_row_inner > .et_pb_column > .et_pb_group,
  .tdp-nested-all-1600 > .et_pb_row_inner_wrap > .et_pb_column > .et_pb_group{
    flex: 1 1 auto !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* ---------------------------------------------------------
     CAPTION FIX (THIS is what your screenshot shows)
     Remove any reserved padding/absolute positioning,
     and control the gap with a simple margin.
     --------------------------------------------------------- */

  /* Make the image module a clean vertical stack */
  .tdp-nested-all-1600 .et_pb_row_nested .et_pb_column.et-last-child .et_pb_image{
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: 0 !important;   /* <-- removes the big hatched gap */
  }

  /* Caption sits directly under the image */
  .tdp-nested-all-1600 .et_pb_row_nested .et_pb_column.et-last-child .et_pb_image .et_pb_text{
    position: static !important;    /* <-- cancels any absolute pinning */
    margin-top: 6px !important;     /* <-- adjust gap here (try 4–8px) */
    padding: 0 !important;
    line-height: 1.2 !important;
  }

  /* Remove default <p> margins that can add extra gap */
  .tdp-nested-all-1600 .et_pb_row_nested .et_pb_column.et-last-child .et_pb_image .et_pb_text p{
    margin: 0 !important;
  }

  /* Keep image behaving normally */
  .tdp-nested-all-1600 .et_pb_row_nested .et_pb_column.et-last-child .et_pb_image_wrap,
  .tdp-nested-all-1600 .et_pb_row_nested .et_pb_column.et-last-child .et_pb_image_wrap img{
    display: block !important;
  }
}


/* =========================================================
   Universal image + caption spacing for .tdp-nested-all-1600
   Handles BOTH patterns:
   A) caption INSIDE the image module
   B) caption as SIBLING under the image module
   ========================================================= */

/* 1) Image column in the nested row: controls spacing between direct children
      (fixes sibling caption cases: image module + text module) */
.tdp-nested-all-1600 .et_pb_row_nested > .et_pb_column.et-last-child{
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;          /* <-- your spacing dial */
}

/* Remove default margins that can add extra space */
.tdp-nested-all-1600 .et_pb_row_nested > .et_pb_column.et-last-child .et_pb_image,
.tdp-nested-all-1600 .et_pb_row_nested > .et_pb_column.et-last-child .et_pb_text{
  margin: 0 !important;
}

/* 2) Image module itself: make it a tidy flex stack too
      (fixes inside-image caption cases) */
.tdp-nested-all-1600 .et_pb_row_nested > .et_pb_column.et-last-child .et_pb_image{
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;          /* keep consistent */
  padding-bottom: 0 !important;
}

/* Ensure wrapper/img don’t introduce spacing */
.tdp-nested-all-1600 .et_pb_row_nested > .et_pb_column.et-last-child .et_pb_image_wrap{
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* INSIDE-image caption module: kill any margins so gap is the only spacing */
.tdp-nested-all-1600 .et_pb_row_nested > .et_pb_column.et-last-child .et_pb_image .et_pb_text{
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  line-height: 1.2 !important;
}

.tdp-nested-all-1600 .et_pb_row_nested > .et_pb_column.et-last-child .et_pb_image .et_pb_text p,
.tdp-nested-all-1600 .et_pb_row_nested > .et_pb_column.et-last-child > .et_pb_text p{
  margin: 0 !important;
  line-height: 1.2 !important;
}
