/** ============= MIN-WIDTH media queries ========== **/
@media (min-width: 960px) {
    .main__section__carousel-content .splide__slide__content.has-image p {
        padding-left: 3rem;
    }
    .main__section__work-for .logos {
        -ms-flex-preferred-size: 65%;
        flex-basis: 65%;
    }
    .main__section__work-for .logos .inner {
        max-width: 960px;
        padding: 60px 50px 60px 20px;
    }
    .main__section__work-for .testimonials {
        -ms-flex-preferred-size: 35%;
        flex-basis: 35%;
    }
    .main__section__work-for .logos__grid figure {
        -ms-flex-preferred-size: 21%;
        flex-basis: 21%;
    }
}

@media (min-width: 768px) {
    .main__section__column-3.thin-gaps .column {
        -ms-flex-preferred-size: 32.3%;
        flex-basis: 32.3%;
    }
}


/** ============= MAX-WIDTH media queries ========== **/

/* Push behind the main block on medium screens */
@media (max-width: 1580px) {
    .side-image {
        z-index: -1;
    }
    #interactive-header .element,
    #what-we-do .element {
        max-width: 100%;
    }
}

@media (max-width: 1120px) {
    .main__section__carousel-bullet .carousel-bullet .splide__slide__image {
        -ms-flex-preferred-size: 220px;
        flex-basis: 220px;
    }
    .main__section__carousel-bullet .carousel-bullet .splide__slide__body {
        flex-basis: 40%;
        margin-top: 0;
    }
    .carousel-bullet .splide__slide__image > img {
        width: 220px;
        height: auto;
    }
    footer .flex--footer .column--2 .inner {
        margin-left: 0px;
    }
}
@media (max-width: 960px) {
    .main__section__collapse-content .title button {
        top: 17px;
    }
    .main__section__work-for .testimonials .inner {
        padding: 20px;
    }
    .hamburger-label {
        display: none;
    }
    .hamburger-box {
        display: inline-block;
    }
    .featured-wrapper .inner {
        flex-direction: column;
        align-items: center;
    }
    footer .flex--footer .column--1 {
        display: none;
    }
    footer .flex--footer .column--2 {
        display: none;
    }
    footer .flex--footer .column--3 {
        flex-basis: 100%;
        margin-left: 0;
        margin-top: 2rem;
        order: 3;
    }
    footer .flex--footer .column--3 .inner .social{
        justify-content: center;
    }
    footer .flex--footer .column--3 .inner .social .social__item a:before{
        width: 50px;
        height: 50px;
        line-height: 50px;
    }
    footer .flex--footer .column--4 {
        flex-basis: 100%;
        margin-left: 0;
        margin-top: 0;
        order: 2;
    }
    footer .flex--footer .column--4 .inner {
        text-align: center;
    }
    footer .flex--footer .column--4 .inner h6 {
        font-size: 30px;
        font-weight: 700;
        line-height: 50px;
    }
    footer .flex--footer .column--5 {
        flex-basis: 100%;
        margin-left: 0;
        margin-top: 0;
        order: 1;
    }

    footer .flex--footer .column--5 .footer-navigation {
        text-align: center;
    }
    .column--5 .footer-navigation ul li a {
        font-size: 30px;
        font-weight: 700;
        line-height: 50px;
    }
    footer .flex--footer .column--6 {
        flex-basis: 100%;
        order: 6;
        margin-top: 1rem;
    }
    footer .flex--footer .column p {
        text-align: center;
    }
    footer .flex--footer .column--7 {
        flex-basis: 100%;
        order: 5;
        margin-top: 4rem;
    }
    .footer-navigation ul li a {
        font-size: 18px;
        line-height: 20px;
    }
    .side-images {
        display: none;
    }
    .main__section__work-for .inner-container {
        max-width: 90%;
        display: grid;
    }
    .featured-testimonial {
        max-width: 100%;
    }
    #work-for .main__section__work-for .title {
        text-align: center;
        font-size: 28px;
        margin: 3rem 0;
    }
}
@media (max-width: 800px) {
    .main__section__carousel-bullet .carousel-bullet {
        height: auto;
    }
    .main__section__carousel-bullet .splide__slide {
        height: auto;
    }
    .main__section__carousel-bullet .carousel-bullet .splide__slide__body {
        flex-basis: 100%;
        margin-top: 1rem;
    }
    .carousel-bullet .splide__slide__image > img {
        width: 180px;
        height: auto;
    }
    .main__section__carousel-bullet .carousel-bullet .splide__slide__number {
        -ms-flex-preferred-size: 100px;
        flex-basis: 100px;
        font-size: 154px;
        line-height: 1;
    }
    .main__section--bullet-carousel .pt--l {
        padding-top: 40px;
    }
    .featured-wrapper .inner .featured-logo {
        display: none;
    }
    .carousel-arrow {
        display: none;
    }
    .logo-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    .hamburger {
        padding: 12px 12px;
        height: 60px;
        width: 60px;
    }
    .hamburger-bun {
        top: 20px;
        right: 20px;
        z-index: 11;
    }
    .card--work {
        margin-bottom: 0;
    }
    .main__section__listings .listings__cards--work .card--work {
        margin-bottom: 2rem;
    }
    .main__section__work-for .testimonials h5 {
        margin-bottom: 40px;
    }
    .main__section__work-for .testimonials .splide__slide .content__author {
        margin-bottom: 0;
    }
    .main__section__banner-video__caption-overlay {
        top: 200px;
        bottom: auto;
    }
    body #banner-video a.button--more {
        font-size: 18px !important;
        line-height: 24px !important;
    }
    #want-to-work-with-us h4.h1-margin-bottom-medium {
        margin-bottom: 0px;
        text-align: left !important;
    }
    .main__section__image-text figure.image,
    .main__section__text-image figure.image {
        width: 80% !important;
    }
    .pb--l {
        padding-bottom: 40px;
    }
    .pt--l {
        padding-top: 40px;
    }
    .card--featured--post .card__header h3 {
        font-size: 26px;
        line-height: 32px;
    }
    .draw-nav {
        padding-top: 60px;
        z-index: 2;
    }
    .draw-nav .wrap.flex {
        width: 90%;
    }
    #menu-primary-menu.draw-nav__menu.is-open > li > a {
        opacity: 0;
    }
    .draw-nav__menu__submenu {
        align-content: flex-start;
    }
    .draw-nav__menu__submenu.is-open {
        left: 0;
    }
    .draw-nav__menu__submenu .draw-nav__menu__item a {
        font-size: 32px;
        line-height: 36px;
    }
    .draw-nav__menu {
        margin-bottom: 3rem;
    }
    .latest--post .latest__featured .card__content,
    .card--featured--post .card__content {
        padding-top: 20px;
    }
    .card--featured--post .card__header__meta {
        font-size: 13px;
        margin-bottom: 6px;
    }
    .latest--post .latest__featured .card__header h3,
    .card--featured--post .card__header h3 {
        font-size: 26px;
        line-height: 32px;
    }
    .latest__posts .card__image,
    .card--post .card__image {
        flex-basis: 50%;
    }
    .latest--post .latest__posts .card__content,
    .card--post .card__content,
    .studio-blog .card--post .card__content {
        flex-basis: 40%;
        padding-right: 0;
    }
    .card--post .card__header__meta {
        font-size: 10px;
        line-height: 12px;
        margin-bottom: 5px;
    }
    #latest-blog .latest__posts .card__header h3,
    .studio-blog .card--post .card__content h3 {
        font-size: 16px;
        line-height: 20px;
    }
    .card__footer__meta {
        font-size: 10px;
        line-height: 12px;
    }
    body #our-work .h1--subheading,
    body #banner h1 {
        font-size: 32px;
        line-height: 36px;
    }
    body .h1-margin-bottom-medium, body .h2-margin-bottom-medium, body .h3-margin-bottom-medium, body .h4-margin-bottom-medium, body .h5-margin-bottom-medium, body .h6-margin-bottom-medium, body .p-margin-bottom-medium {
        margin-bottom: 24px;
    }
    .main__section__column-3 .column, .main__section__column-4 .column {
        margin-bottom: 1rem;
    }
    .home .main__section__carousel-bullet .carousel-bullet .splide__track {
        min-height: 510px;
    }
    #nf-field-32-wrap .nf-field-element h2,
    #nf-field-48-wrap .nf-field-element h2 {
        padding-right: 0;
        font-size: 36px;
        line-height: 1.2;
    }
    .nf-form-cont .nf-form-content .label-above .nf-field-label {
        height: 36px;
    }
    #interactive-header .slogan p {
        padding-left: 20px;
        font-size: 22px;
    }


}
@media (max-width: 480px) {
    .home .header__main > .wrap {
        justify-content: left;
    }
    .home .header__main__logo .inner {
        max-width: 130px;
    }
    .home .header__main__logo .inner a {
        padding: 44px 20px;
    }

    #interactive-header {
        background: url("../images/static-header.png") no-repeat left center;
        background-size: cover;
    }

    .header__text h1 {
        font-size: 56px;
        letter-spacing: 0;
    }
    .header__text .slogan {
        padding: 0 20px;
        text-align: left;
        width: 100%;
    }
    .label-above .nf-field-element, .label-below .nf-field-element {
        max-width: 100%;
    }
    a.download-link {
        font-size: 16px;
    }
    #banner-video .banner-video-overlay .wrap {
        padding: 20px;
    }
    .nav-is-open .header__main__logo {
        display: none;
    }
    #banner.grid-container > .elements.padding,
    #our-work.grid-container > .elements.padding {
        padding-top: 100px !important;
    }
    footer .column--5 {
        flex-basis: 100%;
    }
    .main--design #banner,
    .main--branding #banner,
    .main--websites #banner,
    .main--web-products #banner	{
        min-height: 270px;
    }
    .main--design #banner .banner-image,
    .main--branding #banner .banner-image,
    .main--websites #banner .banner-image,
    .main--web-products #banner .banner-image	{
        min-height: 200px;
        background-size: contain;
    }
    #testimonials blockquote {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    #testimonials .main__section__carousel-content .splide__slide__content {
        padding-left: 20px;
    }
    .main__section__carousel-gallery .carousel-gallery .splide__track {
        min-height: 270px;
    }
    .home .main__section__carousel-bullet .carousel-bullet .splide__track {
        min-height: 510px;
    }
    .main__section__carousel-bullet .carousel-bullet .splide__slide__image {
        -ms-flex-preferred-size: 200px;
        flex-basis: 200px;
    }
    body h4 {
        font-size: 21px;
    }
    .main__section__image-text figure.image, .main__section__text-image figure.image {
        width: 100% !important;
    }
    div.text {
        padding-bottom: 2rem !important;
    }
    #what-we-do .services {
        padding: 0;
    }
    #what-we-do .services a {
        font-size: 20px;
        padding: 1rem;
    }
    #recent-work .main__section__heading {
        justify-content: left;
    }
    #recent-work .latest__posts .card__header {
        display: none;
    }
    #recent-work .mobile--only {
        display: block;
        width: 100%;
        background: #AFEFD8;
        border: none;
        margin: 0;
        text-align: left;
        font-weight: 700 !important;
        font-size: 22px !important;
    }
    #recent-work .mobile--only a:after {
        float: right;
    }

    #recent-work .desktop {
        display: none;
    }
    .logo-item {
        max-width: 7rem;
        margin: 10px;
        opacity: 1;
        pointer-events: none;
    }
    #work-for .mobile--only {
        display: block;
        margin: 1rem 0;
    }
    .featured-wrapper {
        display: none;
    }

    /* Latest Blog Section */
    .home #latest-blog {
        padding-top: 140px;
        margin-bottom: 0;
    }
    #latest-blog .latest__featured {
        display: none;
    }
    #latest-blog .latest__posts .card {
        margin-bottom: 15px;
    }
    #latest-blog .latest__posts .card__header__meta {
       font-size: 14px;
    }
    #latest-blog .latest__posts .card__header__meta .category {
       display: none;
    }
    #latest-blog .latest__posts .card__header h3 {
        font-size: 20px;
        line-height: 24px;
    }
    #latest-blog .latest__posts .card__content {
        flex-basis: 50%;
    }
    #latest-blog .latest__posts .card__footer {
        display: none;
    }
    #latest-blog .desktop {
        display: none;
    }
    #latest-blog .mobile--only {
        display: block;
        margin: 1rem 0;
        background: #000;
        text-align: left;
        color: white !important;
        font-size: 22px !important;
        font-weight: 700 !important;
    }
    #latest-blog .mobile--only a:after {
        float: right;
    }

    /* Why We Are A Coop Section */
    #why-were-a-co-op .main__section__text-image figure.image {
        width: 100% !important;
    }
    #why-were-a-co-op .elements {
        margin-bottom: -40px;
    }
    #why-were-a-co-op .elements .image {
        padding: 0 !important;
    }
    #why-were-a-co-op .mobile--only {
        display: inline-block;
        width: 100%;
        background-color: black;
        border: none;
        margin-bottom: -10px;
        margin-top: -30px;
        font-size: 22px !important;
        text-align: left;
        height: 55px;
    }
    #why-were-a-co-op .mobile--only:after {
        float: right;
    }
    #why-were-a-co-op .more-link.desktop {
        display: none;
    }
    #why-were-a-co-op .main__section__text-image figure.image {
        margin-bottom: 0;
    }
    #why-were-a-co-op .coop-section h4 {
        font-size: 36px;
    }
    #why-were-a-co-op .coop-section h4 + p {
        margin-bottom: 0;
    }

    /* Footer */
    .footer__content .column img,
    .footer__content .column object {
        height: 50px;
    }
    footer .column--6 .inner p .copyright {
        margin-right: 0;
    }
}
