.be-media-tabs{display:flex;flex-direction:column;width:100%;height:100%;aspect-ratio:1;background:#fff;color:#1d1d1b;padding:16px;gap:14px;cursor:default}
.be-media-tabs__tabs{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;flex-shrink:0}
.be-media-tabs__tabs button{font:500 12px/1.2 var(--font-body--family);border:1px solid #1d1d1b;border-radius:0;background:#fff;color:#1d1d1b;min-height:40px;padding:9px 12px;cursor:pointer}
.be-media-tabs__tabs button[aria-selected=true]{background:#1d1d1b;color:#fff}
.be-media-tabs button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.be-media-tabs__views{flex:1;min-height:0;position:relative}
.be-media-tabs [role=tabpanel]{width:100%;height:100%}
.be-media-tabs [role=tabpanel][hidden]{display:none}
.be-media-tabs [role=tabpanel] img{position:static!important;display:block;width:100%;height:100%;object-fit:contain!important;object-position:center}
.be-media-tabs__zoom{position:absolute;bottom:0;right:0;display:grid;place-items:center;width:44px;height:44px;border:0;background:#fff;color:#1d1d1b;font:300 30px/1 var(--font-body--family);cursor:zoom-in}
.be-media-tabs__dialog{padding:24px;border:0;width:min(94vw,1100px);height:94dvh;max-width:94vw;max-height:94dvh;background:#fff}
.be-media-tabs__dialog::backdrop{background:#0009}
.be-media-tabs__dialog img{display:block;position:static;width:100%;height:100%;object-fit:contain}
.be-media-tabs__close{position:absolute;right:8px;top:8px;z-index:1;background:#fff;border:0;width:44px;height:44px;font-size:30px;cursor:pointer}
@media(max-width:749px){.be-media-tabs{padding:8px;gap:10px}.be-media-tabs__tabs{gap:5px}.be-media-tabs__tabs button{font-size:11px;padding:8px;min-height:36px}}

.be-media-tabs--expanded{height:82dvh;max-height:1000px;width:min(100%,1000px);margin-inline:auto}

/* Single selected image: no gallery stack, no inherited cover crop. */
.be-media-tabs .be-media-tabs__dialog{position:fixed;inset:0;margin:auto;overflow:hidden;padding:48px 20px 20px;}
.be-media-tabs .be-media-tabs__dialog img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important;}
