/*
    ------------------------------------------------
    |                   Bio Grid                   |
    ------------------------------------------------
*/

.bio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(50%, 350px), 1fr));
    justify-content: center;

    margin: 0 auto;

    grid-gap: clamp(4px, 1vw, 32px);
}

/*
    ------------------------------------------------
    |                     Bio                      |
    ------------------------------------------------
*/

.bio {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;
}

.bio img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
    border-radius: clamp(4px, 1vw, 24px);

    aspect-ratio: 1/1;
    transition: 250ms ease;
}

/*
    --------------------------------
    |           Carousel           |
    --------------------------------
*/

.carousel {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: relative;

    width: 100%;
}

.carousel-scroll {
    z-index: 1;
    border: 0.125rem solid black;
    background-color: white;
    opacity: 1;
    border-radius: 50%;

    position: absolute;
    top: 50%;

    width: 2.5rem;
    height: 2.5rem;

    display: block;
    align-content: center;

    transition: 250ms ease;
}

.carousel-scroll svg {
    display: block;
    margin: 0;
    padding: 0;

    height: 100%;
    width: 100%;

    fill: black;

    transition: 250ms ease;
}

.right {
    right: 0;
    transform: translate(-0.375rem, -50%);
}

.left {
    left: 0;
    transform: translate(0.375rem, -50%);
}

.carousel-scroll:hover,
.carousel-scroll:focus-within {
    background-color: var(--accent-color);

    outline: none;
}

.carousel-fullscreen {
    aspect-ratio: 1 / 1;

    border: none;
    outline: none;
    background-color: transparent;
    border-radius: clamp(4px, 1vw, 24px);
    cursor: pointer;

    margin: 0.25rem;

    transition: box-shadow 250ms ease;
}

.carousel-fullscreen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.carousel-fullscreen:hover img,
.carousel-fullscreen:focus-within img {
    filter: brightness(0.5);
}

.carousel-fullscreen:hover,
.carousel-fullscreen:focus-within {
    box-shadow: 0 0 0 0.25rem var(--accent-color);
}

/*
    --------------------------------
    |             Text             |
    --------------------------------
*/

.bio h1,
.bio p {
    margin: 0;
    padding: 0;

    text-align: center;
}
