/* Montani: Home hero fits below the mobile header, including the admin bar. */
@media only screen and (max-width: 767px) {
    #top.home .avia-fullscreen-slider .avia-slideshow {
        height: calc(100vh - var(--montani-home-slider-top, 80px)) !important;
        height: calc(100dvh - var(--montani-home-slider-top, 80px)) !important;
        min-height: 0;
    }

    #top.home .slider-caption-unten {
        --slider-caption-abstand-unten: calc(100px + env(safe-area-inset-bottom, 0px));
    }

    #top.home .werbezeit-fullscreen-slider-logo {
        bottom: 100px;
        padding: 16px;
    }

    #top.home .werbezeit-fullscreen-slider-logo-image {
        width: min(52vw, 210px);
        max-width: 100%;
        max-height: min(26vh, 170px);
        max-height: min(26dvh, 170px);
        transform: none;
    }

    #top.home .avia-fullscreen-slider .avia-slideshow-arrows a {
        top: calc(50% - 50px);
    }

    #top.home #wrap_all .slider-caption-unten .avia-caption-title {
        font-size: clamp(22px, 6vw, 26px) !important;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    }
}

/* Leave distinct rows for logo and caption on short landscape screens. */
@media only screen and (max-width: 767px) and (max-height: 500px) {
    #top.home .werbezeit-fullscreen-slider-logo {
        bottom: 150px;
    }

    #top.home .werbezeit-fullscreen-slider-logo-image {
        max-height: 22dvh;
    }
}
