/* Magentaco gallery toolbar and mobile menu breadcrumb. */
.magenta-gallery-panel .lg-toolbar,
.magenta-gallery-panel.lg-hide-items .lg-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    box-sizing: border-box;
    top: 0;
    padding: max(4px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 4px max(8px, env(safe-area-inset-left));
    min-height: 52px;
    background: rgba(20, 20, 20, .96);
    opacity: 1;
    transform: none;
    -webkit-transform: none;
    transition: none;
}
.magenta-gallery-panel .lg-toolbar::after { display: none; }
.magenta-gallery-panel .lg-toolbar .lg-icon,
.magenta-gallery-panel .lg-actions .lg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
}
.magenta-gallery-panel .lg-icon::before,
.magenta-gallery-panel .lg-icon::after { content: none !important; }
.magenta-gallery-panel .lg-icon svg { width: 24px; height: 24px; pointer-events: none; }
.magenta-gallery-panel .lg-icon:hover { background: #444; color: #fff; }
.magenta-gallery-panel .lg-icon:focus-visible { outline: 2px solid #fff; outline-offset: -3px; background: #444; }
.magenta-gallery-panel #lg-counter { order: -1; margin-right: auto; padding: 0 8px 0 0; color: #fff; font: 14px/1.4 Arial, sans-serif; flex-shrink: 0; }
.magenta-gallery-panel .lg-close { order: 10; }
.magenta-gallery-panel .lg-actions .lg-prev,
.magenta-gallery-panel .lg-actions .lg-next,
.magenta-gallery-panel.lg-hide-items .lg-actions .lg-prev,
.magenta-gallery-panel.lg-hide-items .lg-actions .lg-next { opacity: 1; transform: none; -webkit-transform: none; margin-top: -22px; background: rgba(20,20,20,.9); }
.magenta-gallery-panel .lg-sub-html { max-height: 25vh; overflow-y: auto; padding: 10px 16px; font: 14px/1.4 Arial, sans-serif; background: rgba(20,20,20,.92); }
@media (max-width: 359px) {
    .magenta-gallery-panel .lg-toolbar { gap: 0; padding-left: 4px; padding-right: 4px; }
    .magenta-gallery-panel #lg-counter { padding-right: 4px; }
}

.magenta-gallery-panel .lg-toogle-thumb { display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; top:-44px; color:white; }
.magenta-gallery-panel.lg-thumb-open .lg-sub-html { padding-right:64px; }
.magenta-gallery-panel .lg-thumb-item:focus-visible { outline:2px solid white; outline-offset:-4px; }
/* The menu is initialized by an isolated jQuery instance; CSS needs no JS dependency. */
#menu > .mm-navbar .mm-breadcrumbs { display:flex; align-items:center; min-width:0; overflow:hidden; white-space:nowrap; }
#menu > .mm-navbar .mm-breadcrumbs > a,
#menu > .mm-navbar .mm-breadcrumbs > .mm-separator { flex:0 0 auto; }
#menu > .mm-navbar .mm-breadcrumbs > span:last-child:not(.mm-separator) { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
