/* Definite stack widths supply intrinsic size to centered/shrink-to-fit Elementor widgets.
   Percentage-only sizing collapsed to the 140px navigation width with absolute cards. */
.mbpcs-layered{--mbpcs-layer-ratio:2/3;--mbpcs-layer-card-width:100%;--mbpcs-layer-card-height:100%;--mbpcs-layer-turn:0deg;width:496px;max-width:100%;padding:30px 28px;box-sizing:border-box}
.mbpcs-layered--layered_horizontal{width:716px;--mbpcs-layer-ratio:1.5;--mbpcs-layer-card-width:66.6667%;--mbpcs-layer-card-height:150%;--mbpcs-layer-turn:-90deg}
.mbpcs-layered__stage{position:relative;width:100%;max-width:440px;aspect-ratio:var(--mbpcs-layer-ratio);margin:0 auto;touch-action:pan-y pinch-zoom;isolation:isolate}
.mbpcs-layered--layered_horizontal .mbpcs-layered__stage{max-width:660px}
.mbpcs-layered__card{position:absolute;left:50%;top:50%;width:var(--mbpcs-layer-card-width);height:var(--mbpcs-layer-card-height);transform:translate(-50%,-50%) translateX(var(--mbpcs-layer-x,0%)) rotate(calc(var(--mbpcs-layer-turn) + var(--mbpcs-layer-tilt,0deg)));display:block;background:#eee;color:#222;text-decoration:none;border-radius:18px;overflow:hidden;user-select:none;-webkit-user-drag:none}
.mbpcs-layered__card[hidden],.mbpcs-layered__controls[hidden]{display:none!important}
.mbpcs-layered__image{display:block;width:100%;height:100%;object-fit:contain;border-radius:18px;pointer-events:none}
.mbpcs-layered__placeholder{display:flex;align-items:center;justify-content:center;height:100%;padding:20px;box-sizing:border-box;text-align:center}
.mbpcs-layered__controls{display:flex;justify-content:center;gap:24px;margin-top:45px}
.mbpcs-layered .mbpcs-layered__button{display:flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:transparent;color:#231f20;cursor:pointer;box-shadow:none;min-height:0}
.mbpcs-layered__button svg{display:block;width:30px;height:30px;fill:currentColor}
.mbpcs-layered .mbpcs-layered__button:hover,.mbpcs-layered .mbpcs-layered__button:focus-visible{background:transparent;color:#ffcf00}
.mbpcs-layered__card:focus-visible,.mbpcs-layered__button:focus-visible{outline:2px solid #ffcf00;outline-offset:5px}
.mbpcs-layered__status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:760px){
 .mbpcs-layered--layered_horizontal{--mbpcs-layer-turn:0deg}
 .mbpcs-layered--layered_horizontal .mbpcs-layered__stage{max-width:440px}
 .mbpcs-layered:not([data-mbpcs-ready]){--mbpcs-layer-ratio:2/3;--mbpcs-layer-card-width:100%;--mbpcs-layer-card-height:100%}
}

/* Prevent host-theme image/link limits from shrinking the rotated card. */
.mbpcs-catalog .mbpcs-layered .mbpcs-layered__card{max-width:none!important;max-height:none!important;min-width:0;box-sizing:border-box;padding:0;border:0}
.mbpcs-catalog .mbpcs-layered .mbpcs-layered__image{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0;padding:0;aspect-ratio:auto}
.mbpcs-layered .mbpcs-layered__button:disabled{opacity:.45;cursor:wait}
@media(max-width:760px){.mbpcs-layered{width:480px;padding:24px 20px}.mbpcs-layered__stage,.mbpcs-layered--layered_horizontal .mbpcs-layered__stage{max-width:440px}}

/* Specificity (0,3,0) beats Elementor anchor reset (0,1,1), regardless of load order. */
.mbpcs-catalog .mbpcs-layered .mbpcs-layered__card{border-radius:18px;-webkit-touch-callout:none;box-shadow:0 3px 10px rgba(0,0,0,.40),0 1px 3px rgba(0,0,0,.40)}
.mbpcs-catalog .mbpcs-layered .mbpcs-layered__image{border-radius:18px}

/* Binder page: a vertical 440px Card stack; retain each original image ratio. */
.modum-binder .mbpcs-layered{width:440px;max-width:100%;padding:0;margin:auto;--mbpcs-layer-turn:0deg}
.modum-binder .mbpcs-layered__stage{max-width:440px}
.modum-binder .mbpcs-layered__controls{margin:0;gap:24px;display:flex!important;justify-content:center}
.modum-binder .mbpcs-layered .mbpcs-layered__button{width:30px;height:30px;padding:0;margin:0;border:0;background:none}
.modum-binder .mbpcs-layered__card,.modum-binder .mbpcs-layered__image{border-radius:0!important}
