/* ==============================
   POST GRID / STORY CARD THUMBS
   Full image visible, no crop
   ============================== */
.elementor-posts .elementor-post__thumbnail,
.elementor-posts__thumbnail,
.e-loop-item .elementor-post__thumbnail {
  width: 100%;
  min-height: 200px;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f0f0f0;     /* change to match your site background */
}

.elementor-posts .elementor-post__thumbnail img,
.elementor-posts__thumbnail img,
.e-loop-item img {
  width: 100%;
  height: auto !important;
  max-height: 70vh !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block;
}

/* ==============================
   MOBILE ADJUSTMENTS
   Tighter heights, no blank space
   ============================== */
@media (max-width: 767px) {
  .elementor-posts .elementor-post__thumbnail,
  .elementor-posts__thumbnail,
  .e-loop-item .elementor-post__thumbnail {
    min-height: 150px;
    max-height: 50vh;             /* shorter cap on mobile */
    background-color: transparent !important; /* removes grey fill on mobile */
  }

  .elementor-posts .elementor-post__thumbnail img,
  .elementor-posts__thumbnail img,
  .e-loop-item img {
    max-height: 50vh !important;
    width: 100% !important;
    object-fit: cover !important; /* on mobile, cover looks cleaner in single column */
  }
}

/* ==============================
   INDIVIDUAL POST CONTENT
   ============================== */
.elementor-post .elementor-widget-image img,
.single-post .elementor-widget-image img,
article .elementor-widget-image img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: unset !important;
}

/* ==============================
   FOOTER RESET
   ============================== */
footer img,
.site-footer img,
.elementor-location-footer img,
.footer-widget img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: unset !important;
}
.elementor-location-footer .elementor-widget-theme-site-logo img {
  width: 150px !important;
  height: auto !important;
  max-width: 150px !important;
}
/* Fix top/bottom clipping on Elementor carousel slides */
.elementor-widget-carousel .swiper-slide {
  height: auto !important;
}

.elementor-widget-carousel .swiper-wrapper {
  align-items: stretch !important;
  overflow: visible !important;
}

.elementor-widget-carousel .swiper-container {
  overflow: visible !important;
  padding: 20px 0 !important; /* breathing room top and bottom */
}

.elementor-widget-carousel {
  overflow: hidden !important;
}

.elementor-widget-carousel .swiper-slide {
  height: auto !important;
  padding-top: 50px !important;
  padding-bottom: 50px !important;
  box-sizing: border-box !important;
}
/* This is the key — stop the outer widget from clipping */
.elementor-widget-carousel {
  overflow: visible !important;
}
/* ─── Responsive Carousel Fix ─── */

/* Base carousel container */
.elementor-widget-carousel .swiper-container,
.elementor-widget-carousel .swiper-wrapper {
  overflow: visible !important;
}

.elementor-widget-carousel {
  overflow: hidden !important;
}

/* Slides adjust to content height */
.elementor-widget-carousel .swiper-slide {
  height: auto !important;
  overflow: visible !important;
}

/* Desktop */
@media (min-width: 1025px) {
  .elementor-widget-carousel .swiper-slide {
    min-height: 350px !important;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-widget-carousel .swiper-slide {
    min-height: 300px !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .elementor-widget-carousel .swiper-slide {
    min-height: 250px !important;
  }
}




