/**
 * Mobilni prikaz slika (≤1199px): centar, max-width 100%, prirodna visina (contain).
 * Hero baneri (.tw-inner-page-banner) ostaju cover — posebno isključeni na dnu.
 */
@media screen and (max-width: 1199.98px) {
  .half-fluid .left-half,
  .half-fluid .right-half,
  .half-fluid [class*="col-xl-"].position-xl-absolute {
    width: 100% !important;
    max-width: 100%;
    margin-inline: auto;
  }

  .half-fluid .left-half,
  .half-fluid .right-half {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Osnovni .image u sekcijama (ne hero baner) */
  .half-fluid .image,
  .half-fluid figure.image,
  .section .image.fadein-item,
  figure.image.fadein-item,
  body:not(.home-page) .facility2-swiper .image,
  body:not(.home-page) .nw-swiper figure.image,
  body:not(.home-page) .nw-swiper .image {
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    margin-left: 0 !important;
    margin-inline: 0 !important;
    padding-top: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    position: relative !important;
    box-sizing: border-box;
    padding: 0;
  }

  .half-fluid .image img,
  .half-fluid figure.image img,
  .section .image.fadein-item img,
  figure.image.fadein-item img,
  body:not(.home-page) .facility2-swiper .image img,
  body:not(.home-page) .nw-swiper figure.image img,
  body:not(.home-page) .nw-swiper .image img {
    position: static !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: min(65vh, 640px) !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block;
    margin-inline: 0;
  }

  /* nw-swiper / facility2 na početnoj: cover + aspect-ratio u mobile-home.css */
  body:not(.home-page) .nw-swiper,
  body:not(.home-page) .facility2-swiper {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  body:not(.home-page) .nw-swiper .swiper-slide,
  body:not(.home-page) .facility2-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto !important;
  }

  /* Intro — mockup aplikacije */
  .intro-sec1 .tw-intro-sec_img figure {
    padding-top: 0 !important;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
  }

  .intro-sec1 .tw-intro-sec_img figure img {
    position: static !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: min(70vh, 720px) !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  /* Ökologie — cela slika, bez padding-top kutije */
  .tw-sustain-sec_img {
    width: 100%;
    max-width: 100%;
    margin-top: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .tw-sustain-sec_img figure {
    margin: 0 auto;
    width: 100%;
    padding-top: 0 !important;
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
  }

  .tw-sustain-sec_img img,
  .tw-sustain-sec_img #sustain-ecology-visual {
    position: static !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: min(40vh, 340px) !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin-inline: auto;
    display: block;
  }

  /* FAQ (home) */
  .tw-faq-sec .image.fadein-item {
    min-height: min(42vh, 460px);
  }

  /* VIP slajder */
  .tw-vip-zone-sec_slide-img {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: min(48vh, 520px);
    padding: clamp(0.5rem, 2vw, 1rem);
    box-sizing: border-box;
  }

  .tw-vip-zone-sec_slide-img img {
    position: static !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(65vh, 640px) !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin-inline: auto;
    display: block;
  }

  /* Enterijer: visina u home.css / mobile-home.css (bez prazne kutije) */
  .tw-enterijer-sec_slide-img {
    min-height: 0 !important;
    padding: 0 !important;
  }

  .tw-enterijer-sec_slide-img img {
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(50vh, 420px) !important;
    object-position: center top !important;
  }

  /* Inner half slider (Waschpakete) */
  .tw-inner-half_image_content_slider .nw-swiper .image,
  .tw-inner-half_image_content_slider .nw-swiper figure.image {
    min-height: min(45vh, 480px);
  }

  .tw-inner-half_image_content_slider .nw-swiper .image img,
  .tw-inner-half_image_content_slider .nw-swiper figure.image img {
    max-height: min(60vh, 580px) !important;
  }

  img.img-fluid:not(#sustain-ecology-visual) {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin-inline: auto;
    object-fit: contain;
    object-position: center;
  }

  /* Hero baneri — zadrži punu širinu i cover */
  .tw-inner-page-banner .swiper-slide .image {
    width: 100% !important;
    left: auto !important;
    margin-left: 0 !important;
    padding-top: calc(868 / 1920 * 100%) !important;
    position: relative !important;
    height: 100dvh !important;
    min-height: 100dvh;
    display: block !important;
    padding-inline: 0;
  }

  .tw-inner-page-banner .swiper-slide .image img {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    margin-inline: 0;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

@media screen and (max-width: 575.98px) {
  .half-fluid .image img,
  .half-fluid figure.image img,
  .section .image.fadein-item img,
  figure.image.fadein-item img,
  .facility2-swiper .image img,
  .nw-swiper figure.image img {
    max-height: min(58vh, 520px) !important;
  }

  .intro-sec1 .tw-intro-sec_img figure img {
    max-height: min(65vh, 600px) !important;
  }

  .tw-sustain-sec_img img,
  .tw-sustain-sec_img #sustain-ecology-visual {
    max-height: min(38vh, 320px) !important;
  }
}
