@font-face {
    font-family: "FK Display";
    src: url("FKDisplay-Regular.woff") format("woff");
    font-style: normal;
}

@font-face {
    font-family: "FK Display Slash";
    src: url("FKDisplay-Regular-slash.woff") format("woff");
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    appearance: none;
}

body,
html {
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'FK Display', serif;
    font-weight: normal;
    font-size: 25px;
    line-height: 1.2;
    -webkit-font-smoothing: subpixel-antialiased;
    -webkit-text-size-adjust: 100%;
    background: #FFF;
    color: #717171;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

main {
    width: 100%;
    height: auto;
    min-height: 100%;
    padding: 8px 10px;
}

.about-text p + p {
    margin-top: 1vw;
}

.top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr;
}

.top-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

ul {
    list-style-type: none;
}

.menu {
    text-align: right;
}

.light {
    color: #C3C3C3;
}

.projects {
    margin-top: 10vh;
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    position: relative;
}

.post-item {
    display: flex;
    flex-direction: column;
}

.post-item-caption {
    margin: 0.5vw 0;
}

.bm2 .post-item-image,
.bm3 .post-item-image,
.bm4 .post-item-image {
    order: 2;
}

.bm1 {
    flex: 0 0 33.333333%;
    padding: 2vw 3.5vw 0 3.5vw;
    align-self: flex-start;
}

.bm2 {
    flex: 0 0 33.333333%;
    padding: 0 7vw 0 3.5vw;
    align-self: flex-end;
}

.bm3 {
    flex: 0 0 33.333333%;
    padding: 0 3.5vw 0 7vw;
    align-self: center;
}

.bm4 {
    flex: 0 0 50%;
    padding: 0 7vw 0 9vw;
    align-self: flex-end;
}

.bm5 {
    flex: 0 0 50%;
    padding: 7vw 7vw 0 10vw;
    align-self: flex-start;
}

a {
    text-decoration: none;
    color: #C3C3C3;
    cursor: pointer;
    transition: color 0.5s;
}

a:hover {
    color: #717171;
}

.project-description a, .about-text a {
    color: #717171;
}

.project-description a:hover, .about-text a:hover {
    color: #C3C3C3;
}

.active {
    color: #717171;
}

.post a img {
    transition: border-radius 0.2s ease, transform 1s ease;
}

.post a img:hover {
    border-radius: 50vw;
    transition: all 1s;
    transform: scale(0.95);
}

.post-item-caption {
    opacity: 0;
    transition: opacity .5s ease-in-out;
}

.post-item-image:hover + .post-item-caption {
    opacity: 1;
}

.project-images {
    position: absolute;
    top: 15vh;
    height: 70vh;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: auto;
    max-height: 70vh;
}

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 0;
    width: 50%;
    height: 70vh;
    z-index: 10;
}

.swiper-button-prev {
    left: 0;
    cursor: url('data:image/svg+xml,<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="20px" height="20px" viewBox="0 0 20 20"><circle fill="grey" cx="10" cy="10" r="8"/></svg>'), w-resize;
}

.swiper-button-next {
    right: 0;
    cursor: url('data:image/svg+xml,<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="20px" height="20px" viewBox="0 0 20 20"><circle fill="grey" cx="10" cy="10" r="8"/></svg>'), e-resize;
}

.swiper-button-prev:focus,
.swiper-button-next:focus {
    outline: none;
}

.bottom-bar {
    position: absolute;
    bottom: 8px;
    text-align: center;
    width: calc(100% - 20px);
    color: #C3C3C3;
}

a.info {
    position: absolute;
    left: 0;
}

.project-description {
    position: absolute;
    top: 110vh;
    padding-right: 10px;
    padding-bottom: 15px;
    margin-top: -30px;
    padding-top: 60px;
}

.heading {
    font-size: 23px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.details {
    margin-top: 4vw;
    font-size: 20px;
}

.about-text {
    margin-top: 15vh;
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 4vw;
}

.services,
.clients {
    font-size: 20px;
}

h1 {
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.small-heading {
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.address {
    padding-top: 60px;
    font-size: 20px;
}

footer {
    padding: 12vw 0 .5vw 0;
}

footer.footer-about {
    position: relative;
}

footer.footer-about p {
    position: absolute;
    bottom: 1vw;
    width: 100%;
    text-align: center;
}

.slash {
    font-family: 'FK Display Slash', serif;
    padding: 0 .1em;
}

.imprint-text {
    column-count: 4;
    column-gap: 40px;
}

@media only screen and (max-width: 1400px) {

    footer.footer-about {
        position: relative;
        padding: 30vh 0 8px 0;
    }

    footer.footer-about p {
        position: absolute;
        bottom: 20px;
        width: 100%;
    }

}

@media only screen and (max-width: 768px) {

    body {
        font-size: 20px;
    }

    .projects {
        margin-top: 100px;
    }

    .post {
        width: 100%;
    }

    .post + .post {
        margin-top: 100px;
    }

    .bm1,
    .bm2,
    .bm3,
    .bm4,
    .bm5 {
        flex: 0 0 100%;
        padding: 0;
    }

    .bm2 .post-item-image,
    .bm3 .post-item-image,
    .bm4 .post-item-image {
        order: inherit;
    }

    .post img {
        border-radius: 50vw;
    }

    .post-item-caption {
        opacity: 1;
        margin-top: 10px;
    }

    .about-text {
        margin-top: 15vh;
        display: block;
    }

    .about-text p + p {
        margin-top: 2vw;
    }

    .services,
    .clients {
        margin-top: 120px;
    }

    .project-images {
        top: 15vh;
        height: 60vh;
    }

    .post a img:hover {
        transition: none;
        transform: none;
    }

    .post-item-image {
        padding: 0 5px;
    }

    .swiper {
        width: 100%;
        height: 100%;
    }

    .swiper-slide {
        min-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: -10px;
    }

    .swiper-slide img {
        max-height: 60vh;
        max-width: calc(100% - 20px);
        align-self: center;

    }

    .heading {
        font-size: 18px;
    }

    .details {
        margin-top: 60px;
        font-size: 15px;
    }

}
