/* ==============================
   POST GRID / STORY CARD THUMBS
   ============================== */
.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;
}

.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 thumb adjustments */
@media (max-width: 767px) {
  .elementor-posts .elementor-post__thumbnail,
  .elementor-posts__thumbnail,
  .e-loop-item .elementor-post__thumbnail {
    min-height: 150px;
    max-height: 50vh;
    background-color: transparent !important;
  }

  .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;
  }
}

/* ==============================
   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
   ============================== */
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;
}

/* ==============================
   CAROUSEL FIX (all devices)
   ============================== */
.elementor-widget-carousel {
  overflow: hidden !important;
}

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

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

.elementor-widget-carousel .swiper-slide {
  height: auto !important;
  overflow: visible !important;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  box-sizing: border-box !important;
}

@media (min-width: 1025px) {
  .elementor-widget-carousel .swiper-slide { min-height: 350px !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-widget-carousel .swiper-slide { min-height: 300px !important; }
}
@media (max-width: 767px) {
  .elementor-widget-carousel .swiper-slide { min-height: 250px !important; }
}

/* Carousel image - contain (all devices) */
.elementor-carousel-image {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
}