/*
 * Mobile styles & Breakpoints
 * By Funkhaus - 2016
 * www.funkhaus.us
 *
 * @see https://www.emailonacid.com/blog/article/email-development/emailology_media_queries_demystified_min-width_and_max-width
 * (min-width: 1800px) == Greater than or equal to 1800px
 * (max-width: 750px) == Less than or equal to 750px
 *
 */


/*
 * Breakpoints
 */
    /* Cinema Display and larger */
    @media (min-width: 1600px) {

        /* Header */
        #expanded-menu .sub-menu {
            font-size: 23px;
        }

        /* Fullbleed */
        .block-fullbleed .excerpt {
            font-size: 21px;
        }

        /* Single */
        .single .title .line-2 {
            font-size: 32px;
        }

    }

    /* Smaller than Desktop HD */
    @media (max-width: 1200px) {
        .post-nav-wrap .prev,
        .post-nav-wrap .next {
            padding-bottom: 10px;
        }
    }

    /* Smaller than tablet */
    @media (max-width: 900px) {

        #container {
            padding-top: 50px;
        }
        #content {
            padding-top: 0;
        }

        /* Header */
        .date-top,
        #header .fixed-meta,
        .sub-headline,
        #sub-headline-menu,
        #header .social-wrap {
            display: none;
        }
        #header {
            right: 0;
            left: 0;
            background-color: transparent;
        }
        #hamburger {
            top: 0;
            left: 0;
        }

        /* Main menu */
        .main-menu-wrap {
            max-height: 50px;
            padding: 0;
            padding-top: 50px;
        }
        .main-menu-wrap .logo {
            display: block;
            position: absolute;
            height: 20px;
            top: 15px;
            right: 60px;
            left: 60px;
        }
        .main-menu-wrap .logo .svg {
            width: 100%;
            height: 100%;
        }
        .main-menu-wrap .logo .svg * {
            fill: #ffffff;
        }
        .main-menu {
            padding: 10px 20px;
            height: 150px;

            -webkit-flex-direction: column;
            flex-direction: column;
            -webkit-align-items: flex-start;
            align-items: flex-start;
            -webkit-flex-wrap: wrap;
            flex-wrap: wrap;
            -webkit-justify-content: flex-start;
            justify-content: flex-start;
        }
        .main-menu li {
            height: 25%;
            width: calc(66% - 20px);
            text-align: left;
        }
        #header .main-menu li a {
            font-size: 20px;
        }
        .full-header h4,
        .search-wrap {
            display: none;
        }
        #header .divider {
            background-color: #737373;
            height: 0;
            display: block;
            margin: 0 auto;
        }

        /* Full menu */
        .full-header-wrap {
            overflow: hidden;
        }
        .full-header {
            margin-left: 14px;
        }
        .menu-opened .full-header {
            min-height: calc(100vh - 260px)
        }
        .expanded-wrap {
            display: block;
            padding-bottom: 30px;
        }
        #expanded-menu {
            margin-top: 25px;
            padding: 0 20px 0 0;
            font-size: 14px;
            height: 330px;
            margin-bottom: 0;

            -webkit-flex-direction: column;
            flex-direction: column;
            -webkit-flex-wrap: wrap;
            flex-wrap: wrap;
            -webkit-align-content: flex-start;
            align-content: flex-start;
        }
        #expanded-menu > li:first-of-type {
            height: 100%;
            margin-right: 0;
            padding-left: 20px;
            width: calc(66% - 20px);
        }
        #expanded-menu .sub-menu {
            font-size: 15px;
            margin-top: 30px;
        }

        /* Menu opened */
        .menu-opened #header {
            bottom: 0;
        }
        .menu-opened .main-menu-wrap {
            max-height: 100vh;
            padding-top: 70px;
        }
        .menu-opened #header .divider {
            height: 2px;
            margin: 10px auto;
        }


        /* Rows */
        .standard-row {
            margin: 0 0 65px;

            -webkit-flex-direction: column;
            flex-direction: column;
            -webkit-align-items: center;
            align-items: center;
        }

        /* Blocks */
        .block {
            margin: 0 10px 10px;
            padding: 10px;
        }

        /* Standard */
        .block.block-standard {
            width: calc(100% - 60px);
            margin: 10px 10px 0;
            padding: 20px;
        }

        /* Fullbleed */
        .block-fullbleed {
            width: calc(100% - 60px);
        }
        .block-fullbleed .meta-wrap {
            padding-bottom: 56.25%;
            height: 0;
        }
        .block-fullbleed .image-wrap .image {
            position: static;
        }
        .block-fullbleed .title {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            margin-bottom: 0;

            display: -webkit-flex;
            display: flex;
            -webkit-flex-direction: column;
            flex-direction: column;
            -webkit-justify-content: center;
            justify-content: center;
        }
        .block-fullbleed .title .line-1 {
            font-size: 28px;
        }
        .block-fullbleed .meta,
        .block-fullbleed .excerpt,
        .block-fullbleed .teaser {
            display: none;
        }

        /* Landscape */
        .block-landscape {
            width: calc(100% - 60px);
        }
        .block-landscape .meta-wrap,
        .block-headling .meta-wrap {
            width: 100%;
        }
        .block-landscape .image-wrap,
        .block-headline .image-wrap {
            position: static;
            width: 100%;
            margin: 10px 0 20px;

            -webkit-order: -1;
            order: -1;
        }
        .block-landscape .image,
        .block-headline .image {
            position: static;
        }

        /* Headline */
        .block-landscape,
        .block-headline {
            padding: 0 0 10px;
            width: calc(100% - 20px);

            display: -webkit-flex;
            display: flex;
            -webkit-flex-direction: column;
            flex-direction: column;
        }
        .category .block-landscape .meta-wrap,
        .block-headline .meta-wrap {
            position: static;
            margin-left: 0;
            width: 100%;
        }
        .block-landscape .meta,
        .block-headline .meta {
            font-size: 14px;
            margin: 10px 0 0;

            display: -webkit-flex;
            display: flex;
        }
        .block-headline .date-label {
            display: none;
        }
        .block-headline .title {
            margin: 20px 0 25px;
        }
        .block-headline .title .line-1 {
            font-size: 31px;
        }
        .block-headline .title .line-2 {
            font-size: 22px;
        }
        .block-headline .excerpt {
            margin-bottom: 20px;
            max-width: none;
        }

        /* Newsletter Signup */
        .newsletter-signup form {
            padding: 0 10px;
        }
        .newsletter-signup input[type="email"] {
            padding-right: 15px;
        }
        .newsletter-signup input[type="submit"] {
            right: 15px;
        }
        .roadblock input.post-code {
            width: calc(30% - 35px);
        }

        /* Front page Featured */
        .featured-home {
            -webkit-flex-direction: column;
            flex-direction: column;
            -webkit-align-items: center;
            align-items: center;
        }
        .featured-home .block-fullbleed {
            margin-bottom: 0;
            width: calc(100% - 40px);
        }
        .featured-home .block-landscape {
            padding: 10px 20px 20px;
            margin: 10px 0;
            width: calc(100% - 60px);
        }

        /* Front Page Sections */
        .home .section h3 {
            font-size: 54px;

            -webkit-transform: translateY(40px);
            transform: translateY(40px);
        }

        /* Categories */
        .category #content {
            margin-top: 0;
        }
        /*.category #content > .ad:first-child {
            display: none;
        }*/
        .category .featured-wrap {
            padding-top: 0;
            margin-top: 0;

            -webkit-flex-direction: column;
            flex-direction: column;
        }

        /* Archive */
        #content .divider {
            margin: 0 auto 0;
        }
        .archive-wrap .halfpage,
        .archive-wrap .halfpage_top {
            display: none;
        }
        .archive-wrap .block-grid {
            width: 100%;
        }
        .category .archive-wrap .meta {
            margin-bottom: 20px;
        }
        .category .archive-wrap .line-1 {
            font-size: 31px;
        }
        .category .archive-wrap .line-2 {
            font-size: 22px;
        }
        .category .archive-wrap .teaser {
            display: none;
        }

        /* Issues */
        .template-culture .featured-wrap .block-fullbleed {
            width: calc(100% - 20px);
            margin: 10px auto 0;
        }
        .template-culture .featured-wrap .block-standard {
            margin: 10px 10px 0;
        }

        /* Features */
        .template-features .block-headline {
            margin-top: 0
        }
        .template-features .archive-wrap .block {
            width: calc(100% - 20px);

            display: -webkit-flex;
            display: flex;
            -webkit-flex-direction: column;
            flex-direction: column;
        }
        #content.template-features .divider {
            margin-top: 10px;
        }
        .template-features .block-grid > .block:first-child {
            padding-top: 0;
        }

        /* The Local */
        .category-the-local .featured-wrap {
            padding-top: 0;
        }
        .category-the-local .featured-wrap .block {
            width: calc(100% - 20px);
            margin-bottom: 10px;
        }
        .video-block-wrap {
            width: 100%;
        }
        .block.video {
            padding: 0;
            height: initial;
        }
        .block.video .meta-wrap {
            position: static;
        }
        .video.block-fullbleed .title {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            margin: 0;

            -webkit-justify-content: center;
            justify-content: center;
        }
        .category-the-local .block.video .svg {
            margin-top: 20px;

            -webkit-order: 1;
            order: 1;
        }

        /* Next Door */
        .category-next-door .featured-wrap .block {
            margin-bottom: 10px;
            height: initial;
            width: calc(100% - 40px);
        }
        .category-next-door .slideshow {
            width: calc(100% - 20px);
            margin: 10px;
        }
        .slideshow .block {
            padding-bottom: 10px;
        }
        .category-next-door .featured-wrap {
            margin-top: 10px;
        }
        .category-next-door #content > h3 {
            margin: 0 10px;
        }

        /* Footpath */
        #content.category-footpath {
            margin: 10px 10px 0;
        }
        .block-footpath {
            width: calc(100% - 20px);
            margin: 0 0 10px;
        }
        .category-footpath .image-wrap .title,
        .category-footpath .image-wrap .label {
            display: none;
        }

        /* Single */
        #content.single {
            padding: 0;
        }
        .single .title .line-1 {
            font-size: 36px;
        }
        .single .title .line-2 {
            font-size: 24px;
        }
        .single .featured-image,
        .single .post > .meta,
        .single .entry-wrap {
            margin: 0 35px;
        }
        .single .entry-wrap {
            min-height: 0;
        }
        .single .location-meta {
            position: static;

            -webkit-flex-direction: column;
            flex-direction: column;
        }
        .single .location-meta address,
        .single .location-meta .contact-info {
            text-align: center;
        }
        .single .featured-image .caption {
            margin: 10px;
        }
        .post-nav-wrap {
            margin: 0 57px;
        }
        .post-nav-wrap .prev,
        .post-nav-wrap .next {
            padding-bottom: 30px;
        }
        .single .featured-video {
            position: relative;
            width: calc(100% - 70px);
            margin: 0 35px;
            margin-bottom: 10px;
        }
        .single .post-credits {
            font-size: 14px;

            -webkit-align-items: center;
            align-items: center;
            -webkit-flex-direction: column;
            flex-direction: column;
        }
        .single .post-credits .author {
            margin-bottom: 10px;
        }
        .single .sidebar {
            display: none;
        }
        .single .entry,
        .fallback .entry {
            width: 100%;
            min-height: 0;
        }
        .single .entry-wrap:not(.no-text) .entry {
            width: 100%;
        }
        .single .entry > p:not(:first-of-type) {
            margin: 0 0 30px;
        }
        .single .gallery .browse.prev {
            text-align: left;
        }
        .single .gallery .browse.next {
            text-align: right;
        }
        .single .gallery .caption {
            width: initial;
            max-width: 70%;
        }
        .recommendations {
            width: 100%;
            left: 0;
        }
        .recommendations h3 {
            font-size: 31px;
        }

        /* About & Contact */
        .about .headline h2,
        .contact .section h3 {
            font-size: 48px;
            margin-bottom: 20px;
        }
        .entry-about .content-wrap p {
            display: none;
        }
        .about .headline h3 {
            font-size: 14px;
        }
        .about-main {
            margin: 0 15px;
            font-size: 14px;
        }
        .contact .person,
        .contact .team .person {
            font-size: 14px;
            width: 100%;
        }

        /* Newsletter signup */
        .signup-display {
            width: 100%;
            box-sizing: border-box;

            -webkit-flex-direction: column;
            flex-direction: column;
        }
        .signup-display .image {
            width: 100%;
            padding-bottom: 56.25%;
        }
        .signup-display .text-wrap {
            width: 100%;
            box-sizing: border-box;
        }

        /* Mobile ad */
        .mobilefooter,
        .article_mobilefooter {
            display: block;
            position: fixed;
            bottom: 0;
            right: 0;
            left: 0;
        }

        /* Ad placeholder */
        .placeholder {
            display: none !important;
        }

        /* Transitions */
        .main-menu-wrap {
            transition: max-height 0.4s, padding 0.4s;
        }


    }
