/* Approved sign spacing and content fitting. */

#BoBHome .sign-text-inner p.bob-dog-warning {
    display: block;
    position: static;
    width: 100%;
    margin: 0;
}
#BoBHome .bob-dog-portrait {
    display: block;
    width: auto;
    height: auto;
    max-width: 60%;
    margin: 8px auto 0;
    object-fit: contain;
}

/* Keep longer purchase headings inside their wooden bar. */
#BoBHome.de .bob-purchase-heading {
    font-size: min(0.72em, 4vw);
    white-space: nowrap;
}
#BoBHome.fr .bob-purchase-heading,
#BoBHome.it .bob-purchase-heading,
#BoBHome.pl .bob-purchase-heading {
    font-size: min(1em, 5.5vw);
    white-space: nowrap;
}

/* Keep the remaining locales inside the artwork near the square-window breakpoint. */
@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 6/5) {
    #BoBHome:is(.en, .de, .fr, .it, .pl) .sign-frame-horizontal {
        --square-sign-width: min(85vh, 70vw, 840px);
        height: calc(var(--square-sign-width) * 0.30);
        min-height: 0;
        max-height: none;
    }
    #BoBHome:is(.en, .de, .fr, .it, .pl) .sign-frame-horizontal .sign {
        width: var(--square-sign-width);
        min-width: 0;
        max-width: none;
        height: auto;
        aspect-ratio: 800 / 335;
    }
    #BoBHome:is(.en, .de, .fr, .it, .pl) .sign-frame-horizontal .sign-up.top {
        transform: rotateZ(-5deg) translateX(-65%) translateY(-45%);
    }
    #BoBHome:is(.en, .de, .fr, .it, .pl) .sign-frame-horizontal .sign-up.bottom {
        transform: rotateZ(2deg) translateX(-35%) translateY(6%);
    }
    #BoBHome:is(.en, .de, .fr, .it, .pl) .sign-frame-horizontal .sign-text-outer {
        position: absolute;
        left: 5%;
        width: 90%;
        height: 40%;
    }
    #BoBHome:is(.en, .de, .fr, .it, .pl) .sign-frame-horizontal .sign-text-outer.top { top: 54%; }
    #BoBHome:is(.en, .de, .fr, .it, .pl) .sign-frame-horizontal .sign-text-outer.bottom { top: 6%; }
}
