/* Native BeTheme galleries only. Full-size proportions, no implicit cropping. */
:is(#Content, #Footer, #Side_slide, .widget) .gwm-native-gallery {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
:is(#Content, #Footer, #Side_slide, .widget) .gwm-native-gallery > .gallery {
    width: 100%;
    margin: 0;
}
:is(#Content, #Footer, #Side_slide, .widget) .gwm-native-gallery > .gallery:not(.masonry) {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--gwm-gap, 0px);
}
:is(#Content, #Footer, #Side_slide, .widget) .gwm-native-gallery > .gallery > .gallery-item {
    float: none;
    clear: none;
    box-sizing: border-box;
    flex: 0 0 calc((100% - (var(--gwm-columns, 1) - 1) * var(--gwm-gap, 0px)) / var(--gwm-columns, 1));
    width: calc((100% - (var(--gwm-columns, 1) - 1) * var(--gwm-gap, 0px)) / var(--gwm-columns, 1));
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}
:is(#Content, #Footer, #Side_slide, .widget) .gwm-native-gallery .gallery .gallery-icon,
:is(#Content, #Footer, #Side_slide, .widget) .gwm-native-gallery .gallery .image_frame,
:is(#Content, #Footer, #Side_slide, .widget) .gwm-native-gallery .gallery .image_wrapper {
    margin: 0;
    border: 0;
    width: 100%;
}
:is(#Content, #Footer, #Side_slide, .widget) .gwm-native-gallery .gallery img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    object-fit: contain;
    border: 0;
}
:is(#Content, #Footer, #Side_slide, .widget) .gwm-native-gallery.gwm-hide-captions .gallery-caption,
:is(#Content, #Footer, #Side_slide, .widget) .gwm-native-gallery > .gallery > br {
    display: none;
}
:is(#Content, #Footer, #Side_slide, .widget) .gwm-native-gallery > .gallery.masonry {
    display: block;
    margin-left: calc(var(--gwm-gap, 0px) / -2);
    margin-right: calc(var(--gwm-gap, 0px) / -2);
    width: calc(100% + var(--gwm-gap, 0px));
}
:is(#Content, #Footer, #Side_slide, .widget) .gwm-native-gallery > .gallery.masonry > .gallery-item {
    width: calc(100% / var(--gwm-columns, 1));
    padding-left: calc(var(--gwm-gap, 0px) / 2);
    padding-right: calc(var(--gwm-gap, 0px) / 2);
    margin-bottom: var(--gwm-gap, 0px);
}
@media only screen and (max-width: 767px) {
    :is(#Content, #Footer, #Side_slide, .widget) .gwm-native-gallery { --gwm-columns: 1 !important; }
}

/* Retain the working BeTheme layout corrections after the old MU repair is removed. */
#Content .mfn-default-content-buider > .section > .section_wrapper {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
#Content .mfn-default-content-buider .mcb-wrap.one { width: 100%; flex-basis: 100%; }
#Content .mfn-default-content-buider .mcb-wrap-inner { width: 100%; min-width: 0; }
#Content .mfn-default-content-buider .mcb-column { margin-left: 0; margin-right: 0; min-width: 0; }
#Content .mfn-default-content-buider .mcb-column-inner { min-width: 0; }
#Top_bar #menu .lang-item img { width: 16px !important; max-width: 16px !important; height: auto !important; }
@media only screen and (max-width: 767px) {
    #Content .mfn-default-content-buider > .section > .section_wrapper { box-sizing: border-box; }
}
.gwm-preview-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 12px 20px;
    background: #fff4dc;
    color: #30230c;
    border-top: 2px solid #ef7f2d;
    font: 14px/1.5 sans-serif;
    text-align: center;
}
.gwm-preview-banner a { color: #623700; text-decoration: underline; }
