.bebb-home-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.bebb-home {
    width: min(calc(100% - 2.5rem), 61.25rem);
    margin: 0 auto;
    padding: 3rem 0 4rem;
}

.bebb-home__introduction h1 {
    margin: 0 0 1.5rem;
    font-family: var(--bebb-font-heading);
    font-size: 2rem;
    line-height: 1.2;
}

.bebb-home__teaser {
    margin: 0;
    font-family: var(--bebb-font-ui);
    font-size: 1rem;
    font-weight: 300;
    line-height: 27px;
    text-align: justify;
}

.bebb-home__teaser a {
    display: inline;
    color: #ba3b1a;
}

.bebb-home__exchange-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 2rem;
}

.bebb-home__exchange-index {
    display: block;
    min-height: 30rem;
    flex: 1 1 21.875rem;
    padding: 1.5rem 1rem;
    background: #ba3b1a;
}

.bebb-home__exchange-index p {
    display: block;
    width: 100%;
    margin: 0 0 1.5em;
}

.bebb-home__exchange-index a,
.bebb-home__exchange-index a:visited {
    color: #ffffff;
    font-size: 14pt;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.bebb-home__exchange-index a:hover,
.bebb-home__exchange-index a:focus-visible {
    text-decoration: underline;
}

.bebb-home__featured-portrait {
    min-width: 0;
    flex: 0 1 25rem;
    align-self: flex-start;
    margin: 0;
}

.bebb-home__featured-portrait a {
    display: block;
    height: 31.25rem;
    overflow: hidden;
}

.bebb-home__featured-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.bebb-home__featured-portrait figcaption,
.bebb-home__portrait-gallery figcaption {
    font-family: var(--bebb-font-ui-bold);
    font-size: 0.875rem;
    text-align: center;
}

.bebb-home__portrait-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    margin-bottom: 4rem;
}

.bebb-home__portrait-gallery figure {
    width: 7.5rem;
    margin: 0;
}

.bebb-home__portrait-gallery a,
.bebb-home__portrait-gallery img {
    display: block;
    width: 100%;
}

.bebb-home__portrait-gallery img {
    aspect-ratio: 1;
    object-fit: cover;
}

@media (max-width: 42rem) {
    .bebb-home {
        width: min(calc(100% - 2rem), 61.25rem);
        padding: 2rem 0 3rem;
    }

    .bebb-home__introduction h1 {
        font-size: 1.75rem;
    }

    .bebb-home__teaser {
        text-align: left;
    }

    .bebb-home__exchange-index {
        min-height: 0;
        padding: 1.25rem 1rem;
    }

    .bebb-home__featured-portrait {
        flex-basis: 100%;
    }

    .bebb-home__featured-portrait a {
        width: min(100%, 25rem);
        height: auto;
        aspect-ratio: 4 / 5;
        margin: 0 auto;
    }

    .bebb-home__portrait-gallery {
        justify-content: center;
    }
}
