@font-face {
  font-family: "AkzidenzGrotesk";
  src: url("../fonts/akzidenzgrotesk-light-webfont.eot");
  src: url("../fonts/akzidenzgrotesk-light-webfont.eot?#iefix") format('embedded-opentype'), url("../fonts/akzidenzgrotesk-light-webfont.woff") format('woff'), url("../fonts/akzidenzgrotesk-light-webfont.ttf") format('truetype'), url("../fonts/akzidenzgrotesk-light-webfont.svg") format('svg');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "AkzidenzGrotesk";
  src: url("../fonts/akzidenzgrotesk-bold-webfont.eot");
  src: url("../fonts/akzidenzgrotesk-bold-webfont.eot?#iefix") format('embedded-opentype'), url("../fonts/akzidenzgrotesk-bold-webfont.woff") format('woff'), url("../fonts/akzidenzgrotesk-bold-webfont.ttf") format('truetype'), url("../fonts/akzidenzgrotesk-bold-webfont.svg") format('svg');
  font-weight: bold;
  font-style: normal;
}
/* ==========================================================================
 * Grid
 * ========================================================================== */
.container {
  *zoom: 1;
  max-width: 620px;
  _width: 620px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.container:after {
  content: "";
  display: table;
  clear: both;
}
@media (min-width: 480px) and (max-width: 979px) {
  .container {
    max-width: 620px;
  }
}
@media (min-width: 980px) and (max-width: 1299px) {
  .container {
    max-width: 940px;
  }
}
@media (min-width: 1300px) {
  .container {
    max-width: 1260px;
  }
}

@media (min-width: 480px) and (max-width: 979px) {
  .col {
    width: 48.3871%;
    float: left;
    margin-right: 3.22581%;
  }
  .col:nth-child(2n) {
    float: right;
    margin-right: 0;
  }
}
@media (min-width: 980px) and (max-width: 1299px) {
  .col {
    width: 30.43478%;
    float: left;
    margin-right: 4.34783%;
  }
  .col:nth-child(3n) {
    float: right;
    margin-right: 0;
  }

  .col {
    width: 31.91489%;
    float: left;
    margin-right: 2.12766%;
  }
  .col:nth-child(3n) {
    float: right;
    margin-right: 0;
  }

  .half, .home .\#main > .type-project {
    width: 48.93617%;
    float: left;
    margin-right: 2.12766%;
  }
  .half:nth-child(2n), .home .\#main > .type-project:nth-child(2n) {
    float: right;
    margin-right: 0;
  }
}
@media (min-width: 1300px) {
  .col {
    width: 23.80952%;
    float: left;
    margin-right: 1.5873%;
  }
  .col:nth-child(4n) {
    float: right;
    margin-right: 0;
  }

  .half, .home .\#main > .type-project {
    width: 49.20635%;
    float: left;
    margin-right: 1.5873%;
  }
  .half:nth-child(2n), .home .\#main > .type-project:nth-child(2n) {
    float: right;
    margin-right: 0;
  }
}
/* ==========================================================================
 * Base
 * ========================================================================== */
body {
  font-family: "AkzidenzGrotesk", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  font-size: 14px;
  line-height: 20px;
}
@media (max-width: 479px) {
  body {
    font-size: 13px;
    line-height: 1.53846;
  }
}

h1, h2, h3, h4, h5, h6 {
  text-rendering: optimizeLegibility;
  font-size: 1em;
}

h1, h2, h3, h4, h5, h6, p, ul, ol {
  margin: 1.42857em 0;
}
@media (max-width: 479px) {
  h1, h2, h3, h4, h5, h6, p, ul, ol {
    margin: 1.53846em 0;
  }
}

a {
  color: black;
  text-decoration: none;
}
a:hover {
  color: grey;
}

::-webkit-selection {
  color: white;
  background: grey;
}

::-moz-selection {
  color: white;
  background: grey;
}

::-o-selection {
  color: white;
  background: grey;
}

::selection {
  color: white;
  background: grey;
}

.\#main {
  *zoom: 1;
}
.\#main:after {
  content: "";
  display: table;
  clear: both;
}

/* ==========================================================================
 * Helpers
 * ========================================================================== */
.subtitle {
  display: block;
  font-weight: normal;
  text-rendering: optimizeLegibility;
}

.text {
  overflow: hidden;
}

/* ==========================================================================
 * Header
 * ========================================================================== */
.\#header {
  padding: 84px 0 156px;
}
.\#header h1 {
  margin: 0 auto;
  text-align: center;
  font-size: 24px;
  line-height: 24px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  word-spacing: 0.08em;
}
.\#header h1 a {
  display: block;
}
.single-project .\#header {
  padding: 16px 0;
}
.single-project .\#header h1 {
  text-align: left;
  font-size: 1em;
  text-transform: none;
}
.svg .home .\#header h1 {
  text-indent: -119988px;
  overflow: hidden;
  text-align: left;
  background: url("../images/henrikmattsson.svg") no-repeat center;
  width: 514px;
  max-width: 100%;
  height: 24px;
  -moz-background-size: contain;
  -o-background-size: contain;
  -webkit-background-size: contain;
  background-size: contain;
}

.admin-bar .container {
  margin-top: 28px;
}

/* ==========================================================================
 * Contact
 * ========================================================================== */
.\#contact {
  padding: 16px 0;
}
.\#contact h1, .\#contact h2 {
  font-size: 14px;
}
.\#contact h1 {
  margin: 0;
}
.\#contact .text {
  display: none;
}
.\#contact .col {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.\#contact .col:not(:last-child) {
  padding-right: 20px;
}
@media (max-width: 479px) {
  .\#contact .col:not(:last-child) {
    padding-right: 0;
  }
}
@media (min-width: 480px) and (max-width: 979px) {
  .\#contact .col:last-child {
    padding-right: 20px;
  }
  .\#contact .text {
    padding: 30px 0;
  }
}
@media (min-width: 980px) and (max-width: 1299px) {
  .\#contact .text {
    padding: 60px 0;
  }
}
@media (min-width: 1300px) {
  .\#contact .text {
    padding: 96px 0;
  }
}

/* ==========================================================================
 * Project
 * ========================================================================== */
.type-project {
  position: relative;
  margin-bottom: 20px;
  -moz-box-shadow: 0 2px 11px 1px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0 2px 11px 1px rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 11px 1px rgba(0, 0, 0, 0.5);
}
.type-project img, .type-project a {
  display: block;
}
.type-project figure {
  background: black;
  position: relative;
}
.type-project figure img {
  padding: 32px;
  max-width: 100%;
  margin: 0 auto;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.type-project figure img[src*='blank'] {
  min-height: 350px;
}
@media (min-width: 980px) and (max-width: 1299px) {
  .type-project figure img {
    padding: 16px;
  }
}
.type-project figure + figure {
  margin-top: 20px;
}
.home .\#main > .type-project {
  overflow: hidden;
  background-color: black;
}
.home .\#main > .type-project figcaption {
  position: absolute;
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  width: 100%;
  height: 100%;
  color: white;
  font-weight: bold;
  text-align: center;
}
.home .\#main > .type-project figcaption div {
  display: inline-block;
  vertical-align: middle;
  *vertical-align: auto;
  *zoom: 1;
  *display: inline;
  width: 90%;
}
.home .\#main > .type-project figcaption:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  *vertical-align: auto;
  *zoom: 1;
  *display: inline;
  height: 100%;
}
.single-project .type-project, .mfp-content .type-project {
  margin: 0;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
}
.single-project .type-project header, .mfp-content .type-project header {
  text-align: left;
  padding: 80px 0 16px;
  display: table;
  min-height: 168px;
}
.single-project .type-project header .text, .mfp-content .type-project header .text {
  display: table-cell;
  vertical-align: bottom;
}
.single-project .type-project header h1, .mfp-content .type-project header h1 {
  margin: 0;
}
.single-project .type-project header p, .mfp-content .type-project header p {
  margin: 0;
  max-width: 480px;
}
.single-project .type-project header p.description, .mfp-content .type-project header p.description {
  margin-top: 20px;
}
.single-project .type-project header h2, .mfp-content .type-project header h2 {
  margin: 16px 0 0 0;
  line-height: 20px;
  font-size: 13px;
}
.single-project .type-project figure, .mfp-content .type-project figure {
  background-color: white;
  border: 15px solid black;
  -moz-box-shadow: 0 2px 11px 1px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0 2px 11px 1px rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 11px 1px rgba(0, 0, 0, 0.5);
}
.single-project .type-project figure img, .mfp-content .type-project figure img {
  padding: 0;
}
.single-project .type-project .caption, .mfp-content .type-project .caption {
  margin-top: 8px;
  max-width: 480px;
}
.single-project .type-project .caption + figure, .mfp-content .type-project .caption + figure {
  margin-top: 12px;
}
.single-project .type-project .post-edit-link, .mfp-content .type-project .post-edit-link {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 50;
}
.single-project .type-project footer, .mfp-content .type-project footer {
  margin-top: 40px;
}

.mfp-head-close {
  padding: 16px 0;
  display: block;
  cursor: poiner;
}

/* ==========================================================================
 * Footer
 * ========================================================================== */
footer {
  line-height: 16px;
  font-size: 13px;
}
footer p {
  margin: 0;
  max-width: 480px;
}
footer p > * {
  display: block;
}
footer p + p {
  margin-top: 16px;
}

.\#footer {
  margin: 40px 0 60px;
}
.single-project .\#footer, .mfp-content .\#footer {
  margin-top: 16px;
}

/* ==========================================================================
 * Popup
 * ========================================================================== */
/* Magnific Popup CSS */
.mfp-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1042;
  overflow: hidden;
  position: fixed;
  background: white;
}

.mfp-wrap {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1043;
  position: fixed;
  outline: none !important;
  -webkit-backface-visibility: hidden;
}

.mfp-container {
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding: 0 8px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.mfp-container:before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.mfp-align-top .mfp-container:before {
  display: none;
}

.mfp-content {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  text-align: left;
  z-index: 1045;
}

.mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
  width: 100%;
  cursor: auto;
}

.mfp-ajax-cur {
  cursor: progress;
}

.mfp-zoom-out-cur {
  cursor: -moz-zoom-out;
  cursor: -webkit-zoom-out;
  cursor: zoom-out;
}
.mfp-zoom-out-cur .mfp-image-holder .mfp-close {
  cursor: -moz-zoom-out;
  cursor: -webkit-zoom-out;
  cursor: zoom-out;
}

.mfp-zoom {
  cursor: pointer;
  cursor: -webkit-zoom-in;
  cursor: -moz-zoom-in;
  cursor: zoom-in;
}

.mfp-auto-cursor .mfp-content {
  cursor: auto;
}

.mfp-close, .mfp-arrow, .mfp-preloader, .mfp-counter {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.mfp-loading.mfp-figure {
  display: none;
}

.mfp-hide {
  display: none !important;
}

.mfp-preloader {
  color: #cccccc;
  position: absolute;
  top: 50%;
  width: auto;
  text-align: center;
  margin-top: -0.8em;
  left: 8px;
  right: 8px;
  z-index: 1044;
}
.mfp-preloader a {
  color: #cccccc;
}
.mfp-preloader a:hover {
  color: white;
}

.mfp-s-ready .mfp-preloader, .mfp-s-error .mfp-content {
  display: none;
}

button.mfp-close, button.mfp-arrow {
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -moz-appearance: none;
  -webkit-appearance: none;
  display: block;
  padding: 0;
  z-index: 1046;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  ouline: none;
}
button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

.mfp-close {
  width: 56px;
  height: 56px;
  line-height: 56px;
  position: absolute;
  right: 0;
  top: 0;
  text-decoration: none;
  text-align: center;
  opacity: 1;
  padding: 0 0 18px 10px;
  color: white;
  font-style: normal;
  font-size: 36px;
  font-family: Arial, Baskerville, monospace;
}
.mfp-close:hover, .mfp-close:focus {
  opacity: 0.8;
}
.mfp-close:active {
  top: 1px;
}

.mfp-close-btn-in .mfp-close {
  color: #333333;
}

.mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
  color: white;
  right: -6px;
  text-align: right;
  padding-right: 6px;
  width: 100%;
}

.mfp-counter {
  position: absolute;
  top: 0;
  right: 0;
  color: #cccccc;
  font-size: 12px;
  line-height: 18px;
}

.mfp-arrow {
  position: absolute;
  opacity: 0.65;
  margin: 0;
  top: 50%;
  margin-top: -55px;
  padding: 0;
  width: 90px;
  height: 110px;
  -webkit-tap-highlight-color: transparent;
}
.mfp-arrow:active {
  margin-top: -54px;
}
.mfp-arrow:hover, .mfp-arrow:focus {
  opacity: 1;
}
.mfp-arrow:before, .mfp-arrow:after, .mfp-arrow .mfp-b, .mfp-arrow .mfp-a {
  content: "";
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  left: 0;
  top: 0;
  margin-top: 35px;
  margin-left: 35px;
  border: medium inset transparent;
}
.mfp-arrow:after, .mfp-arrow .mfp-a {
  border-top-width: 13px;
  border-bottom-width: 13px;
  top: 8px;
}
.mfp-arrow:before, .mfp-arrow .mfp-b {
  border-top-width: 21px;
  border-bottom-width: 21px;
}

.mfp-arrow-left {
  left: 0;
}
.mfp-arrow-left:after, .mfp-arrow-left .mfp-a {
  border-right: 17px solid white;
  margin-left: 31px;
}
.mfp-arrow-left:before, .mfp-arrow-left .mfp-b {
  margin-left: 25px;
  border-right: 27px solid #3f3f3f;
}

.mfp-arrow-right {
  right: 0;
}
.mfp-arrow-right:after, .mfp-arrow-right .mfp-a {
  border-left: 17px solid white;
  margin-left: 39px;
}
.mfp-arrow-right:before, .mfp-arrow-right .mfp-b {
  border-left: 27px solid #3f3f3f;
}

.mfp-iframe-holder {
  padding-top: 40px;
  padding-bottom: 40px;
}
.mfp-iframe-holder .mfp-content {
  line-height: 0;
  width: 100%;
  max-width: 900px;
}

.mfp-iframe-scaler {
  width: 100%;
  height: 0;
  overflow: hidden;
  padding-top: 56.25%;
}
.mfp-iframe-scaler iframe {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  background: black;
}

.mfp-iframe-holder .mfp-close {
  top: -40px;
}

/* Main image in popup */
img.mfp-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  line-height: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 40px 0 40px;
  margin: 0 auto;
}

/* The shadow behind the image */
.mfp-figure {
  line-height: 0;
}
.mfp-figure:after {
  content: "";
  position: absolute;
  left: 0;
  top: 40px;
  bottom: 40px;
  display: block;
  right: 0;
  width: auto;
  height: auto;
  z-index: -1;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  background: #444444;
}

.mfp-bottom-bar {
  margin-top: -36px;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  cursor: auto;
}

.mfp-title {
  text-align: left;
  line-height: 18px;
  color: #f3f3f3;
  word-wrap: break-word;
  padding-right: 36px;
}

.mfp-figure small {
  color: #bdbdbd;
  display: block;
  font-size: 12px;
  line-height: 14px;
}

.mfp-image-holder .mfp-content {
  max-width: 100%;
}

.mfp-gallery .mfp-image-holder .mfp-figure {
  cursor: pointer;
}

@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
  /*
   * Remove all paddings around the image on small screen */
  .mfp-img-mobile .mfp-image-holder {
    padding-left: 0;
    padding-right: 0;
  }
  .mfp-img-mobile img.mfp-img {
    padding: 0;
  }
  .mfp-img-mobile .mfp-figure:after {
    top: 0;
    bottom: 0;
  }
  .mfp-img-mobile .mfp-bottom-bar {
    background: rgba(0, 0, 0, 0.6);
    bottom: 0;
    margin: 0;
    top: auto;
    padding: 3px 5px;
    position: fixed;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }
  .mfp-img-mobile .mfp-bottom-bar:empty {
    padding: 0;
  }
  .mfp-img-mobile .mfp-counter {
    right: 5px;
    top: 3px;
  }
  .mfp-img-mobile .mfp-close {
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    text-align: center;
    padding: 0;
  }
  .mfp-img-mobile .mfp-figure small {
    display: inline;
    margin-left: 5px;
  }

  /* The shadow behind the image */
}
@media all and (max-width: 900px) {
  .mfp-arrow {
    -webkit-transform: scale(0.75);
    transform: scale(0.75);
  }

  .mfp-arrow-left {
    -webkit-transform-origin: 0;
    transform-origin: 0;
  }

  .mfp-arrow-right {
    -webkit-transform-origin: 100%;
    transform-origin: 100%;
  }

  .mfp-container {
    padding-left: 6px;
    padding-right: 6px;
  }
}
.mfp-ie7 .mfp-img {
  padding: 0;
}
.mfp-ie7 .mfp-bottom-bar {
  width: 600px;
  left: 50%;
  margin-left: -300px;
  margin-top: 5px;
  padding-bottom: 5px;
}
.mfp-ie7 .mfp-container {
  padding: 0;
}
.mfp-ie7 .mfp-content {
  padding-top: 44px;
}
.mfp-ie7 .mfp-close {
  top: 0;
  right: 0;
  padding-top: 0;
}

/* ==========================================================================
 * Pagination
 * ========================================================================== */
ul.page-numbers {
  padding: 20px 0;
  list-style-type: none;
  text-align: center;
}
ul.page-numbers li {
  display: inline-block;
  vertical-align: middle;
  *vertical-align: auto;
  *zoom: 1;
  *display: inline;
}
ul.page-numbers li .current {
  text-decoration: underline;
}
