.ourteam {
    background: radial-gradient(198.13% 90.64% at 12.47% 29.59%, rgb(195, 218, 249) 0%, rgb(232, 234, 255) 100%);
}

.ourteam__title {
    text-align: center;
}

.ourteam__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.ourteam__image {
    display: flex;
    justify-content: center;
}

.ourteam__image img{
    max-height: 211px;
    object-fit: cover;
    border-radius: 20px;
}

.ourteam__name {
    text-align: center;
    margin-bottom: 6px;
}

.ourteam__position {
    text-align: center;
}

.ourteam__text {
    text-align: center;
}

.ourteam__text p{
    margin: 0;
    line-height: 140%;
}

.ourteam__soc-row {
    display: flex;
    justify-content: center;
}
.ourteam__soc-item{
    display: block;
    height: fit-content;
    width: fit-content;
}
@media screen and (min-width: 991px){
    .ourteam__title {
        margin-bottom: 70px;
    }

    .ourteam__row {
        gap: 45px;
    }

    .ourteam__item {
        flex-basis: calc((100% - 90px) / 3);
    }

    .ourteam__image {
        margin-bottom: 20px;
    }

    .ourteam__name {
        text-align: center;
    }

    .ourteam__position {
        margin-bottom: 20px;
    }

    .ourteam__text {
        margin-bottom: 20px;
    }

    .ourteam__soc-row {
       gap: 20px;
        align-items: center;
    }

    .ourteam__soc-item img {
        width: 44px;
        height: 44px;
    }

    .ourteam__text p{
        font-size: 16px;
    }
}

@media screen and (max-width: 990.98px){
    .ourteam__title {
        margin-bottom: 40px;
    }

    .ourteam__row {
        gap: 40px;
        flex-direction: column;
    }

    .ourteam__image {
        margin-bottom: 15px;
    }

    .ourteam__position {
        margin-bottom: 15px;
    }

    .ourteam__text {
        margin-bottom: 15px;
    }

    .ourteam__soc-row {
        gap: 15px;
        align-items: center;
    }

    .ourteam__soc-item img {
        width: 38px;
        height: 38px;
    }

    .ourteam__text p{
        font-size: 14px;
    }

    .ourteam {
        margin-top: 30px;
    }
}

@media screen and (max-width: 600px){
    .ourteam {
        margin-top: 40px;
    }
}





/* Стилі для попапа */
.video-modal {
    opacity: 0;
    z-index: -1;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 90%;

    max-width: 400px;
    background-color: #fff;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
    padding: 25px;
    height: 600px;
    transition: all ease 0.5s;
    border-radius: 20px;
}

.video-modal.active {
    opacity: 1;
    z-index: 1000;
    transition: all ease 0.5s;
}

.video-modal__content {
    position: relative;
    height: 100%;
}

.video-modal__close {
    position: absolute;
    top: 2px;
    right: 2px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 32px;
    color: #333;
}

.video-modal__body {
    height: 100%;
}

/* Стилі для фону попапа */
.video-modal__overlay {
    opacity: 0;
    z-index: -1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Прозорість фону */
    transition: all ease 0.5s;
}

.video-modal.open + .video-modal__overlay {
    opacity: 1;
    z-index: 900;
    transition: all ease 0.5s;
}

#videoFrame {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

@media screen and (max-height: 670px) {
    .video-modal {
        height: calc(100% - 120px);
        transform: translate(-50%, -35%);
    }
}