/* Home page main content layout */
main{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
}

/* Layout object: two-column */
.layout-two-column{
    display: flex;
    flex-direction: row;
    max-width: 80vw;
    height: 50vh;
    gap: 1.25rem;
}

.layout-two-column__item{
    border-radius: 0.625rem;
    display: block;
    width: 50%;
    height: 100%;
}

/* Media object */
.media-cover{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.25rem;
}

/* Card object */
.card{
    border-radius: 1.25rem;
    background-color: var(--card-color);
    padding: 0.625rem;
}

.card--scroll{
    overflow-y: scroll;
}

.card--wide{
    width: 80vw;
    padding: 0.625rem;
    align-items: center;
}

.card__title{
    margin: 0;
    text-align: center;
}

.card__body{
    margin: 0;
    text-align: center;
}

.card__body--emphasis{
    font-size: 1.3em;
}

.card__body--long{
    text-align: justify;
    text-justify: inter-word;
    font-size: 1.2em;
}

/* Stack columns on small screens */
@media (max-width: 650px) {
    .layout-two-column{
        flex-direction: column;
        width: 80vw;
        height: fit-content;
    }

    .layout-two-column__item{
        width: 100%;
        height: auto;
    }

    .card--scroll{
        height: fit-content;
        overflow-y: visible;
    }
}