.p4 .header {
    color: var(--theme1);
    font-family: var(--font2);
    margin-top: 0;
    top: 0;
}
.p4 .grid {
    width: 90vw;
    max-width: 84em;
    margin-top: 2em;
    grid-row-gap: 6em;
}
.p4 .grid .grid {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: fit-content;
    grid-template-columns: 50% 50%;
}
.p4 .grid .grid .img {
    position: relative;
    width: 100%;
    height: 28em;
    overflow: hidden;
    border-radius: 4px;
}
.p4 .grid .grid .img .f {
    position: absolute;
    width: 100%;
    height: 100%;
}
.p4 .grid .grid .img .f img {
    position: absolute;
    width: 100%;
    height: auto;
    left: 50%;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    top: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center;
    min-height: 100%;
}
.p4 .grid .grid .header {
    text-align: center;
    text-align-last: center;
    margin-top: 5em;
}
.p4 .grid .grid .container {
    position: relative;
    width: 94%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    margin: auto;
    margin-right: 0;
}
.buttons {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto;
    grid-gap: 1em;
    width: fit-content;
    height: fit-content;
    position: relative;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    margin-top: 1.4em;
}
.buttons .button {
    position: relative;
}
.fixed {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    z-index: 10;
}
.fixed .bg {
    position: absolute;
    background: black;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    opacity: 85%;
    cursor: pointer;
}
.fixed .img {
    position: absolute;
    width: fit-content;
    height: 90vh;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    overflow: hidden;
    border-radius: 4px;
    min-width: 31em;
    max-width: 90vw;
}
.fixed .img img {
    position: relative;
    width: auto;
    height: 90vh;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
}
.arrows {
    position: absolute;
    width: 96%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    z-index: 2;
    height: fit-content;
}
.arrows .arrow {
    position: relative;
    display: inline-block;
    font-family: var(--font1);
    font-size: 26px;
    background: black;
    color: white;
    padding: 0.5em;
    border-radius: 2px;
    cursor: pointer;
    user-select: none;
}
.arrows .arrow.right {
    left: 0;
    right: 0;
    margin: auto;
    margin-right: 0;
    float: right;
}
@media screen and (max-device-width: 1294px) {
    .buttons {
        grid-template-columns: auto;
        grid-row-gap: 0.4em;
    }
}
@media screen and (max-device-width: 1080px) {
    .fixed .img img {
        position: relative;
        width: 94vw;
        height: auto;
        min-height: 100%;
        object-fit: cover;
        object-position: center;
        left: 0;
        right: 0;
        margin: auto;
        top: 0;
        bottom: 0;
        min-width: unset;
    }
    .fixed .img {
        height: fit-content;
        width: fit-content;
    }
    .fixed .img .f {
        position: relative;
        width: fit-content;
    }
    .p4 .grid {
        grid-template-columns: auto !important;
        grid-gap: 3em !important;
    }
    .p4 .grid .grid .header {
        margin-top: 1em;
    }
}
.p4 .grid .grid .body {
    font-family: var(--font2);
    margin-top: 1em;
    margin-bottom: 2em;
    text-align: left;
    text-align-last: left;
    font-size: 17px;
    max-width: unset;
    width: 96%;
}
.p4 .grid .grid .header {
    margin-top: 0em;
}
.p4 .grid .grid .container {
    height: fit-content;
}
.p4 .grid .grid .img img {
    min-height: 100%;
    height: 100%;
    width: auto;
    min-width: 100%;
}
@media screen and (min-device-width: 1081px) {
    .p4 .grid .grid.mirrored .container {
        grid-column: 1/1;
        margin-left: 0;
        grid-row: 1/1;
    }
}
@media screen and (max-device-width: 1080px) {
    .p4 .grid .grid .img img {
        min-height: 100%;
        height: 100%;
        width: auto;
        min-width: 100%;
        margin-right: 0;
        object-position: right;
        height: 32vh;
        max-height: 36em;
        width: 100%;
        min-height: unset;
        object-fit: cover;
    }
    .p4 .grid .grid .img {
        position: relative;
        width: 100%;
        height: fit-content;
        overflow: hidden;
        border-radius: 4px;
        height: 32vh;
        max-height: 36em;
    }
}