/* Generic */

.flex-break {
    flex-basis: 100%;
    height: 0;
}

.ease-out {
    -webkit-transition: all 0.4s ease-out;
    -moz-transition: all 0.4s ease-out;
    -ms-transition: all 0.4s ease-out;
    -o-transition: all 0.4s ease-out;
    transition: all 0.4s ease-out;
}

@media (max-width: 800px) {

    .mt-100, .mt-195 {
        margin-top: 0;
    }

    h1, h2, h3 {
        text-align: center;
    }

    ul {
        padding-left: 0;
    }

}

/* Elements: Footer */

.footer div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    line-height: 25px;
}

/* Elements: Container */

@media (max-width: 800px) {

    #container .pure-g .pure-u-1.pure-u-md-2-3 {
        width: 100%;
    }

    #container {
        background-image: none;
        padding: 100px 10px 10px 10px;
        width: auto;
        margin-top: 0;
        overflow: hidden;
    }

}

/* Elements: Menu */

@media (max-width: 800px) {

    #menu_holder {
        position: absolute;
        background-color: rgba(243, 243, 243, 0.9);
        z-index: 100;
        padding: 20px 20px 20px 0;
        top: 0;
        left: -150%;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        display: flex;
    }

    #menu_holder.active {
        left: 0;
    }

    #main_menu {
        width: 90%;
        height: auto;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: space-around;
        margin-bottom: 20px;
    }

    #main_menu a {
        position: relative;
        left: auto;
        top: auto;
        display: flex;
        align-items: center;
        width: 100%;
        text-decoration: none;
        background-position: -25px;
        padding-left: 3px;
        margin-bottom: -6px;
    }

    #greenbutton {
        margin-top: -25px;
    }

    #main_menu a .icon {
        margin: 0;
        transform: none;
        width: 50px !important;
        background-position: center;
        background-repeat: no-repeat;
    }

    #main_menu a label {
        display: inline;
        margin-left: 10px;
        font-size: 32px;
        cursor: pointer;
    }

    #external_menu {
        margin: 0;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    #external_menu a {
        background-position: center;
        background-repeat: no-repeat;
        margin-bottom: 0;
    }

    #search {
        position: relative;
        right: auto;
        top: auto;
        font-size: 32px;
        cursor: pointer;
        margin: 30px auto 50px auto;
        width: auto;
        height: auto;
        background: none;
        text-decoration: none;
    }

    #search:hover, #search.active {
        background: none;
    }

    #close_menu, #open_menu {
        display: block;
        position: absolute;
        top: 15px;
        right: 0;
        padding: 20px 9px 20px 20px;
        font-size: 40px;
        z-index: 110;
        cursor: pointer;
    }

    #open_menu.active {
        right: 0;
    }

    #open_menu {
        right: -70px;
    }

    #main_menu a:hover, #search:hover, #close_menu:hover, #open_menu:hover {
        color: black;
    }

}

/* Page: Home */

@media (max-width: 800px) {

    li.feedlist .entry {
        order: 2;
    }

}

@media (max-width: 600px) {
    li.feedlist {
        padding-right: 0;
        display: flex;
        flex-wrap: wrap;
        flex-flow: row;
    }

    li.feedlist .icon {
        margin-right: 10px;
        width: 35px;
        height: auto;
        flex: 0 0 auto;
    }

    li.feedlist .wrapper {
        display: flex;
        flex-flow: column;
        line-height: 22px;
    }

    li.feedlist .date {
        float: none;
        margin-left: 0;
        display: inline;
        order: 1;
    }
}

/* Page: Blog */

@media (max-width: 800px) {

    .blog.preview {
        width: 100%;
        position: relative;
        left: 0;
        top: 0;
    }

    #blog_body.mt70 {
        margin-top: 20px;
    }

}

@media (max-width: 400px) {

    .blog.preview {
        height: 170px;
    }

}

@media (max-width: 340px) {

    .blog.preview {
        height: auto;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

}

/* Page: Gallery */

.gallery .pure-u-1 {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 800px) {

    .presentation .image.single {
        width: 100%;
        margin: 40px 0;
    }

    .presentation .image.single img {
        width: 100%;
    }

    #map {
        width: 100%;
        margin: 0;
    }

    .image.w-filler {
        display: none;
    }

}

@media (max-width: 600px) {

    h3 label.coords {
        display: block;
    }

}

@media (min-width: 800px) {

    .gallery .pure-u-1 .image:nth-child(4n+1) {
        margin-top: -260px;
    }

    .gallery .pure-u-1 .image:nth-child(4n+2) {
        margin-top: -171px;
    }

    .gallery .pure-u-1 .image:nth-child(4n+3) {
        margin-top: -82px;
    }

    .gallery .pure-u-1 .image:nth-child(4n+4) {
        margin-top: 7px;
    }

    .gallery .pure-u-1 .image {
        margin: 0 10px 25px 0;
    }

    .gallery .pure-u-1 {
        justify-content: start;
    }

}

/* Page: Search */

@media (max-width: 800px) {

    #search_list .gallery h2 {
        text-align: left;
    }

    #search_list .gallery .location {
        display: inline-block;
    }

}
