/*
 * 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
 *
 Suffixes:
	 * -c: cinema (>1800)
     * -d: desktop (>1400)
	 * -n: notebook (<1200px)
	 * -m: mobile (<750)
     * -i: ipad
 Table of Contents
     1.0 - Globals
         1.1 - Links
         1.2 - Utilities
 		1.3 - Zoomhaus
     2.0 - Header
 		2.1 - Dark BG
 		2.2 - Scrolled Down
 		2.3 - Close Button
     3.0 - Home
         3.1 - Landing Page
 		3.2 - Social Links
 		3.3 - More Posts Link (teaser)
     4.0 - Work Grid
         4.1 - Work Block
 		4.2 - Load-More Teaser
 		4.3 - Overlay player
 	5.0 - Work Detail
 		5.1 - Stage
 		5.2 - Meta
 		5.3 - Teasers
 	6.0 - Campaign Detail
 		6.1 - Stage
 		6.2 - Campaign Body
 		6.3 - Gallery
 	7.0 - Color Grid
 		7.1 - Color Bio
 	8.0 - Reel Grid
 		8.1 - Reel Player
 		8.2 - Multi-Artist Reel
 	9.0 - Blog
 	10.0 - Single
 	11.0 - Contact
 		11.1 - Map Block
 		11.2 - Careers
 		11.3 - Hiring Form
 		11.4 - Work At Carbon button
    12.0 - Credits Section
 */

/*
 * Breakpoints
 */
/* Cinema Display and larger */
@media (min-width: 1800px) {
  /* 2.3c - Close Button */
  #header .close {
    top: 8px;
  }
  .has-campaign #header .close .svg * {
    fill: #ffffff;
  }

  /* 3.1c - Landing */
  .landing .content-wrap {
    max-width: 1200px;
  }
  .landing .logo.svg {
    width: 180px;
    height: 170px;
  }
  .landing .entry h2 {
    font-size: 50px;
  }
  .landing .entry {
    font-size: 24px;
  }

  /* 4.0c - Work Grid */
  body .work-grid:not(#content) {
    max-width: 1800px;
  }

  /* 4.1c - Work Block */
  .work-block {
    height: 550px;
  }
  .work-block .title-wrap {
    font-size: 24px;
  }
  .work-block .title-wrap .client {
    margin-bottom: 10px;
  }
  .work-block .title-wrap .title {
    font-size: 36px;
  }
  .work-block .icon-wrap a span {
    font-size: 24px;
  }
  .work-block .icon-wrap .eye {
    top: 0;
  }

  /* 5.2c - Meta */
  .work-detail .meta {
    font-size: 16px;
  }
  .work-detail .title {
    font-size: 26px;
  }

  /* 6.2c - Campaign Body */
  .campaign-body {
    font-size: 18px;
  }

  /* 10.0c - Single */
  .single h1 {
    font-size: 45px;
  }
  .single .entry > * {
    font-size: 18px;
  }
}

@media (min-width: 1100px) {
  /* 2.0n - Header */
  #header nav a {
    font-size: 18px;
  }
}

/* Smaller than Desktop HD */
@media (max-width: 1100px) {
  /* 7.1n - Color Bio */
  .bio-content {
    -webkit-flex-direction: column;
    flex-direction: column;
  }
  .bio-content > .attachment-fullscreen {
    margin-right: 0;
    margin-bottom: 45px;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  /* 2.0l - Header */
  #header {
    padding: 0 25px;
    height: 70px;
  }
  #header .header-content-wrap {
    position: static;
  }
  .scrolled-down-full #header,
  .scrolled-down:not(.work-detail) #header {
    height: 50px;
  }
  #header #logo .svg {
    height: 50px;
  }
  body:not(.scrolled-down) #header #logo {
    top: 8px;
    left: 20px;
  }
  .work-detail:not(.scrolled-down-full) #header #logo {
    top: 13px;
  }
  .hamburger-opened #header {
    background-color: #ffffff !important;
  }
  .hamburger-opened #header #logo .svg * {
    fill: #2a6172 !important;
  }
  .hamburger-opened .hamburger-wrap .breadcrumb {
    color: #2a6172;
  }
  #header nav {
    display: none;
  }
  /*.scrolled-down-full #logo .design {
            -webkit-transform: translate(-16px, 19px);
    		transform: translate(-16px, 19px);
        }
        #logo .name {
            opacity: 0;
        }*/

  /* 2.0l - Header */
  #header .menu-work-menu-container {
    top: 87px;
    right: 20px;
  }
  #header .menu-main-menu-container {
    top: 50px;
    right: 20px;
  }
  .scrolled-down #header .menu-main-menu-container {
    top: 28px;
  }
  #header nav ul {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
  }
  #header nav li + li {
    margin-left: 8px;
  }
  #header nav a {
    font-size: 12px;
  }

  /* 2.4 - Hamburger */
  .hamburger-wrap {
    display: block;
  }
  .work-detail.hamburger-opened .breadcrumb,
  .single.hamburger-opened .breadcrumb {
    -webkit-transform: translateX(32px);
    transform: translateX(32px);
  }
  .work-detail.hamburger-opened #hamburger,
  .single.hamburger-opened #hamburger {
    -webkit-transform: translateX(32px);
    transform: translateX(32px);
  }
  .hamburger-opened #hamburger span {
    background-color: #2a6172;
  }
  .hamburger-menu-wrap {
    display: -webkit-flex;
    display: flex;
  }
  .hamburger-menu-wrap .social-links {
    display: block;
    padding-top: 18px;
    background-color: white;
    opacity: 1;
  }
  .hamburger-menu-wrap .social-links a {
    opacity: 1;
  }

  /* 5.0l - Work Detail */
  #content.work-detail {
    margin-bottom: 10px;
  }
  .work-detail .video-wrap {
    height: initial !important;
    width: calc(100% - 50px) !important;
  }
  .work-detail #header {
    padding: 0 15px;
  }
  .work-detail:not(.scrolled-down-full) #header {
    height: 80px;
  }
  .work-detail.scrolled-down-full #header {
    height: 50px;
  }
  .work-detail:not(.scrolled-down-full) #logo {
    -webkit-transform: none;
    transform: none;
  }
  .work-detail.scrolled-down-full #header #logo {
    top: 0;
  }
  .work-detail.scrolled-down-full #logo .design {
    -webkit-transform: translate(0, 19px);
    transform: translate(0, 19px);
  }
  .work-detail.scrolled-down-full .breadcrumb {
    top: 18px;
  }
  .work-detail #header .close,
  .work-detail:not(.scrolled-down-full) #header .close,
  .single .close {
    padding: 8px;
    right: 8px;
    top: 26px;
  }
  .work-detail.scrolled-down-full #header .close {
    top: 10px;
  }
  .close .svg {
    width: 18px;
    height: 18px;
  }
  .work-detail .close .svg path,
  .single .close .svg path {
    stroke: #ffffff;
    stroke-width: 1px;
  }
  .campaign-arrow {
    bottom: initial;
    font-size: 12px;
    position: static;
    padding: 25px 0;
  }

  /* 5.1l - Stage */
  .work-detail .stage {
    position: relative;
    top: 0;
    right: 0;
    left: 0;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
  }

  /* 5.2l - Meta */
  .work-detail .meta-wrap {
    position: static;
  }
  .work-detail .meta {
    font-size: 12px;
    position: relative;
    top: 0;

    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: initial;
    align-items: initial;
  }
  .work-detail .title-wrap {
    text-align: center;
  }
  .work-detail .title {
    font-size: 20px;
  }
  .work-detail .credits-wrap {
    text-align: center;
    margin-top: 15px;
  }

  /* 5.3l - Teaser */
  .teaser {
    width: 80vw;

    -webkit-transform: translateX(-80vw);
    transform: translateX(-80vw);
  }
  .teaser.next {
    -webkit-transform: translateX(80vw);
    transform: translateX(80vw);
  }
  .hamburger-opened .peek {
    display: none;
  }
  .teaser .peek {
    padding: 20px 8px;
    width: 10px;
  }
  .teaser .peek .svg {
    width: 8px;
    height: 19px;
  }

  /* 6.2l - Campaign Body */
  .campaign-body {
    top: initial;
    padding: 25px;
  }
  .campaign-body .entry > * {
    margin: 25px 0;
  }
  .campaign-body .entry p {
    margin: 25px auto;
  }

  /* 6.3l - Gallery */
  body:not(.contact) .gallery {
    display: block;
  }
  body:not(.contact) .gallery + .gallery {
    margin-top: 5px;
  }
  body:not(.contact) .gallery .gallery-item {
    width: 100%;
  }

  /* 10.0l - Single */
  .single.scrolled-down-full #hamburger {
    top: 4px;
  }
  .single .close {
    top: 18px;
    right: 20px;
  }
  .single .close .svg path {
    stroke: #2a6173;
  }
  .single.scrolled-down-full .close {
    top: 10px;
  }
  .hamburger-opened .close {
    display: none;
  }

  /* Combined with <780px breakpoint */

  /* 1.0m - Globals */
  body:not(.has-landing):not(.color-grid) main {
    padding-top: 70px;
  }

  /* 3.1m - Landing */
  .landing .video-wrapper video {
    height: 100%;
    min-height: initial;
  }
  .landing .entry h2 {
    font-size: 20px;
    line-height: 1.3;
  }
  .landing .content-wrap {
    font-size: 14px;
    padding: 0 10px;
  }

  /* 4.0m - Work Grid */
  body .work-grid:not(#content) {
    padding: 0 20px;
    width: calc(100% - 40px);
  }

  /* 4.1m - Work Block */
  .work-block {
    border: 2.5px solid #ffffff;
    width: 100% !important;
  }
  .work-block .block-content-wrap {
    width: 100%;
    height: 100%;
  }
  .work-block .title-wrap .client {
    font-size: 12px;
  }
  .work-block .title-wrap .title {
    font-size: 18px;
  }
  .work-block.has-campaign .icon-wrap a:first-child {
    display: none !important;
  }
  .work-block.has-campaign .icon-wrap a:nth-child(2) {
    width: 100%;
    height: 100%;
    padding: 0;
  }
  .work-block .bg-logo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
  }

  /* 4.3m - Overlay Player */
  .overlay-player .close {
    right: 0;
  }
  .overlay-player .stage {
    right: 20px;
    left: 20px;
  }

  /* 5.0m - Work Detail */
  .single #header .close {
    top: 19px;
    right: 20px;
  }
  .single.scrolled-down-full #header .close {
    top: 10px;
  }
  .single #header .close .svg {
    width: 18px;
    height: 18px;
  }

  /* 8.0m - Reel Grid */
  .reel-grid #header .menu-main-menu-container {
    top: 38px;
  }
  .reel-grid .close {
    right: 10px;
  }
  .reel-grid .pager {
    -webkit-flex-direction: column;
    flex-direction: column;
  }
  .reel-grid .pager button {
    padding: 5px 20px;
  }
  .reel-grid .pager button + * {
    margin: 0 auto;
  }

  /* 8.1m - Reel Player */
  .reel-player .stage {
    width: calc(100% - 40px);
  }
  .reel-player button.nav {
    width: 10px;
    padding: 10px 0;
  }
  .reel-player .nav .svg {
    width: 5px;
    height: 19px;
  }

  /* 8.2m - Multi-Artist Reel */
  .colorist-list {
    position: absolute;
    top: 0;
    left: 50%;

    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
  .colorist-wrap {
    text-align: center;
  }

  /* 9.0m - Blog */
  .post-grid {
    margin: 0 20px 90px 25px;
  }
  .blog .post-block {
    width: 100%;
  }

  /* 10.0m - Single */
  .single #logo {
    top: 25px;
    left: 25px;
  }
  .single.scrolled-down-full #logo {
    top: 0;
  }
  .single #header .menu-main-menu-container {
    top: 78px;
  }
  .single.scrolled-down #header .menu-main-menu-container {
    top: 28px;
  }
  .single h1 {
    padding: 0 20px;
    font-size: 24px;
    margin-bottom: 25px;
  }
  .single .entry {
    padding: 0 25px;
  }
  .single .entry > * {
    margin: 30px auto;
    line-height: 1.8;
    font-size: 12px;
  }
  .single .entry .attachment-post-thumbnail {
    margin-bottom: 0;
  }
  .single .entry h3 {
    font-size: 20px;
  }
  .teaser-prev-active article {
    -webkit-transform: translateX(80vw);
    transform: translateX(80vw);
  }
  .teaser-next-active article {
    -webkit-transform: translateX(-80vw);
    transform: translateX(-80vw);
  }
  .teaser.opened {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  .teaser .label {
    width: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
  }
  .teaser .close-teaser {
    display: inline-block;
    position: relative;
    padding: 0 10px;
  }
  .teaser.next .close-teaser {
    right: 10px;
  }
  .teaser.prev .close-teaser {
    left: 10px;
  }
  .teaser .close-teaser * {
    fill: #ffffff;
  }

  /* 11.0m - Contact */
  #content.contact {
    padding: 0 25px;
  }
  .contact .column {
    width: 100%;
    margin-bottom: 0;
  }
  .map-block {
    margin-bottom: 35px;
  }
  .contact .column p {
    margin: 35px auto;
  }

  /* 11.2m - Careers */
  .careers article {
    padding: 0 25px;
  }
  #content .column:nth-child(1) {
    -webkit-order: 1;
    order: 1;
  }
  #content .column:nth-child(2) {
    -webkit-order: 3;
    order: 3;
  }
  #content .column:nth-child(3) {
    -webkit-order: 5;
    order: 5;
  }
  #content .column:nth-child(4) {
    -webkit-order: 2;
    order: 2;
  }
  #content .column:nth-child(5) {
    -webkit-order: 4;
    order: 4;
  }
  #content .column:nth-child(6) {
    -webkit-order: 6;
    order: 6;

    margin-bottom: 0;
  }
  .careers .entry {
    margin-bottom: 25px;
  }
  .careers .gallery {
    margin-bottom: 35px;
  }
  .careers form {
    padding: 25px 25px 70px;
  }
  .careers form h1 {
    margin-bottom: 35px;
  }
  .careers .form-content .main-fields {
    flex-wrap: nowrap;
    flex-direction: column;
  }
  .careers .form-content .main-fields .field {
    width: 100%;
  }
  .careers .job-title {
    margin-top: 35px;
  }
  .contact .careers form .field {
    width: 100%;
    margin: 0;
  }
  .contact .social-links {
    padding-top: 0;
    margin-bottom: 15px;
  }

  /* 12.0m - Credits Section */
  .credits-section .credits-content {
    transform: translateX(-30px);
  }
  .credits-section .credits-content .inner-wrap {
    display: block;
    text-align: center;
  }
  .credits-section .credits-content .inner-wrap > div {
    max-width: 100%;
  }

  .post-grid .social-links,
  .campaign-body .social-links,
  .work-grid-wrap .social-links {
    display: none;
  }
}

@media (min-height: 500px) {
  .landing .content-wrap .logo {
    top: 100px;
  }
  .landing .entry {
    padding-top: 205px;
  }
}

/* iPad */
@media only screen and (min-device-width: 950px) and (max-device-width: 1024px) {
  /* 2.0i - Header */
  #header {
    padding: 0 25px;
    height: 120px;
  }
  #header .menu-work-menu-container {
    top: 87px;
    right: 65px;
  }
  #header .menu-main-menu-container {
    top: 50px;
    right: 65px;
  }
  .scrolled-down #header .menu-main-menu-container {
    top: 28px;
  }
  .is-mobile #header nav ul {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
  }
  #header nav li + li {
    margin-left: 12px;
  }
  #logo {
    left: 65px;
  }

  /* 4.1i - Work Block */
  .work-block.has-campaign .icon-wrap a:first-child {
    width: 100%;
    height: 100%;
    padding: 0;
  }
  .work-block.has-campaign .icon-wrap a:first-child span {
    display: none !important;
  }
  .work-block.has-campaign .icon-wrap a:last-child {
    display: none;
  }

  /* 5.0i - Work Detail */
  .work-detail #logo {
    left: 0;
  }
  .work-detail #header .menu-main-menu-container {
    top: initial;
  }

  /* 8.0i - Reel Grid */
  .reel-grid #header .menu-main-menu-container {
    top: 38px;
  }
  .reel-grid #logo {
    top: 10px;
    left: 10px;
  }
  .reel-grid .pager {
    -webkit-flex-direction: column;
    flex-direction: column;
  }
  .reel-grid .pager button {
    padding: 5px 20px;
  }
  .reel-grid .pager button + * {
    margin: 0 auto;
  }

  /* 8.1i - Reel Player */
  .reel-player .stage {
    width: calc(100% - 40px);
  }
  .reel-player button.nav {
    width: 10px;
    padding: 10px 0;
  }
  .reel-player .nav .svg {
    width: 5px;
    height: 19px;
  }

  /* 8.2i - Multi-Artist Reel */
  .colorist-list {
    position: absolute;
    top: 0;
    left: 50%;

    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
  .colorist-wrap {
    text-align: center;
  }
}
