@media screen and (max-width: 500px){
    .team_block_images { height: calc(100vw - 200px); max-height: 200px; }
    .team_block_images_img { width: 100px; height: 100px; top: calc(50% - (100px / 2)); }
    .team_user { justify-content: center; }

    .team_user_line { display: none; }
    .team_user_Data > H2 { color: var(--color-p003); }

    @keyframes team_image_kf_1 { from { transform: scale(1) rotate(0deg); z-index: 0; } to { transform: scale(2.7) rotate(0deg); z-index: 99; left: 30%; } }
    @keyframes team_image_kf_2 { from { transform: scale(1) rotate(10deg); z-index: 0; } to { transform: scale(2.7) rotate(0deg); z-index: 99; left: 30%; } }
    @keyframes team_image_kf_3 { from { transform: scale(1) rotate(20deg); z-index: 0; } to { transform: scale(2.7) rotate(0deg); z-index: 99;left: 30%;  } }
    @keyframes team_image_kf_4 { from { transform: scale(1) rotate(30deg); z-index: 0; } to { transform: scale(2.7) rotate(0deg); z-index: 99; left: 30%; } }
    @keyframes team_image_kf_5 { from { transform: scale(1) rotate(40deg); z-index: 0; } to { transform: scale(2.7) rotate(0deg); z-index: 99; left: 30%; } }

    .team_block_images_img_1_ever { border: 3px solid var(--color-p002); }
    .team_block_images_img_2_selected > div,
    .team_block_images_img_3_selected > div,
    .team_block_images_img_4_selected > div,
    .team_block_images_img_5_selected > div {
        border: 3px solid var(--color-p002);
    }
}

@media screen and (min-width: 500px) and (max-width: 800px){
    .team_block_images { height: calc(100vw - 200px); max-height: 300px; }
    .team_block_images_img { width: 150px; height: 150px; top: calc(50% - (150px / 2)); }
    .team_user { justify-content: center; }

    .team_user_line { display: none; }
    .team_user_Data > H2 { color: var(--color-p003); }

    @keyframes team_image_kf_1 { from { transform: scale(1) rotate(0deg); z-index: 0; } to { transform: scale(2) rotate(0deg); z-index: 99; left: 20%; } }
    @keyframes team_image_kf_2 { from { transform: scale(1) rotate(10deg); z-index: 0; } to { transform: scale(2) rotate(0deg); z-index: 99; left: 20%; } }
    @keyframes team_image_kf_3 { from { transform: scale(1) rotate(20deg); z-index: 0; } to { transform: scale(2) rotate(0deg); z-index: 99;left: 20%;  } }
    @keyframes team_image_kf_4 { from { transform: scale(1) rotate(30deg); z-index: 0; } to { transform: scale(2) rotate(0deg); z-index: 99; left: 20%; } }
    @keyframes team_image_kf_5 { from { transform: scale(1) rotate(40deg); z-index: 0; } to { transform: scale(2) rotate(0deg); z-index: 99; left: 20%; } }

    .team_block_images_img_1_ever { border: 7px solid var(--color-p002); }
    .team_block_images_img_2_selected > div,
    .team_block_images_img_3_selected > div,
    .team_block_images_img_4_selected > div,
    .team_block_images_img_5_selected > div {
        border: 7px solid var(--color-p002);
    }
}

@media screen and (min-width: 800px){
    .team_block_images { height: calc(100vw - 200px); max-height: 500px; }
    .team_block_images_img { width: 300px; height: 300px; top: calc(50% - (300px / 2));}
    .team_user { justify-content: left; }
    .team_user_data {width: calc(100% - 350px); }

    .team_user_line { display: unset; }
    .team_user_Data > H2 { color: var(--color-p003); }

    @keyframes team_image_kf_1 { from { transform: scale(1) rotate(0deg); z-index: 0; } to { transform: scale(2) rotate(0deg); z-index: 99; left: 20%; } }
    @keyframes team_image_kf_2 { from { transform: scale(1) rotate(10deg); z-index: 0; } to { transform: scale(2) rotate(0deg); z-index: 99; left: 20%; } }
    @keyframes team_image_kf_3 { from { transform: scale(1) rotate(20deg); z-index: 0; } to { transform: scale(2) rotate(0deg); z-index: 99;left: 20%;  } }
    @keyframes team_image_kf_4 { from { transform: scale(1) rotate(30deg); z-index: 0; } to { transform: scale(2) rotate(0deg); z-index: 99; left: 20%; } }
    @keyframes team_image_kf_5 { from { transform: scale(1) rotate(40deg); z-index: 0; } to { transform: scale(2) rotate(0deg); z-index: 99; left: 20%; } }

    .team_block_images_img_1_ever { border: 10px solid var(--color-p002); }
    .team_block_images_img_2_selected > div,
    .team_block_images_img_3_selected > div,
    .team_block_images_img_4_selected > div,
    .team_block_images_img_5_selected > div {
        border: 10px solid var(--color-p002);
    }
}


.team_block_images {
    position: relative;
    margin-bottom: 50px;
}

.team_block_images_img {
    position: absolute;
    background: #fff;
    box-shadow: 0 0 20px 0 rgba(0,0,0,0.6);
    border: 1px solid #fff;
}

.team_block_images_img > div {
    width: 100%;
    height: 100%;

    background-clip: content-box;
    background-size: cover;
    cursor: pointer;
}


.team_block_images_line {
    position: absolute;
    left: 0;
    top: calc(50% - (100% / 5 / 2));

    background: var(--color-p002);
    width: 100%;
    height: calc(100% / 5);
}



.team_block_images_img_1_selected {
    animation: team_image_kf_1 0.2s linear forwards;
}

.team_block_images_img_2_selected {
    animation: team_image_kf_2 0.2s linear forwards;
}

.team_block_images_img_3_selected {
    animation: team_image_kf_3 0.2s linear forwards;
}

.team_block_images_img_4_selected {
    animation: team_image_kf_4 0.2s linear forwards;
}

.team_block_images_img_5_selected {
    animation: team_image_kf_5 0.2s linear forwards;
}




.team_block_images_img_1 { z-index: 4; left: 5%; transform: rotate(0deg); }
.team_block_images_img_2 { z-index: 3; left: 18%; transform: rotate(10deg); }
.team_block_images_img_3 { z-index: 2; left: 31%; transform: rotate(20deg); }
.team_block_images_img_4 { z-index: 1; left: 44%; transform: rotate(30deg); }
.team_block_images_img_5 { z-index: 0; left: 57%; transform: rotate(40deg); }

.team_block_ii_close {
    width: 100%;
    display: flex;
    justify-content: right;
    padding: 0px;
}

.team_block_ii_close > div {
    border: 1px solid var(--color-p002);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 50%;
    background: var(--color-p000);
    transform: scale(0.5);
    opacity: 0.7;
}

.team_block_images_name {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding: 0 20px 0 20px;
    font-family: ff_algerian;
}

.team_block_about_part {
    text-align: justify;
    margin-bottom: 30px;

    font-weight: 400;
    line-height: 1.7;
    font-size: 1.125rem;
    font-family: ff_marmelad;

    padding: 0 20px 0 20px;
}






.team_users {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 0 20px 40px 20px;
}

.team_user {
    display: flex;
    align-items: start;

    gap: 30px;
    flex-wrap: wrap;

    position: relative;
}

.team_user_line {
    position: absolute;
    right: 0;
    top: 0;

    background: var(--color-p002);
    width: calc(100% - 150px);
    height: 80px;
    opacity: 0.3;

    z-index: 1;
}

.team_user_image {
    border: 10px solid var(--color-p002);
    border-radius: 50%;
    width: 300px;
    height: 300px;

    background-clip: content-box;
    background-size: cover;

    -webkit-box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, 0.5) inset;
    -moz-box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, 0.5) inset;
    box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, 0.5) inset;

    z-index: 2;
}

.team_user_data {
    font-weight: 400;
    line-height: 1.7;
    font-size: 1.125rem;
    font-family: ff_marmelad;
    text-align: justify;

    z-index: 2;
}

.team_user_data > a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.team_user_Data > H2 {
    font-family: ff_algerian;
    text-align: left;
    cursor: pointer;
}

.team_user_Data > H2:hover {
    color: var(--color-p002);
}




.team_user_additionalphotoes {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.team_user_additionalphoto {
    border: 1px solid var(--color-p002);
    background-clip: content-box;
    background-size: cover;
    border-radius: 10px;
    cursor: pointer;
    width: 150px;
    height: 150px;
}

.showimage_hidden {
    left: -100%;
    top: 0;

    -webkit-transition: left .5s;
    -moz-transition: left .5s;
    -o-transition: left .5s;
    transition: left .5s;
}

.showimage_shown {
    left: 0;
    top: 0;


    -webkit-transition: left .5s;
    -moz-transition: left .5s;
    -o-transition: left .5s;
    transition: left .5s;
}

.expeditions_name {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding: 0 20px 0 20px;
    font-family: ff_algerian;
}