header {
    width: 100%;
    font-weight: 500;
    justify-content: start !important;
    flex-direction: column;
    gap: 70px;
    height: 20vh;
    background-image: url(/img/team/bg.jpg);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
}

header > .brand {
    position: relative;
    left: 0;
}

header .brand h1 {
    color: #fff;
    font-size: 28px;
}

header > .fc {
    gap: 30px;
}

.nav {
    height: 58px;
    box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.25);
}

.center {
    width: 80%;
    max-width: 1300px;
    margin: 40px auto;
    flex-direction: column;
}

.center > img {
    width: 100%;
    object-fit: cover;
}

.center > div {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 40px;
}

.center > div img {
    height: 275px;
    width: 225px;
    object-fit: cover;
    overflow-clip-margin: unset;
    box-shadow: 0 4px 18px -6px rgba(0, 0, 0, .6);
    transition: transform 200ms;
}

.center > div > div > div:hover > img {
    transform: scale(.98)
}

.center > div h2 {
    font-size: 26px;
    margin-bottom: 20px;
    position: relative;
}

/*.center > div h2::after {
    content: '';
    position: absolute;
    width: 100%;
    bottom: -4px;
    left: 0;
    height: 2px;
    background: #323232;
}*/

.center > div > div {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

/*.center > div > div::before {
    content: '';
    position: absolute;
    width: 100%;
    top: -20px;
    left: 0;
    height: 2px;
    background: #323232;
}

.center > div > div {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    width: fit-content;
    position: relative;
}*/

.center > div > div > div {
    flex-direction: column;
    gap: 10px;
    font-size: 17px;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 99;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-content > div {
    width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    background: #eee;
    padding: 40px 50px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-content .row {
    gap: 20px;
}

.modal-content .row > div  {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 40%;
}

.modal-content .row a {
    background: #bbbfac;
    border: 0;
    margin: 10px;
    padding: 10px 20px;
    width: 200px;
    height: 50px;
    border-radius: 4px;
    font-family: "Rubik", sans-serif;
    box-shadow: 0px 3px 12px -8px;
    transition: filter 200ms;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.modal-content .row a:hover {
    filter: brightness(90%)
}

.modal-content .row > div h1 {
    margin: 10px 0 4px 0;
    text-align: center;
}

.modal-content .row > div p {
    font-size: 15px;
    margin-bottom: 20px;
}

.modal-content .row > div img {
    height: 336px;
    width: 275px;
    object-fit: cover;
    overflow-clip-margin: unset;
    border-radius: 4px;
}

.modal-content > div > p {
    font-size: 18px;
    text-align: justify;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    height: 28px;
    width: 28px;
    cursor: pointer;
    background-color: transparent;
}

.close-btn > img {
    height: 100%;
    width: 100%;
}

@media only screen and (max-width: 1200px) {
    .center {
        width: 90%;
    }

    .center > div img {
        height: 250px;
        width: 200px;
    }
}

@media only screen and (max-width: 1000px) {
    .center {
        margin: 0 auto;
        width: 100%;
    }

    .center > div {
        width: 90%;
    }

    .modal-content > div {
        width: 100%;
    }

    .modal-content .row {
        flex-direction: column;
        width: fit-content;
        max-width: 500px;
        margin: auto;
    }

    .modal-content .row > div {
        width: 100%;
    }

    .modal-content .row a {
        width: 100%;
    }
}

@media only screen and (max-width: 800px) {
    header {
        height: 14vh;
    }

    /*.center > div {
        align-items: center;
    }*/

    .center > div > div {
        justify-content: space-evenly;
    }

    .center > div h2 {
        text-align: center;
    }

    .modal-content .row > div img {
        height: 275px;
        width: 225px;
    }
}

@media only screen and (max-width: 450px) {
    .modal-content {
        max-width: 100%;
    }
}