.biography-container {
    display: grid;
    grid-template-columns: .75fr 2fr;
    width: 90%;
    aspect-ratio: 900 / 550;
    margin: 2vw auto;
    overflow: hidden;
}


.biography-specials.info-container {
    position: fixed;
    bottom: -2.25rem;
    width: fit-content;
    max-width: unset;
    display: flex;
    left: 50%;
    transform: translateX(-50%) translateY(200%);
    padding: .5rem 1.125rem 4rem 1.125rem;
    height: 10vh;
    justify-content: center;
    align-items: center;
    gap: .75rem;
    font-family: inherit;
    font-weight: 300;

    animation: slide-in-center 1s 250ms ease forwards;
}

.biography-specials > button {
    display: grid;
    height: fit-content;
    place-content: center;
    font-size: 1.4rem;
    padding-block: 1rem;
    text-align: center;
    width: 10rem;
    max-width: 25rem;
    font-family: inherit;

    transform: translateY(200%);
    transition: 250ms ease all;
    animation: slide-in 1s 500ms ease forwards;
}

.biography-specials > button:nth-child(1) {animation: slide-in 1s 500ms ease forwards}
.biography-specials > button:nth-child(2) {animation: slide-in 1s 700ms ease forwards}
.biography-specials > button:nth-child(3) {animation: slide-in 1s 900ms ease forwards}
.biography-specials > button:nth-child(4) {animation: slide-in 1s 1100ms ease forwards}

p {
    font-weight: 100;
    font-size: 1.125rem;
    padding-left: 4.5rem;
    min-height: 7.5rem;
    line-height: 135%;
    overflow-y: auto;
    width: 90%;
}

.biography-specials > button:hover, .biography-specials > button:focus {
    transform: translateY(-10%);
    filter: drop-shadow(0 .25rem .25rem var(--blue));
}

.image {
    width: 100%;
    height: 100%;
    background: url(../assets/image.png);
    background-size: contain;
    background-position: 0 60%;
    background-repeat: no-repeat;
    transform: scale(2);
    mask-image: linear-gradient(90deg, black 60%, transparent 90%);
    -webkit-mask-image: linear-gradient(90deg, black 60%, transparent 90%);
}

.info-container:has(.image.reversed) {
    grid-template-columns: 2fr .75fr;
}

.image.reversed {
    background: url(../assets/image-2.jpg);
    background-size: contain;
    background-position: 1.34rem 50%;
    background-repeat: no-repeat;
    transform: scale(1.6);
    mask-image: linear-gradient(-90deg, black 50%, transparent 90%);
    -webkit-mask-image: linear-gradient(-90deg, black 50%, transparent 90%);
}

p > a {
    color: white;
}

form {
    display: grid;
    width: 90%;
    height: 100%;
    gap: .25rem;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
}

form > input {
    display: grid;
    height: 3.5rem;
    text-align: left;
}

form > * {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 1.125rem;
    font-family: inherit;
    padding: 1.125rem;
    border-radius: .45rem;
    border: 1px solid var(--transparent-light);

    transition: 250ms ease all;
}

form > *:hover {
    background: rgba(255, 255, 255, 0.25);
}

form > *:focus {
    outline: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: var(--white);
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 2.5rem 2.5rem rgba(255, 255, 255, 0.25);
}

.form-result {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0 10vw;
    text-align: center;
    gap: 2.5vh;
    color: var(--white);
    transition: opacity 250ms ease;
}

.form-result > span {
    font-size: 4rem;
}

.form-result > * {
    color: inherit;
    font-weight: 200;
}

.form-input-message {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
}

.form-input-submit {
    cursor: pointer;
    width: 7.5em;
    height: fit-content;
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    align-self: flex-end;
    justify-self: right;
    justify-content: center;
    text-align: center;
    margin: .5rem;
}

@media (max-width: 1000px) {
    .biography-container.info-container {
        display: flex;
        gap: 0;
        flex-direction: column;
        justify-content: flex-start;
        height: 75%;
    }

    .image, .image.reversed {
        position: relative;
        width: 50vw;
        border-radius: .75rem;
        height: auto;
        aspect-ratio: 886 / 1384;
        background-size: cover;
        background-position: 0 0;
        transform: unset;

        mask-image: linear-gradient(black 60%, transparent);
        -webkit-mask-image: linear-gradient(black 60%, transparent);
    }

    .image.reversed {
        order: -1;
        width: 40%;
        aspect-ratio: 1 / 4;
        background-size: cover;
        background-position: center center;
    }

    p {
        padding-left: 0; 
        margin-top: auto;
        font-size: 1rem;
    }

}

@media (max-width: 700px) {
    .contact-container.info-container {
        justify-content: center;
        align-items: center;
    }
    .contact-container > form {
        width: 90%;
        overflow: hidden;
        grid-template-columns: 1fr 1fr;
        max-height: 40vh;
    }

    form > input {
        padding-inline: 10%;
        padding-block: 7.5%;
        font-size: 1rem;
        min-width: 100%;
        max-width: 100%;
        height: fit-content;
        box-sizing: border-box;
    }

    textarea.form-input-message {font-size: 1rem;}

    .form-input-submit {
        width: fit-content;
    }

    .image.reversed {
        aspect-ratio: 1.5 / 3;
    }
}

@media (max-width: 780px) {
    .biography-specials.info-container {
        width: 100%;
        height: 5vh;
        bottom: -5vh;
        gap: 1vw;
    }

    .biography-specials.info-container > button {
        font-size: 3vw;
        border-radius: 2vw;
        padding: 2vw 5vw;
    }
}

@media (max-width: 500px) {
    .biography-specials.info-container {
        display: grid;
        width: auto;
        bottom: -.5vh;
        grid-template-columns: 1fr 1fr;
        gap: 7.5% 2.5%;
        padding-bottom: 2vh;
        height: fit-content;
    }
    .biography-specials.info-container > button {
        font-size: 1rem;
    }
    p {
        max-height: 50%;
    }
}

@keyframes slide-in {
    0% {
        transform: translateY(200%);
    }

    100% {
        transform: translateY(0%);
    }
}

@keyframes slide-in-center {
    0% {
        transform: translateX(-50%) translateY(200%);
    }

    100% {
        transform: translateX(-50%) translateY(0%);
    }
}

