.ks_teammembers {
    padding: 50px 0;
    background-color: #F5F5F5;
    background-image: url(https://konaseemaphotographers.com/images/home/team/team_bg_2.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.ks_spancolor {
    color: var(--theme-color);
}
.ks_team_name {
    font-size: 24px;
    color: var(--theme-color);
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.ks_teamtitle {
    font-size: 40px;
    font-weight: 700;
    color: #141D38;
    margin-bottom: 30px;
    text-align: center;
}
.ksteam_card {
    position: relative;
    /* max-width: 280px;
    margin: 10px auto; */
    cursor: pointer;
    -webkit-transition:all 0.3s ease;
    transition: all 0.3s ease;
}
.ksteam_card:hover {
    transform: translateY(-10px);
}
.ksteam_img {
    position: relative;
    overflow: hidden;
}
.ksteam_content {
    box-shadow: 0px 10px 30px rgba(8, 14, 28, 0.06);
    border-radius: 0px 0px 10px 10px;
    background-color: var(--white-color);
    padding: 15px 10px;
    -webkit-transition:all 0.3s ease;
    transition: all 0.3s ease;
    position: relative;
    /* z-index: 222; */
    max-width: 100%;
    margin: -50px auto 0 auto;
    text-align: center;
    display: flex;
    gap: 10px;
    flex-direction: column;
}
.ksteam_card:hover > .ksteam_content {
    background-color: var(--theme-color);
    background-image: url(https://konaseemaphotographers.com/images/home/team/team_bg_1.png);
    background-position: left;
    background-repeat: no-repeat;
    background-size: 40%;
}
.ksteam_card:hover > .ksteam_content > .ksteam_name {
    color: var(--white-color);
}
.ksteam_card:hover > .ksteam_content > .ksteam_con_txt {
    color: var(--white-color);
}
.ksteam_memimg {
    width: 100%;
    -webkit-transition: 0.4s ease-in-out;
    transition: 0.4s ease-in-out;
    border-radius: 10px;
}
.ksteam_name {
    color: #141D38;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0px;
}
.ksteam_con_txt {
    color: var(--theme-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0px;
}


/* grid structure */
.teammem_grid {
    display: grid;
    display: -ms-grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
    gap: 30px;
    width: 100%;
}


/* Media Queries */

@media only screen and (min-width: 320px) and (max-width: 480px) {
    .ks_teammembers {
        padding: 30px 0;
    }
    .ks_team_name {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .ks_teamtitle {
        font-size: 26px;
        margin-bottom: 25px;
    }
    .ksteam_name {
        font-size: 14px;
        font-weight: 700;
    }

    

    /* grid structure */
    .ksteam_content {
        gap: 8px;
    }
    .ksteam_con_txt {
        font-size: 12px;
    }
    .teammem_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}


@media only screen and (min-width: 481px) and (max-width: 576px) {
    .ks_teammembers {
        padding: 30px 0;
    }
    .ks_team_name {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .ks_teamtitle {
        font-size: 26px;
        margin-bottom: 25px;
    }
    .ksteam_name {
        font-size: 14px;
    }

    /* grid structure */
    .ksteam_content {
        gap: 8px;
    }
    .ksteam_con_txt {
        font-size: 12px;
    }
    .teammem_grid {
        margin: 0px auto;
        max-width: 380px;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}


@media only screen and (min-width: 577px) and (max-width: 767px) {
    .ks_teammembers {
        padding: 30px 0;
    }
    .ks_team_name {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .ks_teamtitle {
        font-size: 26px;
        margin-bottom: 25px;
    }
    .ksteam_name {
        font-size: 16px;
    }

    /* grid structure */
    .ksteam_content {
        gap: 8px;
    }
    .ksteam_con_txt {
        font-size: 12px;
    }
    .teammem_grid {
        margin: 0px auto;
        max-width: 380px;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}


@media only screen and (min-width: 768px) and (max-width: 991px) {
    .ks_teammembers {
        padding: 30px 0;
    }
    .ks_team_name {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .ks_teamtitle {
        font-size: 26px;
        margin-bottom: 25px;
    }
    .ksteam_name {
        font-size: 16px;
    }

    /* grid structure */
    .ksteam_content {
        gap: 8px;
    }
    .ksteam_con_txt {
        font-size: 12px;
    }
    .teammem_grid {
        margin: 0px auto;
        max-width: 380px;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}


@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .ks_teammembers {
        padding: 40px 0;
    }
    .ks_team_name {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .ks_teamtitle {
        font-size: 26px;
        margin-bottom: 25px;
    }
    .ksteam_card {
        max-width: 210px;
    }
    .ksteam_name {
        font-size: 16px;
    }
    .mindev_pad {
        padding: 0px 30px;
    }

    .teammem_grid {
        gap: 20px;
    }
}


@media only screen and (min-width: 1200px) and (max-width: 1400px) {
    .ks_teammembers {
        padding: 40px 0;
    }
    .ks_teamtitle {
        font-size: 36px;
    }
    .ksteam_card {
        max-width: 250px;
    }
    .ksteam_name {
        font-size: 16px;
    }
    .mindev_pad {
        padding: 0px 40px;
    }
}