section {
    margin-top: 50px;
}

.projects-list .section-title {
    font-size: 30px;
    color: var(--primary);
}

.project {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    gap: 30px;
}

.project:nth-child(even) {
    background-color: #f5f5f5;
}

.project:nth-child(odd) {
    flex-direction: row-reverse;
}

.photos {
    max-width: 50%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.photos a {
    width: calc(50% - 5px);
    display: block;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.photos img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;

    opacity: 1;
    transform: scale(1);
    transition: all .25s ease;
}

.photos a:hover img {
    transform: scale(1.1);
    opacity: 0.9;
}

.texts {
    flex: 1;
    padding: 0 20px;
    font-family: 'Open Sans';
    font-size: 20px;
}

@media screen and (max-width:820px) {
    .project {
        display: flex;
        flex-direction: column-reverse;
    }
    .project:nth-child(odd) {
        flex-direction: column-reverse;
    }
    .photos {
        max-width: 95%;
    }
}

@media screen and (max-width:550px) {
    .project {
        padding: 0;

    }

    .project .texts .section-title {
        font-size: 26px;
    }

    .project .texts {
        font-size: 16px;
        padding: 0;
    }

    .photos a {
        width: 100%;
    }

    .texts a {
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
}

/* PAGE PHOTO_DETAILS */
.photo_detail {
    display: flex;
    flex-direction: column;
    margin: 30px 0;
    justify-content: center;
}

.photo_detail .photo-subtitle {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 35px;
    color: var(--secondary);
}

.photo_detail .img {
    margin: 30px auto;
    width: fit-content;
}
.photo_detail img {
    height: 500px;
}