/* UNIVERSAL TEST - Affects all slideshows sitewide */
div[class*="WaGadgetSlideshow"],
.WaGadgetSlideshow,
.WaGadgetSlideshow *,
.b-slideshow,
.b-slideshow-viewport {
    background-color: transparent !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
} /* <-- FIXED: Added missing closing bracket here to repair syntax */

/* ==========================================================================
   FORCE WILDA_PRICOT 4-GADGET ROW TO REMAIN HORIZONTAL ON MOBILE PHONES
   ========================================================================== */
@media screen and (max-width: 768px) {

  /* 1. Target the absolute master row wrappers in the top header section */
  .wa-theme-header [id*="layoutRow"],
  .wa-theme-header [class*="layoutRow"],
  .wa-theme-header .wa-layout-row,
  header [class*="layoutRow"] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Strictly forbids vertical stacking */
    justify-content: space-around !important; /* Spaces your 4 columns evenly */
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: none !important;
    float: none !important;
  }

  /* 2. Target the individual column boxes and force a rigid 24% width lock */
  .wa-theme-header [id*="layoutColumn"],
  .wa-theme-header [class*="layoutColumn"],
  .wa-theme-header .wa-layout-column,
  header td[class*="layoutColumn"] {
    display: inline-block !important;
    flex: 0 0 24% !important; /* Locks width space allocations at 24% */
    width: 24% !important;
    max-width: 24% !important;
    min-width: 24% !important;
    clear: none !important;
    float: left !important;
    margin: 0 !important;
    padding: 0 2px !important;
    box-sizing: border-box !important;
  }

  /* 3. Target specific custom items inside mobile headers without breaking back-end layout blocks */
  .wa-theme-header .wa-layout-column .waGadget *,
  .wa-theme-header .wa-layout-column .canvasContainer * {
    display: inline-block !important;
    clear: none !important;
    float: none !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
  }

  /* 4. Stop the native gadget wrappers from causing misalignment issues */
  .wa-theme-header .IdgGadget,
  .wa-theme-header .gadgetBox,
  .wa-theme-header .waGadget,
  .wa-theme-header .WaGadget {
    width: 100% !important;
    text-align: center !important;
    display: block !important;
  }

  /* 5. Dynamically resize your custom Canva image graphics to fit mobile headers */
  .wa-theme-header [id*="layoutColumn"] img,
  .wa-theme-header .wa-layout-column img,
  header img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: 35px !important; /* Caps max height to prevent layout clipping */
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 auto !important;
  }
} /* <-- FIXED: Ensured media query closes correctly at the end */
