/* Wibsy's V40 – echte Fotogalerie. Eigenständig, ohne Einfluss auf Katalog/Formular. */
.wibsy-gallery-section{padding:70px 0 78px;background:#f8f3eb;overflow:hidden;border-top:1px solid #ede6db;border-bottom:1px solid #ede6db}
.wibsy-gallery-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:28px}
.wibsy-gallery-head h2{margin:10px 0 12px;font-size:clamp(30px,4vw,49px)}
.wibsy-gallery-head p{max-width:610px;font-size:15px}
.wibsy-gallery-hint{white-space:nowrap;color:#7e8590;font-size:13px;font-weight:650;padding-bottom:8px}
.wibsy-gallery-shell{position:relative}
.wibsy-gallery-shell:before,.wibsy-gallery-shell:after{content:'';position:absolute;z-index:2;top:0;bottom:12px;width:clamp(18px,5vw,80px);pointer-events:none}
.wibsy-gallery-shell:before{left:0;background:linear-gradient(90deg,#f8f3eb,transparent)}
.wibsy-gallery-shell:after{right:0;background:linear-gradient(270deg,#f8f3eb,transparent)}
.wibsy-gallery-scroller{display:flex;gap:17px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:4px 0 18px;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch}
.wibsy-gallery-scroller::-webkit-scrollbar{display:none}
.wibsy-gallery-item{display:block;position:relative;flex:0 0 clamp(245px,29vw,365px);height:clamp(245px,29vw,365px);border:0;padding:0;background:#e9d2b9;border-radius:20px;overflow:hidden;box-shadow:0 7px 20px rgba(37,44,56,.12);cursor:zoom-in;transition:transform .22s ease,box-shadow .22s ease}
.wibsy-gallery-item:hover{transform:translateY(-3px);box-shadow:0 13px 28px rgba(37,44,56,.17)}
.wibsy-gallery-item img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.wibsy-gallery-item:after{content:'↗';position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:rgba(255,255,255,.91);color:#26344b;font-size:17px;opacity:0;transition:opacity .2s}
.wibsy-gallery-item:hover:after,.wibsy-gallery-item:focus-visible:after{opacity:1}
.wibsy-gallery-caption{text-align:center;color:#80838b;font-size:12px;margin-top:8px}
.wibsy-gallery-dialog{border:0;padding:0;max-width:min(94vw,1100px);max-height:92dvh;background:transparent;color:white;overflow:visible}
.wibsy-gallery-dialog::backdrop{background:rgba(9,19,35,.87);backdrop-filter:blur(5px)}
.wibsy-gallery-dialog-inner{display:flex;flex-direction:column;align-items:center;gap:12px;position:relative}
.wibsy-gallery-dialog img{display:block;max-width:94vw;max-height:76dvh;object-fit:contain;border-radius:12px;box-shadow:0 12px 44px rgba(0,0,0,.3)}
.wibsy-gallery-dialog-close{position:absolute;right:0;top:-47px;background:white;color:#26344b;border:0;border-radius:50%;width:38px;height:38px;font-size:25px;line-height:1}
.wibsy-gallery-dialog-controls{display:flex;align-items:center;justify-content:center;gap:24px;color:#fff;font-size:13px}
.wibsy-gallery-dialog-controls button{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.5);color:#fff;border-radius:50%;width:40px;height:40px;font-size:22px}
@media(max-width:700px){.wibsy-gallery-section{padding:55px 0 58px}.wibsy-gallery-head{display:block;margin-bottom:22px}.wibsy-gallery-hint{display:block;margin-top:12px;padding:0}.wibsy-gallery-scroller{gap:12px}.wibsy-gallery-item{flex-basis:78vw;max-width:310px;height:min(78vw,310px);border-radius:16px}.wibsy-gallery-shell:before,.wibsy-gallery-shell:after{width:18px}.wibsy-gallery-item:after{opacity:1}}
@media(prefers-reduced-motion:reduce){.wibsy-gallery-item{transition:none}.wibsy-gallery-item:hover{transform:none}}

/* V42: Coverflow statt automatisch laufendem Slider */
.wibsy-gallery-shell{height:clamp(290px,42vw,440px);position:relative;perspective:1200px;overflow:hidden}
.wibsy-gallery-shell:before,.wibsy-gallery-shell:after{display:none}
.wibsy-gallery-scroller.wibsy-coverflow{position:relative;display:block;overflow:visible;width:100%;height:100%;padding:0;touch-action:pan-y;perspective:1200px}
.wibsy-cover-card{position:absolute;left:50%;top:46%;width:clamp(190px,29vw,320px);height:clamp(190px,29vw,320px);border:5px solid #fff;border-radius:20px;padding:0;overflow:hidden;background:#f4e6d7;cursor:pointer;box-shadow:0 15px 35px rgba(42,34,30,.19);opacity:calc(1 - var(--depth)*.19);transform:translate(-50%,-50%) translateX(calc(var(--offset)*clamp(105px,17vw,205px))) translateZ(calc(var(--depth)*-95px)) rotateY(calc(var(--offset)*-23deg));transition:transform .48s cubic-bezier(.2,.75,.2,1),opacity .35s;backface-visibility:hidden}
.wibsy-cover-card img{width:100%;height:100%;object-fit:cover;display:block}
.wibsy-cover-card.is-center{box-shadow:0 22px 48px rgba(42,34,30,.24);opacity:1}
.wibsy-cover-card.is-hidden{visibility:hidden;pointer-events:none}
.wibsy-cover-card:after{display:none}
.wibsy-cover-arrow{position:absolute;z-index:30;top:46%;transform:translateY(-50%);border:1px solid #e4d4c4;background:#fffaf5;color:#473c34;width:44px;height:44px;border-radius:50%;font-size:32px;line-height:35px;cursor:pointer;box-shadow:0 4px 14px #0002}
.wibsy-cover-arrow.is-left{left:12px}.wibsy-cover-arrow.is-right{right:12px}
.wibsy-cover-status{text-align:center;font-size:13px;color:#77717a;margin-top:0}
.wibsy-gallery-caption{margin-top:8px}
@media(max-width:700px){.wibsy-gallery-shell{height:315px}.wibsy-cover-card{width:min(65vw,260px);height:min(65vw,260px);transform:translate(-50%,-50%) translateX(calc(var(--offset)*34vw)) translateZ(calc(var(--depth)*-110px)) rotateY(calc(var(--offset)*-30deg))}.wibsy-cover-arrow{width:35px;height:35px;font-size:27px}.wibsy-cover-arrow.is-left{left:2px}.wibsy-cover-arrow.is-right{right:2px}}
@media(prefers-reduced-motion:reduce){.wibsy-cover-card{transition:none}}
