.hbd-gallery-open{overflow:hidden}.hbd-gallery-main{padding-block:28px}.hbd-gallery-page{max-width:1200px;margin:auto}.hbd-gallery-dialog{width:min(1200px,96vw);max-width:96vw;height:min(920px,94dvh);max-height:94dvh;padding:0;border:0;border-radius:16px;background:#fff;color:#18252d;box-shadow:0 20px 80px #0005}.hbd-gallery-dialog::backdrop{background:#10202bd9}.hbd-gallery-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 22px;border-bottom:1px solid #e4e8eb}.hbd-gallery-dialog-header h2{font-size:22px;margin:0}.hbd-gallery-close{border:0;background:#eef1f3;border-radius:50%;width:44px;height:44px;font-size:30px;line-height:1;color:inherit;flex-shrink:0}.hbd-gallery-dialog-body{padding:0 22px 22px}.hbd-gallery-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0}.hbd-gallery-toggle,.hbd-gallery-house-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:8px;border:1px solid #ccd6dc;background:#fff;color:#18252d;text-decoration:none;font-weight:600}.hbd-gallery-counter{font-size:14px;color:#52616b}.hbd-gallery-stage{position:relative;display:flex;align-items:center;justify-content:center;background:#f0f3f5;border-radius:10px;overflow:hidden;min-height:200px;height:min(64dvh,650px);touch-action:pan-y pinch-zoom;user-select:none}.hbd-gallery-dialog .hbd-gallery-stage{height:min(60dvh,620px)}.hbd-gallery-image{width:100%;height:100%;object-fit:contain;display:block}.hbd-gallery-arrow{position:absolute;top:calc(50% - 24px);border:1px solid #d0d7dc;border-radius:50%;background:#fffffff0;color:#18252d;width:48px;height:48px;font-size:34px;line-height:1;box-shadow:0 2px 10px #0002}.hbd-gallery-prev{left:12px}.hbd-gallery-next{right:12px}.hbd-gallery-arrow:disabled{opacity:.3;cursor:default}.hbd-gallery-info{display:flex;align-items:center;gap:14px;padding:18px 0}.hbd-gallery-logo{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 60px;width:60px;height:60px;background:#f1f4f6;border:1px solid #e1e6e9;border-radius:8px;overflow:hidden}.hbd-gallery-logo img{position:absolute;width:100%;height:100%;object-fit:contain;background:#fff;padding:4px}.hbd-gallery-logo-fallback{color:#91a0a9;width:38px;height:38px}.hbd-gallery-logo-fallback svg{width:100%;height:100%}.hbd-gallery-logo [hidden]{display:none!important}.hbd-gallery-info-text{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.hbd-gallery-provider{font-size:14px;color:#52616b}.hbd-gallery-house{font-size:18px;overflow-wrap:anywhere}.hbd-gallery-masonry{display:flex;gap:16px;align-items:flex-start;padding:4px}.hbd-gallery-tile{display:block;width:100%;break-inside:avoid;margin:0 0 16px;padding:0;border:0;border-radius:9px;overflow:hidden;background:#f1f4f6;color:#18252d;text-align:left;cursor:pointer}.hbd-gallery-tile.is-selected{outline:3px solid #285f73;outline-offset:2px}.hbd-gallery-thumb{display:block;width:100%;height:auto}.hbd-gallery-tile-title{display:block;padding:10px 12px;font-weight:600}.hbd-gallery-link{display:flex;align-items:center;gap:20px;border:1px solid #dce3e8;border-radius:12px;padding:16px;margin:20px 0;color:inherit;text-decoration:none;background:#f7f9fa}.hbd-gallery-link>img{width:170px;height:115px;object-fit:cover;border-radius:8px}.hbd-gallery-link>span{display:flex;flex-direction:column;gap:8px}.hbd-gallery-link strong{font-size:20px}.hbd-gallery-card{display:block;height:100%;background:var(--hbd-related-surface,#fff);border-radius:var(--hbd-card-radius,12px);overflow:hidden;color:inherit;text-decoration:none;border:1px solid #e2e8ec}.hbd-gallery-card-media{position:relative;display:block;aspect-ratio:var(--hbd-term-card-media-ratio-desktop,1.6);overflow:hidden;background:#eef1f3}.hbd-gallery-card-collage{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:3px;overflow:hidden}.hbd-gallery-card-photo{display:block;position:relative;min-width:0;min-height:0;overflow:hidden}.hbd-gallery-card-photo--1{grid-column:1;grid-row:1 / 3}.hbd-gallery-card-photo--2{grid-column:2;grid-row:1}.hbd-gallery-card-photo--3{grid-column:2;grid-row:2}.hbd-gallery-card .hbd-gallery-card-photo img,.hbd-gallery-card .hbd-gallery-card-photo picture{display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:none;max-height:none;margin:0;object-fit:cover;aspect-ratio:auto}.hbd-gallery-card-media--1 .hbd-gallery-card-photo--1{grid-column:1 / 3}.hbd-gallery-card-media--2 .hbd-gallery-card-photo--2{grid-row:1 / 3}.hbd-gallery-card-content{display:flex;flex-direction:column;gap:10px;padding:var(--hbd-term-card-body-padding-desktop,18px)}.hbd-related-card--term-card .hbd-gallery-card .hbd-related-card__title--term{font-size:min(var(--hbd-term-card-title-size-desktop,18px),18px);font-weight:600;line-height:1.35;margin:0;overflow-wrap:anywhere}.hbd-gallery-card-count{position:absolute;left:10px;bottom:10px;display:inline-flex;align-items:center;gap:7px;max-width:calc(100% - 20px);padding:7px 10px;border-radius:7px;background:#17252de8;color:#fff;font-size:12px;font-weight:600;line-height:1.3;box-shadow:0 1px 4px #0002}.hbd-gallery-card-count svg{width:17px;height:17px;flex:0 0 17px}.hbd-gallery-card .hbd-gallery-card-action{font-size:13px;line-height:1.4;font-weight:500}.hbd-gallery-noscript{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.hbd-gallery-noscript img{width:100%;height:auto}.hbd-gallery-noscript span{display:block}.hbd-gallery-dialog button:focus-visible,.hbd-gallery-dialog a:focus-visible,.hbd-gallery-page button:focus-visible,.hbd-gallery-link:focus-visible,.hbd-gallery-card:focus-visible{outline:3px solid #285f73;outline-offset:3px}.hbd-gallery-image-error{padding:24px;text-align:center}
@media(max-width:800px){.hbd-gallery-masonry{gap:16px}.hbd-gallery-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.hbd-gallery-dialog-header{padding:10px 14px}.hbd-gallery-dialog-header h2{font-size:19px}.hbd-gallery-dialog-body{padding:0 12px 20px}.hbd-gallery-dialog .hbd-gallery-stage{height:54dvh}.hbd-gallery-info{flex-wrap:wrap;gap:10px}.hbd-gallery-house-link{margin-left:auto}.hbd-gallery-house{font-size:16px}.hbd-gallery-logo{width:50px;height:50px;flex-basis:50px}.hbd-gallery-link{gap:12px;padding:12px}.hbd-gallery-link>img{width:100px;height:100px}.hbd-gallery-link strong{font-size:17px}.hbd-gallery-noscript{grid-template-columns:repeat(2,1fr)}}
@media(max-width:420px){.hbd-gallery-info .hbd-gallery-house-link{width:100%;margin:2px 0 0}.hbd-gallery-masonry{gap:10px}.hbd-gallery-tile{margin-bottom:10px}.hbd-gallery-stage{height:50dvh}}

@media(max-width:1199px){.hbd-gallery-card-media{aspect-ratio:var(--hbd-term-card-media-ratio-tablet,var(--hbd-term-card-media-ratio-desktop,1.6))}.hbd-gallery-card-content{padding:var(--hbd-term-card-body-padding-tablet,var(--hbd-term-card-body-padding-desktop,18px))}.hbd-related-card--term-card .hbd-gallery-card .hbd-related-card__title--term{font-size:min(var(--hbd-term-card-title-size-tablet,17px),17px)}}
@media(max-width:767px){.hbd-gallery-card-media{aspect-ratio:var(--hbd-term-card-media-ratio-mobile,var(--hbd-term-card-media-ratio-desktop,1.6))}.hbd-gallery-card-content{padding:var(--hbd-term-card-body-padding-mobile,var(--hbd-term-card-body-padding-desktop,16px))}.hbd-related-card--term-card .hbd-gallery-card .hbd-related-card__title--term{font-size:min(var(--hbd-term-card-title-size-mobile,16px),16px)}}

.hbd-gallery-column{flex:1 1 0;min-width:0}.hbd-gallery-load-status{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;padding:16px;color:#52616b;font-size:14px;min-height:54px}.hbd-gallery-load-status[hidden]{display:none}.hbd-gallery-load-status .hbd-gallery-toggle{font-size:14px}

.hbd-gallery-dialog-header{position:sticky;top:0;z-index:3;background:#fff}

/* Three local slides follow the gesture; no long strip of full-size photos. */
.hbd-gallery-rail{display:flex;flex:0 0 100%;width:100%;height:100%;transform:translate3d(-100%,0,0);will-change:transform}
.hbd-gallery-slide{display:flex;align-items:center;justify-content:center;flex:0 0 100%;width:100%;height:100%;min-width:0;overflow:hidden}
.hbd-gallery-slide .hbd-gallery-image{flex:0 0 100%;width:100%;height:100%;object-fit:contain;-webkit-user-drag:none;pointer-events:none}
.hbd-gallery-stage{cursor:grab;overscroll-behavior-x:contain}.hbd-gallery-stage.is-dragging{cursor:grabbing}.hbd-gallery-arrow{z-index:1;cursor:pointer}
@media(prefers-reduced-motion:reduce){.hbd-gallery-rail{transition:none!important;will-change:auto}}

/* Desktop scrolling and trackpad momentum belong to the browser. */
.hbd-gallery-stage--native{display:block;touch-action:auto}
.hbd-gallery-native-viewport{width:100%;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;direction:ltr;touch-action:auto}
.hbd-gallery-native-viewport::-webkit-scrollbar{display:none}
.hbd-gallery-native-track{display:flex;width:100%;height:100%}
.hbd-gallery-native-slide{display:flex;align-items:center;justify-content:center;flex:0 0 100%;width:100%;min-width:0;height:100%;overflow:hidden;scroll-snap-align:center;scroll-snap-stop:always}
.hbd-gallery-native-slide .hbd-gallery-image{width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}

/* Match the Hauswelten card shell; keep gallery collage and typography intact. */
.hbd-related-listings--source-hbd_galerien .hbd-related-card--term-card,
.hbd-related-listings--source-hbd_galerien .hbd-related-card--term-card:focus-within{
 border:1px solid var(--hbd-list-card-border,#d9dde3);
 border-radius:var(--hbd-list-card-radius,22px);
 box-shadow:var(--hbd-list-card-shadow,0 14px 34px rgba(15,23,42,.14));
 background:#fff;
}
.hbd-related-listings--source-hbd_galerien .hbd-gallery-card{
 border:0;border-radius:inherit;background:#fff;color:#1f2933;text-decoration:none;
}
.hbd-related-listings--source-hbd_galerien .hbd-gallery-card .hbd-related-card__title--term{
 color:#1f2933;
}
.hbd-related-listings--source-hbd_galerien .hbd-gallery-card-action{
 color:#00aeef;transition:color .18s ease;
}
@media(hover:hover) and (pointer:fine){
 .hbd-related-listings--source-hbd_galerien .hbd-related-listings__slide:hover .hbd-related-card--term-card{
  transform:translateY(-1px);box-shadow:0 5px 12px rgba(15,28,44,.08);border-color:#c9d4e0;
 }
 .hbd-related-listings--source-hbd_galerien .hbd-gallery-card:hover .hbd-gallery-card-action{color:#0088bb}
}
.hbd-related-listings--source-hbd_galerien .hbd-gallery-card:focus-visible{
 outline:2px solid #285f73;outline-offset:-3px;text-decoration:none;
}
.hbd-related-listings--source-hbd_galerien .hbd-gallery-card:focus-visible .hbd-gallery-card-action{color:#0088bb}
@media(prefers-reduced-motion:reduce){
 .hbd-related-listings--source-hbd_galerien .hbd-related-card--term-card,
 .hbd-related-listings--source-hbd_galerien .hbd-gallery-card-action{transition:none}
 .hbd-related-listings--source-hbd_galerien .hbd-related-listings__slide:hover .hbd-related-card--term-card{transform:none}
}

/* Pointer returns keep focus without a keyboard-style outline. */
.hbd-related-listings--source-hbd_galerien .hbd-gallery-card.hbd-gallery-pointer-focus:focus{outline:none}

/* Remember the last card within this page without changing border width or shadow. */
.hbd-related-listings--source-hbd_galerien .hbd-related-card--term-card.hbd-gallery-last-opened,
.hbd-related-listings--source-hbd_galerien .hbd-related-card--term-card.hbd-gallery-last-opened:focus-within,
.hbd-related-listings--source-hbd_galerien .hbd-related-listings__slide:hover .hbd-related-card--term-card.hbd-gallery-last-opened{border-color:#8295a7}
