.mlf-block {
    display: block;
    width: 100%;
}

.mlf-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: var(--mlf-justify, flex-start);
    gap: var(--mlf-gap, 30px);
    max-width: 100%;
}

.mlf-block.mlf-theme-logo-replacement {
    line-height: 0;
}

.mlf-block.mlf-theme-logo-replacement .custom-logo-link,
.mlf-block.mlf-theme-logo-replacement .site-logo-img,
.mlf-block.mlf-theme-logo-replacement img.custom-logo {
    display: none !important;
}

.mlf-align-left {
    text-align: left;
}

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

.mlf-align-right {
    text-align: right;
}

.mlf-home-link {
    display: inline-block;
    line-height: 0;
    flex: 0 0 auto;
}

.mlf-logo-scene {
    width: var(--mlf-logo-width, 200px);
    height: var(--mlf-logo-height, 200px);
    perspective: 1200px;
    flex: 0 0 auto;
}

.mlf-logo-rotator {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

.mlf-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mlf-front {
    transform: rotateY(0deg);
}

.mlf-back {
    transform: rotateY(180deg);
}

.mlf-face img,
.mlf-side-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
}

.mlf-side-image {
    width: var(--mlf-side-width, 200px);
    height: var(--mlf-side-height, 200px);
    flex: 0 0 auto;
}

.mlf-error {
    padding: 10px 12px;
    border-left: 4px solid #c62828;
    background: #fff5f5;
}

@media (max-width: 767px) {
    .mlf-wrapper {
        flex-wrap: wrap;
    }
}


.mlf-theme-logo-replacement,
.mlf-theme-logo-replacement-rendered {
    max-width: 100%;
}

.mlf-theme-logo-replacement .mlf-wrapper,
.mlf-theme-logo-replacement-rendered .mlf-wrapper {
    max-width: 100%;
    align-items: center;
}

.mlf-theme-logo-replacement .mlf-logo-scene,
.mlf-theme-logo-replacement-rendered .mlf-logo-scene,
.mlf-theme-logo-replacement .mlf-side-image,
.mlf-theme-logo-replacement-rendered .mlf-side-image {
    max-width: 100%;
    max-height: 100%;
}

.mlf-theme-logo-replacement img,
.mlf-theme-logo-replacement-rendered img {
    max-width: 100%;
    height: auto;
}


.mlf-branding-host {
    display: flex !important;
    align-items: center !important;
    gap: 14px;
}

.mlf-branding-host .mlf-theme-logo-replacement-rendered,
.mlf-branding-host .mlf-theme-logo-replacement {
    flex: 0 0 auto;
}

.mlf-branding-host .mlf-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mlf-branding-host .site-title,
.mlf-branding-host .site-description {
    margin: 0;
}

.mlf-theme-logo-replacement .mlf-logo-scene,
.mlf-theme-logo-replacement-rendered .mlf-logo-scene {
    width: var(--mlf-logo-width, 200px);
    height: var(--mlf-logo-height, 200px);
}

.mlf-theme-logo-replacement .mlf-side-image,
.mlf-theme-logo-replacement-rendered .mlf-side-image {
    width: var(--mlf-side-width, 200px);
    height: var(--mlf-side-height, 200px);
}


.mlf-theme-logo-replacement .mlf-logo-scene,
.mlf-theme-logo-replacement-rendered .mlf-logo-scene {
    width: var(--mlf-logo-width, 200px) !important;
    height: var(--mlf-logo-height, 200px) !important;
    max-width: none !important;
    max-height: none !important;
}

.mlf-theme-logo-replacement .mlf-side-image,
.mlf-theme-logo-replacement-rendered .mlf-side-image {
    width: var(--mlf-side-width, 200px) !important;
    height: var(--mlf-side-height, 200px) !important;
    max-width: none !important;
    max-height: none !important;
}

.mlf-theme-logo-replacement .mlf-face img,
.mlf-theme-logo-replacement-rendered .mlf-face img,
.mlf-theme-logo-replacement .mlf-side-image img,
.mlf-theme-logo-replacement-rendered .mlf-side-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
}

.mlf-branding-host,
.mlf-branding-host .custom-logo-site-title,
.mlf-branding-host .site-branding-inner {
    display: flex !important;
    align-items: center !important;
}

.mlf-branding-host > * {
    align-self: center !important;
}

.mlf-branding-host .mlf-theme-logo-replacement-rendered,
.mlf-branding-host .mlf-theme-logo-replacement,
.mlf-branding-host .mlf-wrapper,
.mlf-branding-host .mlf-home-link,
.mlf-branding-host .mlf-logo-scene,
.mlf-branding-host .mlf-side-image,
.mlf-branding-host .mlf-text-group {
    align-self: center !important;
}

.mlf-branding-host .mlf-text-group {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px;
    min-height: 100%;
}

.mlf-branding-host .site-title,
.mlf-branding-host .site-description,
.mlf-branding-host .site-title a {
    margin: 0 !important;
    line-height: 1.1 !important;
}
