.bg-protfolio {
    width: 100%;
    padding: 80px 100px;
    margin: 0;
}

.portfolio-title {
    text-align: center;
    padding-inline: 4rem;
    margin: 0px !important;
    font-family: 'Kanit', sans-serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: rgb(32, 31, 31);
    font-weight: normal;
    font-size: 35px;
    position: relative;
}

.portfolio-gallery {
    /* display: grid; */
    grid-template-columns: 0;
    gap: 0;
    margin-bottom: 80px;
}

.project-img {
    border: 1px solid rgb(165, 165, 165);
    padding: 10px;
    width: 100%;
}

.project-img img {
    border-radius: 10px;
}

.action-aria {
    display: block;
    text-align: center;
    margin-top: 40%;
}

.action-aria h4 {
    font-weight: 600;
    color: black;
}

.text-left {
    text-align: left !important;
    margin-left: 45px;
}



.action-aria .btn-light {
    background: #491414;
    border-color: 1px solid #5f1e1e;
    color: #fff;
}

.action-aria .btn {
    display: inline-block;
    width: fit-content;
    padding: 10px 20px;
    background-color: #491414;
    border-radius: 12px;
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #3a0a0a;
}

.portfolio-gallery .project-img img {
    width: 100% !important;
    height: 100%;
    display: block;
    object-fit: fill;
    transition: .4s ease;
}

.portfolio-sub-title {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}

.overlay {
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    background: none;
    /* background: linear-gradient(transparent, #df1717); */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    transition: .4s ease;
}

/* .overlay h4 {
    background: #3a0a0a;
    padding: 10px;
    border-radius: 8px;
} */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .bg-protfolio {
        width: 100%;
        padding: 20px 10px;
        margin: 0;
    }

    .portfolio-title {
        font-size: 30px;
    }

    .portfolio-sub-title p {
        font-size: 12px;
    }

    .action-aria {
        display: block;
        text-align: center;
        margin-top: 10%;
    }

    .project-img {
        height: 200px;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .bg-protfolio {
        width: 100%;
        padding: 80px 100px;
        margin: 0;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .bg-protfolio {
        width: 100%;
        padding: 40px 100px;
        margin: 0;
    }
}



/* -----------------------------modal-------------------------------- */
/* MODAL  */
.modal {
    position: fixed;
    top:85px;
    overflow: scroll;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    display: none;
    opacity: 1;
    transition: all 0.7s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.modal-content-section {
    background: #fff;
    margin-top: 30px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding: 8px 10px;
    border-radius: 4px;
    z-index: 4;
}

.modal-header-section {
    font-weight: 500;
    padding: 10px 0;
    font-size: 26px;
}

.modal-content-section .modal-close {
    float: right;
    font-size: 20px;
    background: white;
    /* width: 20px; */
    border: 0;
    outline: 0;
    margin-right: -30px;
    padding: 2px 5px;
    border-radius: 7px;
    color: #ee0909;
    border: .5px solid gainsboro;
    z-index: 2;
    margin-top: -25px;
}

.modal-body {
    color: #7b7b7b;
    padding: 15px 0;
}

.modal-footer-section {
    padding: 15px 0;
}

.modal-footer-section h4 {
    font-size: 1.1rem;
    color: #2c2a2a;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.modal-footer-section p {
    font-size: .9rem;
}




.modal-header-section h3 {
    font-size: 1.4rem;
    padding-bottom: 20px;
    color: #df2828;
    text-decoration: underline;
}

.m-subheader {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-bottom: .5px solid gainsboro;
}

.m-subheader div:nth-child(1) {
    font-size: 1rem;
    border-right: .5px solid gainsboro;
    display: flex;
    justify-content: start;
    font-family: 'Poppins', sans-serif;
}

.m-subheader div:nth-child(2) {
    font-size: 1rem;
    display: flex;
    font-family: 'Poppins', sans-serif;
    justify-content: end;
}

.m-subheader div span {
    color: #2160c5;
    font-family: 'Poppins', sans-serif;
}

.modal-body .modal-body-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    row-gap: 5px;
    column-gap: 5px;
    align-items: center;
}

.modal-body .modal-body-links a {
    text-decoration: none;
    color: #2160c5;
    font-size: .8rem;
    border: .5px solid #2160c5;
    padding-block: 7px;
    padding-inline: 5px;
    border-radius: 7px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    animation: 0.4s ease-in-out;
    font-weight: 500;
}

.modal-body div a:hover {
    background-color: #2160c5;
    color: white;
}

.modal-body-linksTwo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
    text-align: center;
    gap: 20px;
    background-color: #f7f7f7;
    padding: 20px;
}

.modal-body-linksTwo a {
    text-decoration: none;
    background-color: #f7f7f7;
    color: #35373a;
    font-weight: 600;
    border-radius: 7px;
    padding-block: 8px;
    font-family: 'Poppins', sans-serif;
    transition: 0.4s ease;
    border: .5px solid gainsboro;
}

.modal-body-linksTwo a:hover {
    background-color: white;
    color: #2160c5;
}

.modal-footer-btn {
    display: flex;
    justify-content: center;
    background-color: #f7f7f7;
    padding: 30px;
    border-radius: 7px;
    margin-top: 20px;
}

.modal-footer-btn button {
    padding: 10px;
    border-radius: 7px;
    border: .5px solid gainsboro;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.4s ease;
    cursor: pointer;
}

.modal-footer-btn button:hover {
    background-color: #df4545;
    color: white;
}

.modal-scroll-img {
    width: 50%;
    height: 520px;
    overflow: hidden;
    margin: 20px auto;
    border: 3px solid gainsboro;
    opacity: 1;
    transition: all 0.7s;
}

.modal-scroll-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: all 1s ease-in-out;
}

.modal-scroll-img:hover img {
    object-position: bottom center;
}


.modal-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.modal-textarea {
    width: 50%;
}

.modal-parent-div {
    width: 50%;
}

/*========RESPONSIVE CODES========*/

@media screen and (max-width: 600px) {
    .port-items-links {
        width: 95%;
        margin: 40px auto;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0px;
    }

}

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

    .modal-content-section {
        margin-top: 20px;
    }

    .modal-parent-div {
        width: 100%;
    }

    .modal-body .modal-body-links {
        display: none;
    }

    .modal-scroll-img {
        display: none;
    }

    .m-subheader {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        border-bottom: .5px solid gainsboro;
    }

    .modal-body-linksTwo {
        grid-template-columns: repeat(1, 1fr);
        margin-top: 0px;
        gap: 10px;
        margin-top: 0px;
        padding: 10px;
    }


    .modal-footer-btn {
        padding: 10px;
        margin-top: 10px;
    }

    .m-subheader div:nth-child(1) {
        border-right: none;
    }

    .m-subheader div:nth-child(2) {
        justify-content: start;
    }

    .modal-footer-section {
        padding: 0px 0;
    }
}



@media (min-width: 701px) and (max-width: 1000px) {
    .m-subheader {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        border-bottom: .5px solid gainsboro;
    }

    .m-subheader div:nth-child(1) {
        border-right: none;
    }

    .m-subheader div:nth-child(2) {
        justify-content: start;
    }

    .modal-body .modal-body-links {
        display: none;
    }

    .modal-body-linksTwo {
        grid-template-columns: repeat(1, 1fr);
        margin-top: 0px;
        gap: 10px;
    }
}

@media (min-width: 701px) and (max-width: 1200px) {
    .m-subheader {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        border-bottom: .5px solid gainsboro;
    }

    .m-subheader div:nth-child(1) {
        border-right: none;
    }

    .m-subheader div:nth-child(2) {
        justify-content: start;
    }

    .modal-body-linksTwo {
        grid-template-columns: repeat(1, 1fr);
        margin-top: 20px;
        gap: 10px;
    }
}