.p4 .grid .grid .img img {
    left: 0;
    right: 0;
    margin: auto;
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 50%;
    transform: translateX(-50%);
}
.p4 .grid .grid .img {
    height: 100%;
}
.grid.mirrored.last {
    height: 30em;
}
.mirrored.last.end {
    margin-bottom: 3em;
    margin-top: 0;
}
.hero .headers .header.h1 {
    margin-left: auto;
}
.p4 .grid .grid {
    min-height: 31em;
}
.p4 .grid .grid .container {
    top: 1em;
}
@media screen and (max-device-width: 1080px) {
    .page-contents-wrapper {
        padding-bottom: 0;
    }
    .mirrored.last.end .header {
        text-align: center !important;
        text-align-last: center !important;
        line-height: 1em;
        margin-bottom: 1.4em;
    }
    .mirrored.last.end {
        margin-top: -2em !important;
    }
    .p4 .grid .grid .img img {
        max-height: 30em;
        height: auto;
    }
}
.hero .headers .header.h1 {
    text-align: center;
    text-align-last: center;
    left: 0;
    right: 0;
    margin: auto;
}
.grid.wrapper.gallery {
    grid-template-columns: auto !important;
    background: none !important;
    grid-row-gap: 4em !important;
    margin-top: 0em;
}
.grid.wrapper.gallery .header {
    color: var(--theme1);
    font-size: 30px;
    position: absolute;
    top: 1.4em;
}
.grid.wrapper.gallery .before-and-after {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 50% 50%;
    max-width: 75em;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    grid-template-rows: 100%;
    height: fit-content;
    padding-bottom: 3em;
}
.grid.wrapper.gallery .before, .grid.wrapper.gallery .after {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 48vw;
    max-height: 29em;
}
.grid.wrapper.gallery img {
    left: 0;
    right: 0;
    margin: auto;
    transform: none;
    left: 50%;
    right: 0;
    margin: auto;
    transform: translateX(-50%);
}
.p4 .grid.wrapper .before-and-after .button {
    position: relative;
    margin-top: auto;
    margin-bottom: 0;
    grid-column: 1/3;
    cursor: pointer !important;
}
@media screen and (max-device-width: 1080px) {
    .p4 .grid .grid .body.nobottom {
        margin-bottom: 0 !important;
    }   
}