.text-section .container {
    max-width: 1000px;
}
.page-section .flexed {
    align-items: center;
    margin-bottom: 1.5em;
}
.text-photo-section:nth-of-type(even) .flexed {
    flex-direction: row-reverse;
}
.text-wrapper {
    flex-basis: 48%;
}
.text-wrapper p:last-of-type {
    margin-bottom: 0;
}
.photo-wrapper {
    flex-basis: 40%;
    border: 8px solid #FFF;
    line-height: 0;
}
.page-section:not(.blue-bg):not(.gray-bg) .photo-wrapper {
    border-color: var(--main-blue);
}
.photo-wrapper img {
    width: 100%;
}
.page-section h2 {
    color: var(--main-blue);
}
.page-section h2:after {
    content: '';
    display: block;
    margin: 1em 0;
    width: 225px;
    border-bottom: 2px solid;
}
.page-section.blue-bg h2,
.page-section.gray-bg h2 {
    color: #FFF;
}
.page-section.blue-bg h2:after {
    border-color: #FFF;
}

@media screen and (max-width: 1100px){
    .photo-wrapper {
        flex-basis: 45%;
    }
}
@media screen and (max-width: 1023px){
    .page-section .flexed {
        display: block;
    }
    .photo-wrapper {
        max-width: 800px;
        margin: 3em auto 1.5em;
    }
}