.portfoliobyId_main_parent {
    width: 100%;
    height: 100%;
    padding: 0 2%;
    max-width: 1600px;
    margin: auto;
}

.portfoliobyId_first_upper_main {
    width: 100%;
    padding: 2% 0;
    display: flex;
}


.portfoliobyId_first_upper_main .first-upper-left,
.portfoliobyId_first_upper_main .first-upper-right {
    width: 50%;
    margin: auto;
}


.portfoliobyId_first_upper_main .first-upper-left .first-upper-left-heading,
.portfoliobyId_first_upper_main .first-upper-left .first-upper-left-paragraph {
    color: var(--secondary-color);
}


.portfoliobyId_first_upper_main .first-upper-left .first-upper-left-heading {
    font-size: 31px;
    font-weight: 600;
    line-height: 46.5px;
    text-align: left;
    width: 100%;
}

.portfoliobyId_first_upper_main .first-upper-left .first-upper-left-paragraph {
    font-size: 21px;
    font-weight: 500;
    line-height: 31.5px;
    text-align: left;
    margin: 10px auto;
    width: 100%;
}


.portfoliobyId_first_upper_main .first-upper-right img {
    width: 100%;
    max-width: 550px;
    height: auto;
    max-height: 400px;
    min-height: 300px;
    display: block;
    object-fit: cover;
    margin: auto;
}

.portfoliobyId_gallery_section {
    width: 100%;
    padding: 2% 0;
    gap: 10px;
    overflow-x: auto;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    place-items: center;
}

.portfoliobyId_gallery_section .portfoliobyId_gallery_section-child {
    width: 100%;
    height: 200px;
    object-fit: cover;
    overflow: hidden;
    cursor: pointer;
}

.portfoliobyId_gallery_section .portfoliobyId_gallery_section-child .gallery-content {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.portfoliobyId_gallery_section .gallery-content:hover {
    transform: scale(1.1);
    filter: brightness(0.5);
}


.portfoliobyId_lower_div {
    width: 100%;
    height: 100%;
    padding: 2% 0;
    max-width: 1600px;
    margin: auto;
}

.portfoliobyId_lower_div img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

.portfoliobyId_lower_div .portfoliobyId_lower_pararaph {
    font-size: 24px;
    font-weight: 500;
    line-height: 31px;
    text-align: left;
    width: 90%;
    margin: 2% auto;
    color: var(--secondary-color);
}


/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .portfoliobyId_gallery_section {
        grid-template-columns: repeat(3, 1fr);
        /* Adjust for tablets */
    }
}



/* Responsive Design for max-width 768px */
@media (max-width: 768px) {
    .portfoliobyId_first_upper_main {
        flex-direction: column;
    }

    .portfoliobyId_first_upper_main .first-upper-left,
    .portfoliobyId_first_upper_main .first-upper-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0;
    }

    .portfoliobyId_first_upper_main .first-upper-left .first-upper-left-heading {
        font-size: 26px;
        line-height: 38px;
        text-align: center;
    }

    .portfoliobyId_first_upper_main .first-upper-left .first-upper-left-paragraph {
        font-size: 18px;
        line-height: 28.5px;
        text-align: center;
    }

    .portfoliobyId_first_upper_main .first-upper-right img {
        max-width: 100%;
        max-height: 350px;
        min-height: 250px;
    }

    .portfoliobyId_gallery_section {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfoliobyId_gallery_section .portfoliobyId_gallery_section-child {
        max-height: 150px;
    }
}

/* Responsive Design for max-width 576px */
@media (max-width: 576px) {
    .portfoliobyId_first_upper_main .first-upper-left .first-upper-left-heading {
        font-size: 22px;
        line-height: 32px;
    }

    .portfoliobyId_first_upper_main .first-upper-left .first-upper-left-paragraph {
        text-align: center;
        font-size: 14px;
        line-height: 25.5px;
    }

    .portfoliobyId_first_upper_main .first-upper-right img {
        max-width: 100%;
        max-height: 200px;
        min-height: 200px;
    }

    .portfoliobyId_lower_div .portfoliobyId_lower_pararaph {
        font-size: 14px;
        line-height: 21px;
        width: 95%;
        text-align: justify;
    }

    .portfoliobyId_gallery_section {
        grid-template-columns: repeat(1, 1fr);
    }
}