.center-div{

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction:column;
}

.center-div div{
    width: 45vw;
    min-width: 400px;
    margin-top: 5vh;

    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-direction:column;
}

.center-div div h1{
    width: 100%;
}

.text-container {
    display: flex !important;
    align-items: flex-start !important; /* Aligns items at the top */
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 20px; /* Adds spacing between image and text */
    max-width: 70vw; /* Ensures it doesn’t stretch too wide */
}

.img-right {
    width: 40%; /* Adjust size as needed */
    max-width: 350px; /* Prevents the image from being too large */
    float: right;
}

.text-container p {
    flex: 1; /* Allows text to take up remaining space */
    text-align: justify;
}

.project-article{
    display: block;
    width: min(1100px, calc(100% - 2rem));
    margin: 3rem auto;
}
.project-back{
    display: inline-block;
    margin-bottom: 1rem;
    color: inherit;
}
.project-description{
    display: block;
    max-width: 75ch;
    line-height: 1.6;
}
.project-features{
    display: block;
    max-width: 75ch;
    line-height: 1.6;
}
.project-features[hidden]{
    display: none;
}
.project-gallery{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.project-gallery figure{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding-top: 0.75rem;
    border-top: 3px solid var(--sat4);
}
.project-gallery img,
.project-gallery video{
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: var(--sat1);
}
.project-gallery figcaption{
    margin-top: 0.5rem;
    line-height: 1.4;
}

@media only screen and (max-width: 600px){
    .project-article{
        margin-top: 1.5rem;
    }
}
