.quote_section {
    display: flex;
    margin-top: 10px;
    border: 5px solid var(--color-border);
}

.quote_box {
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px clamp(16px, 3vw, 40px) 20px clamp(16px, 5vw, 80px);
    box-sizing: border-box;
}

.quote_text {
    font-weight: bold;
    font-size: clamp(28px, 3vw, 40px);
    text-align: justify;
    margin-bottom: 5px;
}

.quote_subtext {
    font-size: clamp(24px, 2.4vw, 32px);
    color: var(--color-secondary);
    margin-top: 0;
}

.image_box {
    width: 35%;
    display: flex;
    justify-content: flex-end;
}

.image {
    height: 560px;
    width: auto;
}

/* Narrow screens: quote above the picture */
@media screen and (max-width: 760px) {
    .quote_section {
        flex-direction: column;
    }

    .quote_box,
    .image_box {
        width: 100%;
    }

    .quote_text {
        text-align: left;
    }

    .image_box {
        justify-content: center;
    }

    .image {
        height: auto;
        max-height: 70vh;
    }
}

.greeting {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 var(--gutter) var(--gutter);
}

/* Phones: the bar is at the bottom, so the greeting is centred in the space above it */
@media screen and (max-width: 760px) {
    .greeting {
        justify-content: center;
        box-sizing: border-box;  /* the padding counts towards the height: exactly the screen above the bar, nothing to scroll */
        min-height: 100%;
        padding-top: 8px;
    }
}

/* The animation is 383px wide: on small phones it shrinks with the screen, on short
   landscape screens it shrinks with the height */
.greeting img {
    max-width: 100%;
    max-height: calc(100vh - var(--nav-height) - 120px);
    max-height: calc(100svh - var(--nav-height) - 120px);
    width: auto;
    height: auto;
}
