.team {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 70vh;
    /*margin: 0 0 10rem;*/
}

.team .info {
    position: relative;
    /*top: 15vh;*/
}

.team .info h3 {
    font-size: 32px;
    margin-bottom: 2rem;
    letter-spacing: 0px;
}

.team .info p {
    font-size: 20px;
    color: #000;
    margin: 20px 0;
    line-height: 2rem;
}

.team .info a.readmore {
    display: inline-block;
    color: var(--main-color);
    margin-bottom: 20px;
}

.team .info .teamViewer {
    display: grid;
    grid-template-columns: .6fr 1fr;
    align-items: center;
    gap:3rem;
}

.team .info .teamViewer .textContainer {
    position: relative;
    opacity: 1;
    top: 0%;
    transition: 0.3s all ease-in-out;
}

.team .info .teamViewer .textContainer.hide {
    top: -20%;
    opacity: 0;
}

.team .info .teamViewer .textContainer .name {
    font-weight: 300;
    letter-spacing: 0px;
    margin: 0;
}

.team .info .teamViewer .textContainer .position {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0px;
    font-weight: 300;
    margin: 0;
}

.team .info .teamViewer .textContainer .details {
    font-size: 1.1rem;
    text-align: justify;
    text-align-last: right;
}

.team .info .viewport {
    width: 422px;
    height: 516px;
    overflow: hidden;
}

.team .info .viewport .slider {
    display: inline-flex;
    position: relative;
    left: 0;
    transition: 0.3s left ease-in-out;
}

.team .info .viewport .slider .slide {
    width: 422px;
    height: 422px;
    padding: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.team .info .viewport .slider .slide img {
    object-fit: cover;
    width: 80%;
    height: 80%;
}

.team .info .controls {
    display: flex;
    justify-content: flex-end;
    margin: 3rem 10px;
}

.team .info .controls button {
    cursor: pointer;
    will-change: padding;
    font-size: 1.3rem;
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    transition: 0.2s padding ease-in;
}

.team .info .controls button:hover {
    padding: 10px 30px;
}

.team .info .controls button:nth-child(2) {
    border-left: none;
    border-right: none;
}

.team button.control i:first-child {
    display: none;
}

.team button.control.play i:last-child {
    display: inline-block;
}

.team button.control.play i:first-child {
    display: inline-block;
}

.team button.control.play i:last-child {
    display: none;
}

@media only screen and (max-width: 769px) {

    .team .info .viewport {
        width: 250px;
        height: 250px;
    }

    .team .info .viewport .slider .slide {
        width: 250px;
        height: 250px;
        overflow: hidden;
        align-items: flex-start;
    }

    .team {
        align-items: center;
        justify-content: center;
    }

    .team .info {
        position: static;
    }
}


@media only screen and (max-width: 760px) {
    .team {
        flex-direction: column;
        margin-bottom: 2rem;
        margin-top: 40px;
    }

    .team .img img {
        display: none;
    }

    .team .img a {
        margin: 0;
    }

    .team .info p {
        margin: 0 20px 20px;
        text-align: center;
    }
    .custom_details p {
        font-size: 1.1rem!important;
        text-align: justify!important;
        text-align-last: right!important;
    }

    .team .info {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .team .info .controls {
        display: flex;
        justify-content: flex-end;
        margin: 1rem 0;
    }

    .team .info .teamViewer {
        justify-content: center;
        align-items: center;
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .team .info .teamViewer .viewport {
        justify-self: center;
    }
}
