#header {
    background-image: url("/images/headers/biography.jpg");
}

#biography-header {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 1024px;
    margin: 0 auto;
    padding: 48px 24px;
}

#biography-header #widget-biography {
    width: 100%;
}

#biography-items-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

#biography-items-wrapper::before {
    content: '';

    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;

    display: block;

    width: 1000vw;
    height: 372px;

    background-color: #f8fafb;
}

#biography-items {
    display: flex;
    width: 100vw;
}

.biography-item-wrapper {
    width: 100vw;
}

.biography-item-divider {

}

.biography-item-row-photos {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 1024px;
    margin: 0 auto;
    padding: 48px 24px;
}

.biography-item {
    display: flex;
    align-items: start;

    width: 1024px;
    margin: 0 auto;
    padding: 48px 24px;
}

.biography-item-photo-wrapper {
    display: flex;
    align-items: center;
    margin-right: 24px;
    white-space: nowrap;
}

.biography-item-photo {
    display: inline-block;

    max-width: 256px;
    max-height: 256px;
    margin: 0;

    border-radius: 6px;
    box-shadow: rgb(3 82 112) -16px 16px;
}

.biography-item-photo-wrapper div {
    padding: 12px 24px;

    color: white;

    background-color: rgb(3 82 112);
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.biography-item-content {
    padding: 24px;

    text-align: justify;

    background-color: white;
    border-radius: 12px;
    box-shadow: rgb(0 0 0 / 35%) 0 5px 15px;
}

@media only screen and (width <= 1024px) {
    #biography {
        width: 100%;
    }

    #biography-header {
        width: 100%;
    }

    .biography-item {
        flex-direction: column;
        width: 100vw;
    }

    .biography-item-photo {
        width: 128px;
        height: 128px;
    }

    .biography-item-photo-wrapper {
        margin-bottom: 32px;
    }

    #widget-biography-items {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .biography-item-row-photos {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}
