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

/* Phones: the greeting starts at the usual distance below the top, like every other page (not centred in the
   screen, which would put it at an arbitrary height off the grid) */
@media screen and (max-width: 760px) {
    .greeting {
        box-sizing: border-box;  /* the padding counts towards the height */
        padding-top: 0;
    }
}

/* Greeting and animation on a panel, like the projects on the portfolio page */
.greeting_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin-top: var(--page-top);
    padding: var(--panel-inset);
    box-sizing: border-box;
    border: 2px solid var(--color-line);
    border-radius: 12px;
    background-color: var(--color-card);
    box-shadow: var(--shadow-hard);
}

/* "Moin": the page title, from the type scale in general.css */
.greeting_card h1 {
    margin-bottom: var(--space-title);
}

@media screen and (max-width: 760px) {
    .greeting_card {
        margin-top: var(--page-top);
    }
}

/* 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) - 200px);
    max-height: calc(100svh - var(--nav-height) - 200px);
    width: auto;
    height: auto;
}
