.content-section p {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    opacity: 1;
    visibility: visible;
    -webkit-transition: opacity 0.24s ease-in-out;
    -moz-transition: opacity 0.24s ease-in-out;
    transition: opacity 0.24s ease-in-out;
    margin: 0 0 15px;
    font-family: 'Montserrat', sans-serif;
    line-height: 31px;
}

.content-section {
    text-align: justify;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    width: 100%;
}

.gallery-heading {
    font-size: 36px;
    font-weight: 600;
    color: #000066;
    margin: 20px 0px;
    text-align: start;
    text-transform: uppercase;
}

#our_team .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#our_team .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

#our_team .card-img-top {
    height: 350px;
    object-fit: cover;
    object-position: top;
}

.gallery-section .row img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img-fluid-main {
    width: 360px;
    height: 290px;
}

.img-fluid-popup {
    width: 275px;
    height: 250px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 58px;
    justify-content: start;
}

.gallery-section .row a {
    display: block;
    overflow: hidden;
    border-radius: 0.375rem;
}

.gallery-section .row a:hover img {
    transform: scale(1.05);
}

h3 {
    color: #000066;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 15px;
    opacity: 1;
    visibility: visible;
    -webkit-transition: opacity 0.24s ease-in-out;
    -moz-transition: opacity 0.24s ease-in-out;
    transition: opacity 0.24s ease-in-out;
}

.modal-body p {
    margin: 0 0 15px;
    font-family: 'Montserrat', sans-serif;
    line-height: 31px !important;
    font-size: 18px;
    text-align: justify;
}

@media screen and (max-width: 1399px) {
    .gallery {
        gap: 18px;
    }
}

@media screen and (max-width: 1199px) {
    #our_team .card-img-top {
        height: 290px;
    }

    .img-fluid-main {
        width: 300px;
        height: 220px;
    }
}

@media screen and (max-width: 992px) {
    #our_team .card-img-top {
        height: 210px;
    }

    .img-fluid-main {
        width: 330px;
        height: 270px;
    }

    .gallery {
        gap: 35px;
    }

    h3 {
        font-size: 24px;
        margin: 15px 0px;
        text-align: center;
    }

    .modal-body h6 {
        font-size: 14px !important;
        text-align: center;
    }

    .modal-body p {
        line-height: 24px !important;
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    .gallery {
        display: flex;
        flex-direction: column;
        gap: 20px;
        justify-content: center;
    }

    .img-fluid-main {
        width: 360px;
        height: 290px;
    }

    #our_team .card-img-top {
        height: 350px;
    }
}

@media screen and (max-width: 374px) {
    .img-fluid-main {
        width: 300px;
        height: 250px;
    }

    .img-fluid-popup {
        width: 225px;
        height: 200px;
    }
        #our_team .card-img-top {
        height: 300px;
    }

}