/* Fitterling Immobilien – Premium Galerie 1.2.7. Scoped rules override theme/Elementor defaults. */
.fi-gallery{width:100%;max-width:100%;font-family:Inter,Arial,sans-serif}
.fi-gallery,.fi-gallery *,.fi-lightbox,.fi-lightbox *{box-sizing:border-box}
.fi-gallery button,.fi-lightbox button{font:inherit;cursor:pointer}
.fi-gallery .fi-gallery-stage{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border:0!important;border-radius:8px!important;background:#172B49}
.fi-gallery .fi-gallery-main{display:block;position:absolute;inset:0;width:100%;height:100%;margin:0!important;padding:0!important;border:0!important;border-radius:8px!important;background:transparent!important;overflow:hidden;line-height:0}
.fi-gallery .fi-gallery-main img{display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:8px!important;object-fit:cover!important;object-position:center center;transform:scale(1);transition:transform .45s ease}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.fi-gallery .fi-gallery-main:hover img{transform:scale(1.025)}}
.fi-gallery .fi-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:grid;place-items:center;width:38px;height:38px;padding:0;border:0!important;border-radius:50%;background:rgba(16,43,71,.88);color:#fff;font-size:20px;line-height:1;box-shadow:none;transition:background .2s}
.fi-gallery .fi-gallery-arrow:hover{background:rgba(16,43,71,1);color:#fff}
.fi-gallery .fi-gallery-prev{left:14px}.fi-gallery .fi-gallery-next{right:14px}
.fi-gallery .fi-gallery-count{position:absolute;bottom:12px;right:12px;z-index:2;background:rgba(12,26,42,.75);color:#fff;padding:5px 10px;border-radius:5px;font-size:12px;pointer-events:none}
/* Four equal photographic thumbnails and a half-width 'more' tile. */
.fi-gallery .fi-gallery-preview{display:grid;grid-template-columns:repeat(4,minmax(0,2fr)) minmax(0,1fr);align-items:stretch;gap:9px;margin-top:10px}
.fi-gallery .fi-gallery-thumb,.fi-gallery .fi-gallery-more{position:relative;display:block;width:100%;min-width:0;min-height:0;aspect-ratio:16/9;height:auto;margin:0!important;padding:0!important;border:0!important;border-radius:7px!important;overflow:hidden;box-shadow:none!important}
.fi-gallery .fi-gallery-thumb{background:transparent!important;line-height:0}
.fi-gallery .fi-gallery-thumb img{display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center;border:0!important;border-radius:7px!important;margin:0!important;padding:0!important;transform:scale(1);transition:transform .45s ease}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.fi-gallery .fi-gallery-thumb:hover img{transform:scale(1.055)}}
.fi-gallery .fi-gallery-thumb.is-active{border:0!important;outline:0!important}
.fi-gallery .fi-gallery-more{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:#172B49!important;color:#fff!important;text-align:center;line-height:1.15}
.fi-gallery .fi-gallery-more:hover{background:#172B49!important;color:#fff!important}
.fi-gallery .fi-gallery-more .fi-gallery-more-icon{display:block;line-height:0}
.fi-gallery .fi-gallery-more strong{display:block;font-size:clamp(12px,1.1vw,17px);font-weight:600}
.fi-gallery .fi-gallery-more small{display:block;font-size:clamp(8px,.8vw,11px);line-height:1.2;overflow-wrap:anywhere}
.fi-gallery button:focus-visible,.fi-lightbox button:focus-visible{outline:2px solid #b18b28!important;outline-offset:3px}
/* Dark, slightly translucent full-screen lightbox. Images retain their entire framing. */
.fi-lightbox{position:fixed;inset:0;z-index:2147483000;background:rgba(9,13,19,.93);color:#fff;display:flex;flex-direction:column;align-items:center;padding:18px 56px 22px;font-family:Inter,Arial,sans-serif}
.fi-lightbox[hidden]{display:none!important}
.fi-lightbox-header{width:100%;display:flex;justify-content:space-between;align-items:center;gap:15px;min-height:38px}
.fi-lightbox-title{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fi-lightbox-meta{display:flex;align-items:center;gap:18px}
.fi-lightbox-counter{font-size:13px;color:#ccc}
.fi-lightbox-close,.fi-lightbox-nav{border:0!important;background:transparent!important;color:#fff!important;cursor:pointer}
.fi-lightbox-close{font-size:30px;line-height:1}
.fi-lightbox-view{position:relative;flex:1;min-height:0;width:100%;display:flex;align-items:center;justify-content:center}
.fi-lightbox-view img{display:block;max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important;border:0!important;border-radius:8px!important}
.fi-lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);font-size:38px;padding:8px 12px}
.fi-lightbox-left{left:-51px}.fi-lightbox-right{right:-51px}
.fi-lightbox-strip{display:flex;flex-shrink:0;max-width:100%;overflow-x:auto;gap:8px;padding:12px 2px 3px;scrollbar-width:thin}
.fi-lightbox-strip button{flex:0 0 85px;width:85px;height:60px;padding:0!important;border:0!important;border-radius:6px!important;background:transparent!important;overflow:hidden;cursor:pointer}
.fi-lightbox-strip img{display:block;width:100%!important;height:100%!important;object-fit:cover!important;border:0!important;border-radius:6px!important;transition:transform .35s ease}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.fi-lightbox-strip button:hover img{transform:scale(1.05)}}
.fi-lightbox-strip button.is-active{outline:2px solid #b18b28;outline-offset:-2px}
.fi-immo-medien{display:grid;gap:18px}.fi-immo-medien figure{margin:0}.fi-immo-medien img{display:block;max-width:100%;height:auto;border-radius:5px}.fi-immo-medien figcaption{font-size:13px;margin-top:6px}
.fi-immo-player{position:relative;width:100%;aspect-ratio:16/9}.fi-immo-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
body.fi-lightbox-open{overflow:hidden!important}
@media(max-width:767px){.fi-gallery .fi-gallery-preview{gap:5px;margin-top:6px}.fi-gallery .fi-gallery-arrow{width:32px;height:32px;font-size:17px}.fi-gallery .fi-gallery-prev{left:8px}.fi-gallery .fi-gallery-next{right:8px}.fi-gallery .fi-gallery-more .fi-gallery-more-icon svg{width:18px;height:18px}.fi-gallery .fi-gallery-more small{font-size:7px}.fi-lightbox{padding:12px 35px 15px}.fi-lightbox-nav{font-size:28px}.fi-lightbox-left{left:-34px}.fi-lightbox-right{right:-34px}.fi-lightbox-strip button{flex-basis:65px;width:65px;height:48px}}
@media(prefers-reduced-motion:reduce){.fi-gallery img,.fi-lightbox img{transition:none!important}}

/* Version 1.2.7 – subtle motion, consistent controls, bookmark */
.fi-gallery .fi-gallery-main img{transition:transform 1s ease-in-out!important}
.fi-gallery .fi-gallery-thumb img{transition:transform .65s cubic-bezier(.2,.7,.2,1)!important}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.fi-gallery .fi-gallery-main:hover img{transform:scale(1.01)!important}
.fi-gallery .fi-gallery-thumb:hover img{transform:scale(1.018)!important}}
.fi-gallery .fi-gallery-arrow{width:38px!important;height:38px!important;border-radius:5px!important;background:rgba(12,26,42,.75)!important;color:#fff!important;transition:transform .55s ease!important}
.fi-gallery .fi-gallery-arrow:hover,.fi-gallery .fi-gallery-arrow:focus{background:rgba(12,26,42,.75)!important;color:#fff!important;transform:translateY(-50%) scale(1.045)!important}
.fi-gallery .fi-gallery-bookmark{position:absolute;right:12px;top:12px;z-index:3;width:39px;height:39px;display:grid;place-items:center;border:0!important;border-radius:5px!important;background:rgba(255,255,255,.90)!important;color:#172B49!important;padding:0!important;transition:transform .55s ease!important;box-shadow:0 1px 8px rgba(0,0,0,.12)}
.fi-gallery .fi-gallery-bookmark:hover{background:rgba(255,255,255,.90)!important;color:#172B49!important;transform:scale(1.045)}
.fi-gallery .fi-gallery-bookmark.is-saved svg{fill:#172B49}
.fi-gallery .fi-gallery-bookmark svg{width:22px;height:22px;display:block}
@media(max-width:767px){.fi-gallery .fi-gallery-bookmark{width:32px;height:32px;right:8px;top:8px}.fi-gallery .fi-gallery-bookmark svg{width:19px;height:19px}}
@media(prefers-reduced-motion:reduce){.fi-gallery .fi-gallery-arrow,.fi-gallery .fi-gallery-bookmark{transition:none!important}}

/* 1.3.0 – mobile lightbox touch usability and compact controls */
.fi-gallery .fi-gallery-stage,.fi-lightbox-view{touch-action:pan-y pinch-zoom}
.fi-lightbox-close{display:grid!important;place-items:center!important;flex:0 0 44px;width:44px;height:44px;padding:0!important;border-radius:5px!important;background:rgba(32,42,56,.82)!important;color:#fff!important;font-size:22px!important;line-height:1!important;transition:transform .25s ease!important}
.fi-lightbox-close:hover,.fi-lightbox-close:focus{background:rgba(32,42,56,.82)!important;color:#fff!important;transform:scale(1.045)}
@media(max-width:767px){
 .fi-lightbox{padding:calc(env(safe-area-inset-top, 0px) + 12px) 12px calc(env(safe-area-inset-bottom, 0px) + 12px);background:rgba(9,13,19,.97)}
 .fi-lightbox-header{min-height:44px;flex-shrink:0}
 .fi-lightbox-title{max-width:55vw}
 .fi-lightbox-meta{gap:10px}
 .fi-lightbox-view{width:100%;flex:1 1 auto;min-height:0}
 .fi-lightbox-view img{max-width:100%!important;max-height:100%!important}
 .fi-lightbox-nav{font-size:28px!important;z-index:2;background:rgba(12,26,42,.70)!important;border-radius:5px!important;padding:4px 8px!important}
 .fi-lightbox-left{left:0}.fi-lightbox-right{right:0}
 .fi-lightbox-strip{width:100%;justify-content:flex-start;max-width:100%;padding:10px 0 2px;gap:7px}
 .fi-lightbox-strip button{flex:0 0 68px;width:68px;height:48px}
 .fi-gallery .fi-gallery-more small{display:none!important}
 .fi-gallery .fi-gallery-more{gap:2px}
 .fi-gallery .fi-gallery-more strong{font-size:13px}
}

/* 1.3.1: keep mobile lightbox counter on one line */
.fi-lightbox-meta{flex-shrink:0;white-space:nowrap}
.fi-lightbox-counter{display:inline-block;flex:0 0 auto;white-space:nowrap;min-width:max-content;font-variant-numeric:tabular-nums}
.fi-lightbox-title{min-width:0;flex:1 1 auto}
@media(max-width:767px){.fi-lightbox-header{gap:8px}.fi-lightbox-meta{gap:12px}.fi-lightbox-title{max-width:none}}

/* 1.3.2 – viewport-filling responsive lightbox, including iPhone landscape.
   Scope deliberately limited to the lightbox; gallery on the page is unchanged. */
.fi-lightbox{
 position:fixed!important;inset:0!important;
 width:100vw!important;height:100vh!important;height:100dvh!important;
 max-width:none!important;max-height:none!important;
 display:grid!important;grid-template-rows:minmax(44px,auto) minmax(0,1fr) auto!important;
 grid-template-columns:minmax(0,1fr)!important;
 align-items:stretch!important;justify-items:stretch!important;
 overflow:hidden!important;background:rgba(9,13,19,.985)!important;
 padding:calc(10px + env(safe-area-inset-top,0px)) calc(12px + env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) calc(12px + env(safe-area-inset-left,0px))!important;
}
.fi-lightbox-header{width:100%!important;min-width:0!important;min-height:44px!important;max-height:54px!important;align-self:start!important;display:flex!important;gap:10px!important}
.fi-lightbox-title{flex:1 1 0!important;min-width:0!important;max-width:none!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.fi-lightbox-meta{display:flex!important;align-items:center!important;flex:0 0 auto!important;min-width:max-content!important;gap:12px!important;white-space:nowrap!important}
.fi-lightbox-counter{display:block!important;flex:0 0 auto!important;min-width:max-content!important;width:auto!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;line-height:1.2!important}
.fi-lightbox-view{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:0!important;width:100%!important;height:100%!important;max-width:none!important;overflow:hidden!important}
.fi-lightbox-view>img{display:block!important;flex:0 0 auto!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-width:0!important;min-height:0!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important}
.fi-lightbox-strip{width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;display:flex!important;justify-content:flex-start!important;align-items:center!important;overflow-x:auto!important;overflow-y:hidden!important;padding:8px 0 2px!important;margin:0!important;scrollbar-width:thin}
.fi-lightbox-nav{z-index:2!important;top:50%!important;transform:translateY(-50%)!important;display:grid!important;place-items:center!important;width:38px!important;height:44px!important;padding:0!important;font-size:28px!important;line-height:1!important;background:rgba(12,26,42,.72)!important;border-radius:5px!important}
.fi-lightbox-left{left:4px!important}.fi-lightbox-right{right:4px!important}
@media(max-width:767px){
 .fi-lightbox-strip button{flex:0 0 68px!important;width:68px!important;height:48px!important}
}
/* Landscape mobile: prioritize image area, not oversized whitespace. */
@media(orientation:landscape) and (max-height:600px){
 .fi-lightbox{grid-template-rows:40px minmax(0,1fr) 62px!important;padding:calc(3px + env(safe-area-inset-top,0px)) calc(12px + env(safe-area-inset-right,0px)) calc(3px + env(safe-area-inset-bottom,0px)) calc(12px + env(safe-area-inset-left,0px))!important}
 .fi-lightbox-header{min-height:40px!important;max-height:40px!important}
 .fi-lightbox-close{height:38px!important;width:40px!important;flex-basis:40px!important}
 .fi-lightbox-strip{padding:4px 0 2px!important}
 .fi-lightbox-strip button{flex:0 0 72px!important;width:72px!important;height:50px!important}
 .fi-lightbox-nav{width:34px!important;height:38px!important;font-size:24px!important}
}

/* 1.3.3 – Mobile lightbox: image uses full available height; thumbnails overlay and fade after 1s. */
@media (max-width:767px), (pointer:coarse){
 .fi-lightbox{grid-template-rows:minmax(44px,auto) minmax(0,1fr)!important;position:fixed!important;isolation:isolate!important}
 .fi-lightbox-view{grid-row:2!important;grid-column:1!important;min-height:0!important}
 .fi-lightbox-strip{position:absolute!important;left:calc(12px + env(safe-area-inset-left,0px))!important;right:calc(12px + env(safe-area-inset-right,0px))!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;width:auto!important;max-width:none!important;z-index:4!important;padding:8px!important;border-radius:8px!important;background:rgba(9,13,19,.72)!important;opacity:1!important;visibility:visible!important;transform:translateY(0)!important;transition:opacity .28s ease,transform .28s ease,visibility .28s ease!important;pointer-events:auto!important}
 .fi-lightbox.fi-strip-hidden .fi-lightbox-strip{opacity:0!important;visibility:hidden!important;transform:translateY(9px)!important;pointer-events:none!important}
 .fi-lightbox-header{position:relative!important;z-index:5!important}
}
@media (orientation:landscape) and (max-height:600px) and (pointer:coarse){
 .fi-lightbox{grid-template-rows:40px minmax(0,1fr)!important}
 .fi-lightbox-strip{bottom:calc(4px + env(safe-area-inset-bottom,0px))!important;padding:4px!important}
}
@media (prefers-reduced-motion:reduce){.fi-lightbox-strip{transition:none!important}}

/* 1.3.4: Mobile swipe must not pan Safari's page; gentle strip fade. */
@media (max-width:767px), (pointer:coarse){
 .fi-lightbox-view{touch-action:pan-y!important;overscroll-behavior-x:contain!important}
 .fi-lightbox-view>img{user-select:none!important;-webkit-user-select:none!important;-webkit-user-drag:none!important}
 .fi-lightbox-strip{transition:opacity .9s ease-in-out,transform .9s ease-in-out,visibility .9s ease-in-out!important}
 .fi-lightbox.fi-strip-hidden .fi-lightbox-strip{transform:translateY(5px)!important}
}

/* 1.3.10: Desktop lightbox previews overlay the photo and auto-hide after 1.5s. */
@media (min-width:768px) and (pointer:fine){
 .fi-lightbox{grid-template-rows:minmax(44px,auto) minmax(0,1fr)!important;isolation:isolate!important}
 .fi-lightbox-view{grid-row:2!important;grid-column:1!important}
 .fi-lightbox-strip{position:absolute!important;left:56px!important;right:56px!important;bottom:16px!important;width:auto!important;max-width:none!important;z-index:4!important;background:rgba(9,13,19,.76)!important;border-radius:8px!important;padding:10px!important;opacity:1!important;visibility:visible!important;transform:translateY(0)!important;transition:opacity .9s ease-in-out,transform .9s ease-in-out,visibility .9s ease-in-out!important;pointer-events:auto!important}
 .fi-lightbox.fi-strip-hidden .fi-lightbox-strip{opacity:0!important;visibility:hidden!important;transform:translateY(5px)!important;pointer-events:none!important}
 .fi-lightbox-header{position:relative!important;z-index:5!important}
 .fi-lightbox-view>img{cursor:ew-resize!important}
}
/* Portrait only: inset the X without changing the lightbox viewport or Safari layout. */
@media (orientation:portrait) and (pointer:coarse){
 .fi-lightbox-close{position:relative!important;left:-9px!important}
}

/* 1.3.11: Desktop thumbnail strip centered, normal pointer, reveal on mouse motion. */
@media (min-width:768px) and (pointer:fine){
 .fi-lightbox-strip{
  left:50%!important;right:auto!important;
  width:max-content!important;max-width:calc(100% - 112px)!important;
  transform:translateX(-50%) translateY(0)!important;
 }
 .fi-lightbox.fi-strip-hidden .fi-lightbox-strip{
  transform:translateX(-50%) translateY(5px)!important;
 }
 .fi-lightbox-view>img{cursor:default!important}
}

/* v1.3.14 — responsive gallery: plugin controls only its own internals.
   Elementor owns surrounding section/container width, padding and spacing.
   The fullscreen lightbox rules above remain unchanged. */
.fi-gallery .fi-mobile-overlay,
.fi-gallery .fi-mobile-brand { display:none; }

/* Phone and touch-tablet gallery; desktop/lightbox rules remain separate. */
@media (max-width:1024px), (min-width:1025px) and (max-width:1366px) and (min-height:600px) and (pointer:coarse) {
  .fi-gallery .fi-gallery-stage {
    height:clamp(350px,57svh,680px);
    aspect-ratio:auto;
    border-radius:0;
    overflow:hidden;
  }
  .fi-gallery .fi-gallery-main { border-radius:0; overflow:hidden; }
  .fi-gallery .fi-gallery-main > img[data-fi-main] {
    display:block; width:100%; height:100%;
    object-fit:cover; object-position:center center;
    border-radius:0;
  }
  .fi-gallery .fi-gallery-preview,
  .fi-gallery .fi-gallery-count { display:none; }
  .fi-gallery .fi-mobile-overlay {
    position:absolute; inset:auto 0 0; z-index:4;
    display:flex; align-items:center; gap:8px;
    min-height:77px; padding:10px 37% 9px 10px;
    background:rgba(16,43,71,.82); border-top:3px solid #d3ab43;
    color:#fff; opacity:1; visibility:visible;
    transition:opacity .9s ease, visibility .9s ease;
    pointer-events:auto;
  }
  .fi-gallery .fi-mobile-overlay.fi-mobile-idle {
    opacity:0; visibility:hidden; pointer-events:none;
  }
  .fi-gallery .fi-mobile-thumbs {
    display:flex; align-items:center; gap:6px; min-width:0; flex:1;
  }
  .fi-gallery .fi-mobile-thumb {
    flex:1 1 0; min-width:0; max-width:75px; height:49px;
    border:0; padding:0; margin:0; border-radius:5px;
    overflow:hidden; background:transparent; box-shadow:none;
  }
  .fi-gallery .fi-mobile-thumb.is-active {
    outline:2px solid #d3ab43; outline-offset:-2px;
  }
  .fi-gallery .fi-mobile-thumb img {
    display:block; width:100%; height:100%;
    object-fit:cover; border-radius:5px;
  }
  .fi-gallery .fi-mobile-counter {
    font-size:12px; white-space:nowrap; flex:none; margin-left:2px;
  }
  .fi-gallery .fi-mobile-brand {
    position:absolute; right:10px; bottom:13px; z-index:5;
    display:flex; align-items:center; justify-content:center;
    width:32%; max-width:132px; padding:0;
    background:transparent; border:0; border-radius:0;
    box-shadow:none; pointer-events:none;
  }
  .fi-gallery .fi-mobile-brand > img {
    display:block; width:100%; height:auto; max-width:100%;
    object-fit:contain;
    filter:drop-shadow(0 1px 3px rgba(0,0,0,.55));
  }
  .fi-gallery .fi-gallery-arrow,
  .fi-gallery .fi-gallery-bookmark { z-index:6; }
}
@media (max-width:380px) {
  .fi-gallery .fi-mobile-overlay { padding-right:38%; gap:5px; }
  .fi-gallery .fi-mobile-thumb { height:42px; }
  .fi-gallery .fi-mobile-brand { width:34%; }
}
@media (prefers-reduced-motion:reduce) {
  .fi-gallery .fi-mobile-overlay { transition:none; }
}

/* v1.3.15: Square corners on the main title image for phone and tablet.
   Preserve rounded corners on thumbnails and lightbox media. */
@media (max-width:1024px), (min-width:1025px) and (max-width:1366px) and (min-height:600px) and (pointer:coarse) {
  .fi-gallery .fi-gallery-stage,
  .fi-gallery .fi-gallery-main,
  .fi-gallery .fi-gallery-main > img,
  .fi-gallery .fi-gallery-main > img[data-fi-main] {
    border-radius: 0 !important;
  }
}
/* Tablet-specific dimensions: retain the mobile overlay/brand layout. */
@media (min-width:768px) and (max-width:1024px), (min-width:1025px) and (max-width:1366px) and (min-height:600px) and (pointer:coarse) {
  .fi-gallery .fi-gallery-stage { height: clamp(420px, 53svh, 760px); }
  .fi-gallery .fi-mobile-overlay { min-height:92px; padding:12px 32% 12px 18px; gap:14px; }
  .fi-gallery .fi-mobile-thumbs { gap:10px; }
  .fi-gallery .fi-mobile-thumb { max-width:112px; height:65px; }
  .fi-gallery .fi-mobile-counter { font-size:15px; }
  .fi-gallery .fi-mobile-brand { width:27%; max-width:185px; right:18px; bottom:17px; }
}


/* 1.3.16 — Immersive lightbox: no reserved header/footer rows.
   The photo stays fully visible (contain); only overlays fade. */
.fi-lightbox {
  display:block!important;
  padding:0!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  overflow:hidden!important;
}
.fi-lightbox-view {
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.fi-lightbox-view > img {
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  border-radius:0!important;
}
.fi-lightbox-header {
  position:absolute!important;
  top:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  min-height:0!important;
  max-height:none!important;
  padding:calc(9px + env(safe-area-inset-top,0px)) calc(12px + env(safe-area-inset-right,0px)) 10px calc(12px + env(safe-area-inset-left,0px))!important;
  background:linear-gradient(to bottom,rgba(9,13,19,.74),rgba(9,13,19,.3) 75%,transparent)!important;
  z-index:8!important;
  pointer-events:none!important;
  transition:background .9s ease-in-out!important;
}
.fi-lightbox-title,.fi-lightbox-counter {
  opacity:1!important;
  transition:opacity .9s ease-in-out!important;
}
.fi-lightbox.fi-strip-hidden .fi-lightbox-title,
.fi-lightbox.fi-strip-hidden .fi-lightbox-counter {opacity:0!important;}
.fi-lightbox.fi-strip-hidden .fi-lightbox-header {background:transparent!important;}
.fi-lightbox-close {pointer-events:auto!important;position:relative!important;left:auto!important;z-index:9!important;}
.fi-lightbox-strip {
  position:absolute!important;
  bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;
  z-index:7!important;
}
/* Phone and tablet: full viewport and full-width photo without permanent footer. */
@media (max-width:767px), (pointer:coarse) {
 .fi-lightbox-header {min-height:0!important;max-height:none!important;}
 .fi-lightbox-view {grid-row:auto!important;grid-column:auto!important;}
 .fi-lightbox-strip {left:calc(12px + env(safe-area-inset-left,0px))!important;right:calc(12px + env(safe-area-inset-right,0px))!important;bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;}
}
@media (orientation:landscape) and (max-height:600px) {
 .fi-lightbox {padding:0!important;}
 .fi-lightbox-header {min-height:0!important;max-height:none!important;}
}
@media (prefers-reduced-motion:reduce){
 .fi-lightbox-title,.fi-lightbox-counter,.fi-lightbox-header {transition:none!important;}
}

/* v1.3.18 – Desktop: natural image proportions and permanently visible
   gallery beneath the hero, as in the established desktop layout. */
@media (min-width:1025px) and (hover:hover) and (pointer:fine) {
  .fi-gallery .fi-gallery-stage {
    aspect-ratio:auto!important;
    height:auto!important;
    overflow:hidden!important;
    border-radius:0!important;
  }
  .fi-gallery .fi-gallery-main {
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:auto!important;
    border-radius:0!important;
  }
  .fi-gallery .fi-gallery-main > img {
    position:relative!important;
    inset:auto!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    object-fit:contain!important;
    border-radius:0!important;
  }
  .fi-gallery .fi-gallery-preview {
    position:static!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,2fr)) minmax(0,1fr)!important;
    margin-top:10px!important;
    width:100%!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    pointer-events:auto!important;
    background:transparent!important;
    border:0!important;
    padding:0!important;
    box-shadow:none!important;
    gap:9px!important;
  }
  .fi-gallery .fi-gallery-preview > .fi-gallery-more {display:flex!important;}
  .fi-gallery .fi-gallery-preview > .fi-gallery-thumb {display:block!important;}
  .fi-gallery .fi-gallery-count {display:block!important;}
}

/* 1.3.19: permanent, centered navy preview bar BELOW the full desktop image. */
@media (min-width:1025px) and (hover:hover) and (pointer:fine) {
 .fi-gallery .fi-gallery-preview {
   position:relative!important;
   left:auto!important;bottom:auto!important;
   display:flex!important;align-items:center!important;justify-content:center!important;
   width:min(560px,calc(100% - 32px))!important;
   margin:0 auto!important;
   padding:12px 14px!important;
   gap:10px!important;
   background:rgba(44,69,105,.90)!important;
   border-top:2px solid #b09551!important;
   border-radius:0 0 4px 4px!important;
   box-shadow:none!important;
   opacity:1!important;visibility:visible!important;
   transform:none!important;transition:none!important;
   pointer-events:auto!important;
 }
 .fi-gallery .fi-gallery-preview > .fi-gallery-thumb {
   display:block!important;flex:1 1 0!important;width:0!important;
   max-width:145px!important;aspect-ratio:16/9!important;
   border-radius:3px!important;
 }
 .fi-gallery .fi-gallery-preview > .fi-gallery-thumb:nth-of-type(n+4),
 .fi-gallery .fi-gallery-preview > .fi-gallery-more {display:none!important;}
 .fi-gallery .fi-gallery-preview .fi-desktop-preview-counter {
   display:block!important;flex:0 0 auto;color:white;font-size:13px;
   white-space:nowrap;text-align:center;min-width:44px;
 }
 .fi-gallery .fi-gallery-count {display:none!important;}
}

/* v1.3.20: larger permanent centered desktop gallery, keeping image and lightbox untouched. */
@media (min-width:1025px) and (hover:hover) and (pointer:fine) {
 .fi-gallery .fi-gallery-preview {
   width:min(900px,calc(100% - 32px))!important;
   min-height:145px!important;
   padding:15px 22px!important;
   gap:16px!important;
   box-sizing:border-box!important;
   background:rgba(44,69,105,.90)!important;
   border-top:2px solid #b09551!important;
   opacity:1!important;visibility:visible!important;
 }
 .fi-gallery .fi-gallery-preview > .fi-gallery-thumb {
   flex:0 1 210px!important;
   width:210px!important;
   max-width:210px!important;
   height:auto!important;
   aspect-ratio:16/9!important;
 }
 .fi-gallery .fi-gallery-preview .fi-desktop-preview-counter {
   font-size:16px!important;
   min-width:60px!important;
   margin-left:8px!important;
 }
}


/* 1.3.21: full-width navy bar below desktop hero; centered, larger thumbnails. */
@media (min-width:1025px) and (hover:hover) and (pointer:fine) {
  .fi-gallery .fi-gallery-preview {
    position:relative!important;
    left:auto!important;
    bottom:auto!important;
    width:100%!important;
    max-width:none!important;
    min-height:190px!important;
    margin:0!important;
    padding:18px 24px!important;
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    justify-content:center!important;
    align-items:center!important;
    gap:18px!important;
    box-sizing:border-box!important;
    background:#172B49!important;
    border-top:2px solid #b09551!important;
    border-radius:0!important;
    box-shadow:none!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    transition:none!important;
    pointer-events:auto!important;
  }
  .fi-gallery .fi-gallery-preview > .fi-gallery-thumb {
    display:block!important;
    flex:0 1 260px!important;
    width:260px!important;
    max-width:260px!important;
    height:146px!important;
    aspect-ratio:16/9!important;
    border-radius:3px!important;
    overflow:hidden!important;
  }
  .fi-gallery .fi-gallery-preview > .fi-gallery-thumb img {
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
  .fi-gallery .fi-gallery-preview > .fi-gallery-thumb:nth-of-type(n+4),
  .fi-gallery .fi-gallery-preview > .fi-gallery-more {display:none!important;}
  .fi-gallery .fi-gallery-preview .fi-desktop-preview-counter {
    display:block!important;
    flex:0 0 auto!important;
    min-width:65px!important;
    margin-left:6px!important;
    font-size:17px!important;
    color:#fff!important;
  }
  .fi-gallery .fi-gallery-count {display:none!important;}
}

/* 1.3.22: stronger gold line, thumbnails occupy more of the full-width navy bar. */
@media (min-width:1025px) and (hover:hover) and (pointer:fine) {
  .fi-gallery .fi-gallery-preview {
    min-height:0!important;
    padding:8px 24px!important;
    border-top:4px solid #b09551!important;
    gap:18px!important;
  }
  .fi-gallery .fi-gallery-preview > .fi-gallery-thumb {
    height:158px!important;
    width:281px!important;
    max-width:281px!important;
    flex:0 1 281px!important;
    aspect-ratio:16/9!important;
  }
  .fi-gallery .fi-gallery-preview .fi-desktop-preview-counter {
    margin-left:6px!important;
  }
}


/* 1.3.24 – Mobile lightbox: safe close control, clear arrows without button backgrounds.
   Restrict to touch layouts; established desktop gallery and lightbox remain unchanged. */
@media (max-width:1024px) and (pointer:coarse) {
  .fi-lightbox {
    padding-top:max(18px,env(safe-area-inset-top,0px))!important;
    padding-right:max(18px,env(safe-area-inset-right,0px))!important;
    padding-left:max(18px,env(safe-area-inset-left,0px))!important;
  }
  .fi-lightbox-header {
    position:relative!important;z-index:30!important;
    overflow:visible!important;
  }
  .fi-lightbox-meta {position:relative!important;z-index:31!important;}
  .fi-lightbox-close {
    position:relative!important;left:auto!important;right:auto!important;
    z-index:32!important;flex:0 0 42px!important;
    width:42px!important;height:42px!important;
    font-size:26px!important;line-height:1!important;
    border:0!important;border-radius:8px!important;
    background:rgba(32,42,56,.75)!important;color:#fff!important;
    touch-action:manipulation!important;
  }
  .fi-lightbox-nav,.fi-lightbox-nav:hover,.fi-lightbox-nav:focus {
    background:transparent!important;box-shadow:none!important;
    border:0!important;border-radius:0!important;
    color:#fff!important;text-shadow:0 1px 5px rgba(0,0,0,.65)!important;
    font-size:38px!important;
  }
  .fi-lightbox-left {left:0!important;}
  .fi-lightbox-right {right:0!important;}
}

/* 1.3.25 – clean lightbox header, bare navigation arrows, link beneath gallery. */
.fi-lightbox {
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  padding:0!important;
}
.fi-lightbox-header,
.fi-lightbox.fi-strip-hidden .fi-lightbox-header {
  position:relative!important;
  inset:auto!important;
  grid-row:1!important;
  width:100%!important;
  min-height:68px!important;
  max-height:none!important;
  padding:calc(12px + env(safe-area-inset-top,0px)) calc(18px + env(safe-area-inset-right,0px)) 12px calc(18px + env(safe-area-inset-left,0px))!important;
  background:#172B49!important;
  background-image:none!important;
  transition:none!important;
  pointer-events:auto!important;
  z-index:20!important;
}
.fi-lightbox-view {
  position:relative!important;
  inset:auto!important;
  grid-row:2!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
}
.fi-lightbox-title,.fi-lightbox-counter,
.fi-lightbox.fi-strip-hidden .fi-lightbox-title,
.fi-lightbox.fi-strip-hidden .fi-lightbox-counter {
  opacity:1!important;
}
.fi-lightbox-close {
  position:relative!important;left:auto!important;right:auto!important;
  z-index:25!important; flex-shrink:0!important;
}
.fi-lightbox .fi-lightbox-nav,
.fi-lightbox .fi-lightbox-nav:hover,
.fi-lightbox .fi-lightbox-nav:focus,
.fi-lightbox .fi-lightbox-nav:active {
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  border:0!important;
  outline-offset:2px;
  border-radius:0!important;
  color:#fff!important;
  text-shadow:0 1px 5px rgba(0,0,0,.65)!important;
  -webkit-appearance:none!important;
  appearance:none!important;
}
.fi-lightbox .fi-lightbox-nav::before,
.fi-lightbox .fi-lightbox-nav::after {
  background:none!important;box-shadow:none!important;
}
.fi-property-back {display:none!important;}
@media (max-width:1024px) {
  .fi-gallery > .fi-property-back {
    display:inline-flex!important;
    align-items:center!important;
    gap:10px!important;
    position:relative!important;
    inset:auto!important;
    width:auto!important;
    height:auto!important;
    margin:18px 18px 6px!important;
    padding:8px 0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#172B49!important;
    font-family:Inter,Arial,sans-serif;
    font-size:14px!important;
    font-weight:500!important;
    line-height:1.4!important;
    text-decoration:none!important;
    pointer-events:auto!important;
    z-index:1!important;
  }
  .fi-gallery > .fi-property-back svg {
    display:block!important;
    width:19px!important;height:19px!important;
    flex-shrink:0!important;
    stroke:#b09551!important;
  }
  .fi-gallery > .fi-property-back:hover,
  .fi-gallery > .fi-property-back:focus {color:#172B49!important;}
}
@media (max-width:767px) {
  .fi-lightbox-header {min-height:64px!important;}
  .fi-lightbox-title {min-width:0!important;max-width:calc(100vw - 140px)!important;}
  .fi-lightbox-meta {gap:8px!important;flex-shrink:0!important;}
}

/* 1.3.26: main-image navigation arrows – no dark square, all viewports. */
.fi-gallery button.fi-gallery-arrow,
.fi-gallery button.fi-gallery-arrow:hover,
.fi-gallery button.fi-gallery-arrow:focus,
.fi-gallery button.fi-gallery-arrow:active {
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  -webkit-appearance:none!important;
  appearance:none!important;
  color:#fff!important;
  text-shadow:0 1px 5px rgba(0,0,0,.85)!important;
}
.fi-gallery button.fi-gallery-arrow::before,
.fi-gallery button.fi-gallery-arrow::after {background:none!important;box-shadow:none!important;}
/* Elementor-controlled back link, mobile/tablet only by default. */
.fi-elementor-back {display:none;}
@media(max-width:1024px) {
  .fi-elementor-back {
    display:inline-flex;align-items:center;gap:10px;
    color:#172B49;text-decoration:none;
    font:500 14px/1.4 Inter,Arial,sans-serif;
  }
  .fi-elementor-back-arrow {color:#b09551;font-size:22px;line-height:1;}
}

/* 1.3.27: Tablet (768–1024px) mirrors phone hero, regardless of pointer device.
   Do not change desktop >=1025px or phone <=767px. */
@media (min-width:768px) and (max-width:1024px) {
  .fi-gallery { width:100%; max-width:100%; }
  .fi-gallery .fi-gallery-stage { width:100%; height:clamp(420px,53svh,760px); aspect-ratio:auto; border-radius:0; overflow:hidden; }
  .fi-gallery .fi-gallery-main { width:100%; height:100%; border-radius:0; }
  .fi-gallery .fi-gallery-main > img[data-fi-main] { display:block; width:100%; height:100%; object-fit:cover; object-position:center; border-radius:0; }
  .fi-gallery .fi-gallery-preview,.fi-gallery .fi-gallery-count { display:none!important; }
  .fi-gallery .fi-mobile-overlay { border-top-color:#b09551; }
  .fi-gallery .fi-mobile-thumb.is-active { outline-color:#b09551; }
}


/* 1.3.28 – Tablet mirrors phone, including persistent white brand and
   touch-triggered fading overlay. Strong overrides defeat legacy tablet rules.
   No changes to phone (<=767px) or desktop (>=1025px). */
@media (min-width:768px) and (max-width:1024px) {
  .fi-gallery .fi-gallery-stage {
    position:relative!important;
    width:100%!important;
    height:clamp(420px,57svh,760px)!important;
    aspect-ratio:auto!important;
    overflow:hidden!important;
    border-radius:0!important;
  }
  .fi-gallery .fi-gallery-main {
    position:absolute!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    overflow:hidden!important;
    border-radius:0!important;
  }
  .fi-gallery .fi-gallery-main > img[data-fi-main] {
    display:block!important;
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    max-height:none!important;
    object-fit:cover!important;
    border-radius:0!important;
  }
  .fi-gallery .fi-gallery-preview,
  .fi-gallery .fi-gallery-count {
    display:none!important;
  }
  .fi-gallery .fi-mobile-overlay {
    display:flex!important;
    position:absolute!important;
    inset:auto 0 0!important;
    z-index:8!important;
    width:100%!important;
    min-height:92px!important;
    margin:0!important;
    padding:12px 32% 12px 18px!important;
    gap:14px!important;
    align-items:center!important;
    background:rgba(16,43,71,.82)!important;
    border:0!important;
    border-top:3px solid #b09551!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transition:opacity .9s ease,visibility .9s ease!important;
  }
  .fi-gallery .fi-mobile-overlay.fi-mobile-idle {
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  .fi-gallery .fi-mobile-thumbs {display:flex!important;align-items:center!important;gap:10px!important;flex:1!important;min-width:0!important;}
  .fi-gallery .fi-mobile-thumb {display:block!important;flex:1 1 0!important;max-width:112px!important;height:65px!important;}
  .fi-gallery .fi-mobile-brand {
    display:flex!important;
    position:absolute!important;
    z-index:9!important;
    right:18px!important;
    bottom:17px!important;
    width:27%!important;
    max-width:185px!important;
    pointer-events:none!important;
  }
  .fi-gallery .fi-mobile-brand > img {display:block!important;width:100%!important;height:auto!important;}
}

/* 1.3.29: Touch tablets in landscape may exceed Elementor's 1024px breakpoint.
   Preserve phone and mouse-driven desktop. Ensure tablet uses mobile hero. */
@media (min-width:1025px) and (max-width:1366px) and (pointer:coarse) {
  .fi-gallery {display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;}
  .fi-gallery .fi-gallery-stage {display:block!important;position:relative!important;width:100%!important;height:clamp(350px,57svh,760px)!important;aspect-ratio:auto!important;overflow:hidden!important;border-radius:0!important;}
  .fi-gallery .fi-gallery-main {display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;overflow:hidden!important;border-radius:0!important;}
  .fi-gallery .fi-gallery-main > img[data-fi-main] {display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;min-height:0!important;object-fit:cover!important;object-position:center!important;border-radius:0!important;}
  .fi-gallery .fi-gallery-preview,.fi-gallery .fi-gallery-count {display:none!important;}
  .fi-gallery .fi-mobile-overlay {display:flex!important;position:absolute!important;inset:auto 0 0!important;z-index:8!important;width:100%!important;min-height:92px!important;margin:0!important;padding:12px 32% 12px 18px!important;gap:14px!important;align-items:center!important;background:rgba(16,43,71,.82)!important;border:0!important;border-top:3px solid #b09551!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transition:opacity .9s ease,visibility .9s ease!important;}
  .fi-gallery .fi-mobile-overlay.fi-mobile-idle {opacity:0!important;visibility:hidden!important;pointer-events:none!important;}
  .fi-gallery .fi-mobile-thumbs {display:flex!important;align-items:center!important;gap:10px!important;flex:1!important;min-width:0!important;}
  .fi-gallery .fi-mobile-thumb {display:block!important;flex:1 1 0!important;max-width:112px!important;height:65px!important;}
  .fi-gallery .fi-mobile-brand {display:flex!important;position:absolute!important;z-index:9!important;right:18px!important;bottom:17px!important;width:27%!important;max-width:185px!important;pointer-events:none!important;}
  .fi-gallery .fi-mobile-brand > img {display:block!important;width:100%!important;height:auto!important;}
}


/* v1.3.30: landscape touch tablet, including >1024px CSS viewport.
   Scope to touch-first tablets; desktop with fine pointer is unaffected.
   Explicitly restore image box dimensions after legacy desktop rules. */
@media (min-width:768px) and (max-width:1600px) and (pointer:coarse) and (hover:none) {
  .fi-gallery { display:block!important; position:relative!important; width:100%!important; max-width:100%!important; min-width:0!important; visibility:visible!important; opacity:1!important; }
  .fi-gallery .fi-gallery-stage { display:block!important; position:relative!important; width:100%!important; height:clamp(350px,57svh,760px)!important; min-height:350px!important; aspect-ratio:auto!important; overflow:hidden!important; border-radius:0!important; background:#172B49!important; }
  .fi-gallery .fi-gallery-main { display:block!important; position:absolute!important; inset:0!important; width:100%!important; height:100%!important; min-height:100%!important; margin:0!important; padding:0!important; opacity:1!important; visibility:visible!important; overflow:hidden!important; border-radius:0!important; }
  .fi-gallery .fi-gallery-main img[data-fi-main] { display:block!important; position:absolute!important; inset:0!important; width:100%!important; height:100%!important; min-height:100%!important; max-height:none!important; max-width:none!important; object-fit:cover!important; object-position:center!important; opacity:1!important; visibility:visible!important; transform:none!important; border-radius:0!important; }
  .fi-gallery .fi-gallery-preview, .fi-gallery .fi-gallery-count {display:none!important;}
  .fi-gallery .fi-mobile-overlay { display:flex!important; position:absolute!important; left:0!important; right:0!important; bottom:0!important; top:auto!important; width:100%!important; min-height:92px!important; padding:12px 32% 12px 18px!important; align-items:center!important; gap:14px!important; z-index:8!important; background:rgba(16,43,71,.82)!important; border:0!important; border-top:3px solid #b09551!important; transform:none!important; }
  .fi-gallery .fi-mobile-overlay:not(.fi-mobile-idle) {opacity:1!important;visibility:visible!important;pointer-events:auto!important;}
  .fi-gallery .fi-mobile-overlay.fi-mobile-idle {opacity:0!important;visibility:hidden!important;pointer-events:none!important;}
  .fi-gallery .fi-mobile-brand {display:flex!important;position:absolute!important;right:18px!important;bottom:17px!important;z-index:9!important;width:27%!important;max-width:185px!important;pointer-events:none!important;}
}


/* v1.3.31: Proven fix for iPad landscape: Elementor flex child measured 0px
   although its parent measured 1376px. Apply only to the gallery's immediate
   Elementor host, and only when JS detects a touch tablet. */
body.single-wpi_immobilie.fi-touch-tablet .fi-tablet-gallery-host {
  width:100%!important;
  min-width:100%!important;
  max-width:100%!important;
  flex-basis:100%!important;
  flex-grow:0!important;
  flex-shrink:0!important;
  box-sizing:border-box!important;
}
body.single-wpi_immobilie.fi-touch-tablet .fi-tablet-gallery-host .elementor-widget-shortcode,
body.single-wpi_immobilie.fi-touch-tablet .fi-tablet-gallery-host .elementor-widget-container,
body.single-wpi_immobilie.fi-touch-tablet .fi-tablet-gallery-host .fi-gallery {
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}
/* Elementor's header also switches to desktop above 1024px. */
body.single-wpi_immobilie.fi-touch-tablet .elementor-location-header,
body.single-wpi_immobilie.fi-touch-tablet header.elementor-location-header {
  display:none!important;
}
/* 1:1 mobile thumbnail overlay, including iPad Pro 1376px landscape. */
body.single-wpi_immobilie.fi-touch-tablet .fi-gallery .fi-gallery-stage {
  position:relative!important;
  width:100%!important;
  height:clamp(350px,57svh,760px)!important;
  aspect-ratio:auto!important;
  overflow:hidden!important;
  border-radius:0!important;
}
body.single-wpi_immobilie.fi-touch-tablet .fi-gallery .fi-gallery-main {
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  border-radius:0!important;
}
body.single-wpi_immobilie.fi-touch-tablet .fi-gallery .fi-gallery-main img[data-fi-main] {
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:0!important;
}
body.single-wpi_immobilie.fi-touch-tablet .fi-gallery .fi-gallery-preview,
body.single-wpi_immobilie.fi-touch-tablet .fi-gallery .fi-gallery-count {display:none!important;}
body.single-wpi_immobilie.fi-touch-tablet .fi-gallery .fi-mobile-overlay {
  display:flex!important;
  position:absolute!important;
  inset:auto 0 0!important;
  z-index:8!important;
  width:100%!important;
  min-height:92px!important;
  padding:12px 32% 12px 18px!important;
  align-items:center!important;
  gap:14px!important;
  background:rgba(16,43,71,.82)!important;
  border:0!important;
  border-top:3px solid #b09551!important;
  transition:opacity .9s ease,visibility .9s ease!important;
}
body.single-wpi_immobilie.fi-touch-tablet .fi-gallery .fi-mobile-overlay.fi-mobile-idle {
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
}
body.single-wpi_immobilie.fi-touch-tablet .fi-gallery .fi-mobile-overlay:not(.fi-mobile-idle) {
  opacity:1!important;visibility:visible!important;pointer-events:auto!important;
}
body.single-wpi_immobilie.fi-touch-tablet .fi-gallery .fi-mobile-brand {
  display:flex!important;
  position:absolute!important;
  z-index:9!important;
  right:18px!important;
  bottom:17px!important;
  width:27%!important;
  max-width:185px!important;
}

/* v1.3.32 – Lightbox: no navy header strip, full-viewport photo.
   Controls remain accessible above the image; no image cropping. */
.fi-lightbox,
.fi-lightbox.fi-strip-hidden {
  display:block!important;
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  padding:0!important;
  overflow:hidden!important;
  background:#080b10!important;
}
.fi-lightbox .fi-lightbox-view {
  display:flex!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  grid-row:auto!important;
  align-items:center!important;
  justify-content:center!important;
  background:transparent!important;
}
.fi-lightbox .fi-lightbox-view > img {
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
}
.fi-lightbox .fi-lightbox-header,
.fi-lightbox.fi-strip-hidden .fi-lightbox-header {
  position:absolute!important;
  top:0!important;
  left:0!important;
  right:0!important;
  bottom:auto!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  padding:calc(12px + env(safe-area-inset-top,0px)) calc(18px + env(safe-area-inset-right,0px)) 12px calc(18px + env(safe-area-inset-left,0px))!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  border:0!important;
  grid-row:auto!important;
  pointer-events:none!important;
  z-index:30!important;
}
.fi-lightbox .fi-lightbox-close {
  pointer-events:auto!important;
  background:rgba(0,0,0,.32)!important;
  border-radius:50%!important;
}
.fi-lightbox .fi-lightbox-title,
.fi-lightbox .fi-lightbox-counter {
  text-shadow:0 1px 6px rgba(0,0,0,.95)!important;
}

/* Tablet landscape: show more of the original image in the HERO too.
   Contain prevents the strong top/bottom crop caused by object-fit:cover. */
@media (min-width:768px) and (max-width:1199px) and (orientation:landscape) {
  body.single-wpi_immobilie .fi-gallery .fi-gallery-stage {
    height:clamp(440px,72svh,820px)!important;
  }
  body.single-wpi_immobilie .fi-gallery .fi-gallery-main img[data-fi-main] {
    object-fit:contain!important;
    object-position:center!important;
    background:#172B49!important;
  }
}
@media (orientation:landscape) {
  body.single-wpi_immobilie.fi-touch-tablet .fi-gallery .fi-gallery-stage {
    height:clamp(440px,72svh,820px)!important;
  }
  body.single-wpi_immobilie.fi-touch-tablet .fi-gallery .fi-gallery-main img[data-fi-main] {
    object-fit:contain!important;
    object-position:center!important;
    background:#172B49!important;
  }
}


/* v1.3.41 – shared navy-to-transparent gallery scrim.
   Desktop: permanent strip overlaps the last part of the hero image.
   Phone and touch tablets: existing auto-hide behaviour is unchanged. */

/* Mobile overlay: transparent at the upper edge, #172B49 at the bottom.
   Keep the original gold rule and thumbnail layout. */
.fi-gallery .fi-mobile-overlay,
body.single-wpi_immobilie.fi-touch-tablet .fi-gallery .fi-mobile-overlay {
  background:linear-gradient(to bottom,
    rgba(24,38,59,0) 0%,
    rgba(24,38,59,.48) 24%,
    rgba(24,38,59,.88) 65%,
    #172B49 100%)!important;
  background-color:transparent!important;
  background-image:linear-gradient(to bottom,
    rgba(24,38,59,0) 0%,
    rgba(24,38,59,.48) 24%,
    rgba(24,38,59,.88) 65%,
    #172B49 100%)!important;
  border-top:0!important;
}

/* Desktop preview: pull the strip into the image by its own height.
   position:relative + z-index puts it above the hero; no absolute
   positioning or JS changes required. */
@media (min-width:1025px) and (hover:hover) and (pointer:fine) {
  body.single-wpi_immobilie .fi-gallery {
    position:relative!important;
    isolation:isolate;
  }
  body.single-wpi_immobilie .fi-gallery .fi-gallery-preview {
    position:relative!important;
    z-index:12!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    margin:-174px 0 0!important;
    width:100%!important;
    max-width:none!important;
    min-height:174px!important;
    padding:20px 24px 8px!important;
    background:linear-gradient(to bottom,
      rgba(24,38,59,0) 0%,
      rgba(24,38,59,.48) 23%,
      rgba(24,38,59,.88) 66%,
      #172B49 100%)!important;
    background-color:transparent!important;
    background-image:linear-gradient(to bottom,
      rgba(24,38,59,0) 0%,
      rgba(24,38,59,.48) 23%,
      rgba(24,38,59,.88) 66%,
      #172B49 100%)!important;
    border:0!important;
    border-top:0!important;
    border-radius:0!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    transition:none!important;
    pointer-events:auto!important;
  }
  body.single-wpi_immobilie .fi-gallery .fi-gallery-preview > .fi-gallery-thumb {
    position:relative!important;
    z-index:1!important;
  }
}

/* v1.3.43 – no gold border in any mode. On desktop the preview
   overlaps the hero by half its own height. The original dark-blue
   transparent gradient is retained, reaching opaque before the image edge. */
.fi-gallery .fi-mobile-overlay,
body.single-wpi_immobilie.fi-touch-tablet .fi-gallery .fi-mobile-overlay {
  border-top:0!important;
}
@media (min-width:1025px) and (hover:hover) and (pointer:fine) {
  body.single-wpi_immobilie .fi-gallery .fi-gallery-preview {
    height:190px!important;
    min-height:190px!important;
    margin:-95px 0 0!important;
    padding:18px 24px!important;
    box-sizing:border-box!important;
    border:0!important;
    border-top:0!important;
    background:linear-gradient(to bottom,
      rgba(24,38,59,0) 0%,
      rgba(24,38,59,.48) 18%,
      rgba(24,38,59,.88) 38%,
      #172B49 47%,
      #172B49 100%)!important;
    background-color:transparent!important;
    background-image:linear-gradient(to bottom,
      rgba(24,38,59,0) 0%,
      rgba(24,38,59,.48) 18%,
      rgba(24,38,59,.88) 38%,
      #172B49 47%,
      #172B49 100%)!important;
  }
}

/* v1.3.49 – dynamically populated property feature list */
/* Fitterling Ausstattung und Besonderheiten – v1.3.55 */
.fi-ausstattung-auto { background:#F5F6F7; padding:22px 26px; border-radius:8px; color:#172B49; }
.fi-ausstattung-auto h2 { font-family:Montserrat,sans-serif; font-size:24px; line-height:1.3; font-weight:600; margin:0 0 17px; padding:0 0 8px; border-bottom:1px solid #d9dce0; color:#172B49; position:relative; }
.fi-ausstattung-auto h2::after { content:""; position:absolute; bottom:-1px; left:0; width:62px; height:2px; background:#B09551; }
.fi-ausstattung-auto ul { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:22px; row-gap:10px; margin:0; padding:0; list-style:none; }
.fi-ausstattung-auto li { display:flex; align-items:center; gap:11px; min-width:0; font:400 14px/1.45 Inter,sans-serif; color:#172B49; overflow-wrap:break-word; }
.fi-ausstattung-auto .fi-ausstattung-icon { color:#B09551; flex:0 0 24px; width:24px; height:24px; }
.fi-ausstattung-auto li span { min-width:0; }
@media(max-width:1024px){ .fi-ausstattung-auto ul{grid-template-columns:repeat(2,minmax(0,1fr));} .fi-ausstattung-auto h2{font-size:22px;} }
@media(max-width:767px){ .fi-ausstattung-auto{padding:18px;} .fi-ausstattung-auto ul{grid-template-columns:1fr;} .fi-ausstattung-auto h2{font-size:20px;} }

/* v1.3.50 – category-aware object facts card; standalone Elementor shortcode */
.fi-objektdaten-auto{background:#172B49;color:#fff;border-radius:7px;padding:30px 32px;font-family:Inter,sans-serif;box-sizing:border-box;}
.fi-objektdaten-auto .fi-objektdaten-title{color:#fff;font:500 21px/1.4 Montserrat,sans-serif;margin:0 0 16px;}
.fi-objektdaten-price{padding:0 0 22px;margin:0 0 22px;border-bottom:2px solid #B09551;}
.fi-objektdaten-price-label{display:block;font:400 13px/1.5 Inter,sans-serif;color:#d0d9e7;margin-bottom:3px;}
.fi-objektdaten-price strong{display:block;font:600 clamp(26px,2.5vw,38px)/1.2 Montserrat,sans-serif;color:#fff;overflow-wrap:anywhere;}
.fi-objektdaten-rows{margin:0;padding:0;}
.fi-objektdaten-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:14px;align-items:baseline;margin:0;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.12);}
.fi-objektdaten-row:last-child{border-bottom:0;}
.fi-objektdaten-row dt{color:#bac7d8;font:400 14px/1.5 Inter,sans-serif;margin:0;}
.fi-objektdaten-row dd{color:#fff;font:500 18px/1.4 Inter,sans-serif;margin:0;overflow-wrap:anywhere;}
@media(max-width:767px){.fi-objektdaten-auto{padding:24px 22px;}.fi-objektdaten-row dd{font-size:17px;}}

/* v1.3.51 – icon at left, small label above large value; responsive and no mid-word wrapping. */
.fi-objektdaten-auto .fi-objektdaten-rows{display:flex;flex-direction:column;gap:23px;margin:0;padding:0;}
.fi-objektdaten-auto .fi-objektdaten-row{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;column-gap:15px;margin:0;padding:0;border:0;}
.fi-objektdaten-auto .fi-objektdaten-icon-wrap{display:flex;align-items:center;justify-content:center;color:#B09551;width:40px;}
.fi-objektdaten-auto .fi-objektdaten-icon{display:block;flex:none;width:34px;height:34px;}
.fi-objektdaten-auto .fi-objektdaten-info{min-width:0;}
.fi-objektdaten-auto .fi-objektdaten-row dt{display:block;font:400 13px/1.35 Inter,sans-serif;color:#fff;margin:0 0 3px;}
.fi-objektdaten-auto .fi-objektdaten-row dd{display:block;font:500 22px/1.3 Inter,sans-serif;color:#fff;margin:0;overflow-wrap:normal;word-break:normal;hyphens:none;}
@media(max-width:1024px){.fi-objektdaten-auto .fi-objektdaten-row dd{font-size:20px;}}
@media(max-width:767px){.fi-objektdaten-auto .fi-objektdaten-row dd{font-size:18px;}.fi-objektdaten-auto .fi-objektdaten-rows{gap:20px;}}

/* v1.3.52 – originale goldene Fitterling-Icons, proportional skaliert */
.fi-objektdaten-auto .fi-objektdaten-icon-custom{display:block;width:34px;height:34px;object-fit:contain;object-position:center;max-width:100%;}


/* v1.3.56 – hochwertige Icon-Liste mit priorisierter Aufklappfunktion */
.fi-ausstattung-v156{background:#F5F6F7!important;padding:20px 26px!important;border-radius:8px;}
.fi-ausstattung-v156 .fi-ausstattung-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px;row-gap:11px;list-style:none;margin:0;padding:0;}
.fi-ausstattung-v156 .fi-ausstattung-grid li{display:flex;align-items:center;gap:10px;min-width:0;font:400 13px/1.45 Inter,sans-serif;color:#172B49;}
.fi-ausstattung-v156 .fi-ausstattung-icon{flex:0 0 24px;width:24px;height:24px;color:#B09551;}
.fi-ausstattung-v156 .fi-ausstattung-grid li span{min-width:0;overflow-wrap:break-word;}
.fi-ausstattung-v156 .fi-ausstattung-details{margin-top:15px;border-top:1px solid #d9dce0;padding-top:10px;}
.fi-ausstattung-v156 .fi-ausstattung-details summary{cursor:pointer;display:list-item;color:#172B49;font:600 13px/1.5 Inter,sans-serif;list-style-position:inside;}
.fi-ausstattung-v156 .fi-ausstattung-details summary:hover{color:#B09551;}
.fi-ausstattung-v156 .fi-ausstattung-count{font-weight:400;}
.fi-ausstattung-v156 .fi-ausstattung-details[open] .fi-ausstattung-grid{margin-top:14px;}
.fi-ausstattung-v156 .fi-ausstattung-mobile{display:none;}
@media(min-width:1025px){.fi-ausstattung-v156 .fi-ausstattung-grid li:nth-child(3n+2){border-left:1px solid #d9dce0;padding-left:12px;}}
@media(max-width:1024px){.fi-ausstattung-v156 .fi-ausstattung-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:767px){.fi-ausstattung-v156{padding:18px!important;}.fi-ausstattung-v156 .fi-ausstattung-desktop{display:none;}.fi-ausstattung-v156 .fi-ausstattung-mobile{display:block;}.fi-ausstattung-v156 .fi-ausstattung-grid{grid-template-columns:minmax(0,1fr);}}

/* v1.3.58 – harmonisierte Abschnittsüberschrift und symmetrische Spaltentrennung */
.fi-ausstattung-v156 > h2 {
  font-family:Montserrat,sans-serif!important;
  font-size:26px!important;
  font-weight:600!important;
  line-height:1.25!important;
  color:#172B49!important;
  margin:0 0 19px!important;
  padding:0 0 14px!important;
  border:0!important;
  position:relative;
}
.fi-ausstattung-v156 > h2::after {
  content:"";position:absolute;left:0;bottom:0;
  width:min(280px,100%);height:2px;background:#B09551;
}
/* Trennlinien liegen in der Mitte der 24px-Spaltenabstände.
   Nur ab 4 Merkmalen, damit eine einzelne Zeile ohne Linien bleibt. */
@media (min-width:1025px) {
  .fi-ausstattung-v156 .fi-ausstattung-grid {position:relative;}
  .fi-ausstattung-v156 .fi-ausstattung-grid li:nth-child(3n+2) {
    border-left:0!important;padding-left:0!important;
  }
  .fi-ausstattung-v156 .fi-ausstattung-grid--separators::before,
  .fi-ausstattung-v156 .fi-ausstattung-grid--separators::after {
    content:"";position:absolute;top:0;bottom:0;width:1px;
    background:#D5D9DE;pointer-events:none;
  }
  .fi-ausstattung-v156 .fi-ausstattung-grid--separators::before {left:calc((100% - 48px) / 3 + 12px);}
  .fi-ausstattung-v156 .fi-ausstattung-grid--separators::after {left:calc(2 * (100% - 48px) / 3 + 36px);}
}
@media (max-width:1024px) {
  .fi-ausstattung-v156 > h2 {font-size:24px!important;}
}
@media (max-width:767px) {
  .fi-ausstattung-v156 > h2 {font-size:22px!important;}
}

/* v1.3.59: Dynamische Links zu 3D-Rundgang und Immobilienvideo */
.fi-virtuell{box-sizing:border-box;background:#F5F6F7;border-radius:8px;padding:22px 26px;color:#172B49;font-family:Inter,sans-serif;}
.fi-virtuell *{box-sizing:border-box;}
.fi-virtuell-heading h2{font-family:Montserrat,sans-serif!important;font-size:26px!important;font-weight:600!important;line-height:1.25!important;color:#172B49!important;margin:0!important;padding:0 0 14px!important;border:0!important;position:relative;}
.fi-virtuell-heading h2::after{content:"";position:absolute;left:0;bottom:0;width:min(280px,100%);height:2px;background:#B09551;}
.fi-virtuell-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:19px;}
.fi-virtuell-link{display:flex;align-items:center;gap:14px;min-width:0;padding:18px 16px;border:1px solid #D9DDE2;border-radius:7px;background:#fff;color:#172B49!important;text-decoration:none!important;transition:border-color .2s,box-shadow .2s,transform .2s;}
.fi-virtuell-link:hover,.fi-virtuell-link:focus-visible{border-color:#B09551;box-shadow:0 3px 13px rgba(23,43,73,.09);transform:translateY(-1px);}
.fi-virtuell-icon{display:flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;color:#B09551;}
.fi-virtuell-icon svg{width:30px;height:30px;}
.fi-virtuell-copy{display:flex;flex-direction:column;gap:3px;min-width:0;}
.fi-virtuell-copy strong{font:600 15px/1.35 Montserrat,sans-serif;color:#172B49;}
.fi-virtuell-copy small{font:400 12px/1.45 Inter,sans-serif;color:#66778B;}
.fi-virtuell-arrow{margin-left:auto;color:#B09551;font-size:22px;line-height:1;}
@media(min-width:768px){.fi-virtuell--1{display:flex;align-items:center;gap:24px;}.fi-virtuell--1 .fi-virtuell-heading{flex:0 0 auto;max-width:46%;}.fi-virtuell--1 .fi-virtuell-links{flex:1;display:block;margin:0;min-width:0;}.fi-virtuell--1 .fi-virtuell-link{width:100%;}}
@media(max-width:1024px){.fi-virtuell-heading h2{font-size:24px!important;}}
@media(max-width:767px){.fi-virtuell{padding:18px;}.fi-virtuell-heading h2{font-size:22px!important;}.fi-virtuell-links{grid-template-columns:1fr;gap:10px;}.fi-virtuell-link{padding:15px 13px;}}

/* v1.3.83: compact mobile property facts; desktop/tablet unchanged. */
@media (max-width:767px) {
  .fi-objektdaten-auto .fi-objektdaten-rows {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:14px;
    row-gap:19px;
  }
  .fi-objektdaten-auto .fi-objektdaten-row {
    display:flex;
    align-items:flex-start;
    gap:7px;
    min-width:0;
  }
  .fi-objektdaten-auto .fi-objektdaten-icon-wrap {
    flex:0 0 23px;
    width:23px;
    padding-top:2px;
  }
  .fi-objektdaten-auto .fi-objektdaten-icon,
  .fi-objektdaten-auto .fi-objektdaten-icon-custom {
    width:22px;
    height:22px;
  }
  .fi-objektdaten-auto .fi-objektdaten-row dt {font-size:11px;line-height:1.3;}
  .fi-objektdaten-auto .fi-objektdaten-row dd {font-size:16px;line-height:1.35;overflow-wrap:anywhere;}
  .fi-elementor-back {min-height:44px;padding:8px 0;}
}
