/* ==========================================================================
   FIBIS – base.css
   Loaded FIRST (before bootstrap and the template CSS), exactly where the old
   CMS base stylesheet used to be. It only contains the rules of that old
   stylesheet that really applied to these pages, so that the cascade – and
   therefore the look – stays identical. The template CSS overrides it.
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

img {
    max-width: 100%;
}

.text-center {
    text-align: center;
}

.col > div,
[class*="col-"] > div {
    max-width: 100%;
}

.mw-text-start {
    text-align: left !important;
}

/* Editable zones of the old CMS (.edit) and their elements */
.edit,
.mw-col {
    position: relative;
    vertical-align: top;
}

.edit {
    min-height: 20px;
}

.element,
.edit .module {
    clear: both;
}

.element {
    transform-origin: 50% 50%;
}

/* Language switcher dropdown (closed by default, .active = open) */
.mw-dropdown {
    position: relative;
    z-index: 9;
    display: inline-block;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.mw-dropdown ul {
    padding: 0;
    white-space: nowrap;
}

.mw-dropdown-content {
    position: absolute;
    display: none;
    left: 0;
    top: 100%;
    min-width: 100%;
    padding-top: 0;
    max-height: calc(100vh - 20px);
    overflow-x: hidden;
    overflow-y: auto;
    background-color: white;
    border-radius: 0 0 5px 5px;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.mw-dropdown-default .mw-dropdown-content {
    margin-top: -1px;
}

.mw-dropdown-default .mw-dropdown-content li {
    cursor: pointer;
    display: block;
    position: relative;
    text-decoration: none;
    box-sizing: border-box;
    min-height: 36px;
    padding: 9px 12px;
    border-top: 1px solid rgba(218, 218, 218, 0.35);
}

.mw-dropdown-default .mw-dropdown-content li:first-child {
    border-top: none;
}
