/*
    #############

    BASE

    ############# */
/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
/**
 * 1. Change the default font family in all browsers (opinionated).
 * 2. Correct the line height in all browsers.
 * 3. Prevent adjustments of font size after orientation changes in
 *    IE on Windows Phone and in iOS.
 */
/* Document
   ========================================================================== */
html {
  font-family: sans-serif;
  /* 1 */
  line-height: 1.15;
  /* 2 */
  -ms-text-size-adjust: 100%;
  /* 3 */
  -webkit-text-size-adjust: 100%;
  /* 3 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers (opinionated).
 */
body {
  margin: 0;
}

/**
 * Add the correct display in IE 9-.
 */
article,
aside,
footer,
header,
nav,
section {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 * 1. Add the correct display in IE.
 */
figcaption,
figure,
main {
  /* 1 */
  display: block;
}

/**
 * Add the correct margin in IE 8.
 */
figure {
  margin: 1em 40px;
}

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * 1. Remove the gray background on active links in IE 10.
 * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
 */
a {
  background-color: transparent;
  /* 1 */
  -webkit-text-decoration-skip: objects;
  /* 2 */
}

/**
 * Remove the outline on focused links when they are also active or hovered
 * in all browsers (opinionated).
 */
a:active,
a:hover {
  outline-width: 0;
}

/**
 * 1. Remove the bottom border in Firefox 39-.
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  text-decoration: underline dotted;
  /* 2 */
}

/**
 * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
 */
b,
strong {
  font-weight: inherit;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

/**
 * Add the correct font style in Android 4.3-.
 */
dfn {
  font-style: italic;
}

/**
 * Add the correct background and color in IE 9-.
 */
mark {
  background-color: #ff0;
  color: #000;
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 */
audio,
video {
  display: inline-block;
}

/**
 * Add the correct display in iOS 4-7.
 */
audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Remove the border on images inside links in IE 10-.
 */
img {
  border-style: none;
}

/**
 * Hide the overflow in IE.
 */
svg:not(:root) {
  overflow: hidden;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers (opinionated).
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: sans-serif;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
 *    controls in Android 4.
 * 2. Correct the inability to style clickable types in iOS and Safari.
 */
button,
html [type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  /* 2 */
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Change the border, margin, and padding in all browsers (opinionated).
 */
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */
}

/**
 * 1. Add the correct display in IE 9-.
 * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  display: inline-block;
  /* 1 */
  vertical-align: baseline;
  /* 2 */
}

/**
 * Remove the default vertical scrollbar in IE.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10-.
 * 2. Remove the padding in IE 10-.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/**
 * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in IE 9-.
 * 1. Add the correct display in Edge, IE, and Firefox.
 */
details,
menu {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Scripting
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 */
canvas {
  display: inline-block;
}

/**
 * Add the correct display in IE.
 */
template {
  display: none;
}

/* Hidden
   ========================================================================== */
/**
 * Add the correct display in IE 10-.
 */
[hidden] {
  display: none;
}

/*! responsive-nav.js 1.0.39 by @viljamis */
.nav-collapse ul {
  margin: 0;
  padding: 0;
  width: 100%;
  display: block;
  list-style: none;
}

.nav-collapse li {
  width: 100%;
  display: block;
}

.js .nav-collapse {
  clip: rect(0 0 0 0);
  max-height: 0;
  position: absolute;
  display: block;
  overflow: hidden;
  zoom: 1;
}

.nav-collapse.opened {
  max-height: 9999px;
}

.nav-toggle {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

@media screen and (min-width: 40em) {
  .js .nav-collapse {
    position: relative;
  }
  .js .nav-collapse.closed {
    max-height: none;
  }
  .nav-toggle {
    display: none;
  }
}

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

.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;
  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, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
  cursor: -webkit-zoom-out;
  cursor: zoom-out;
}

.mfp-zoom {
  cursor: pointer;
  cursor: -webkit-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;
  -ms-user-select: none;
      user-select: none;
}

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

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

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

.mfp-preloader a {
  color: #CCC;
}

.mfp-preloader a:hover {
  color: #FFF;
}

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

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

button.mfp-close,
button.mfp-arrow {
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 1046;
  box-shadow: none;
  -ms-touch-action: manipulation;
      touch-action: manipulation;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

.mfp-close {
  width: 44px;
  height: 44px;
  line-height: 44px;
  position: absolute;
  right: 0;
  top: 0;
  text-decoration: none;
  text-align: center;
  opacity: 0.65;
  padding: 0 0 18px 10px;
  color: #FFF;
  font-style: normal;
  font-size: 28px;
  font-family: Arial, Baskerville, monospace;
}

.mfp-close:hover,
.mfp-close:focus {
  opacity: 1;
}

.mfp-close:active {
  top: 1px;
}

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

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

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

.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 {
  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 {
  border-top-width: 13px;
  border-bottom-width: 13px;
  top: 8px;
}

.mfp-arrow:before {
  border-top-width: 21px;
  border-bottom-width: 21px;
  opacity: 0.7;
}

.mfp-arrow-left {
  left: 0;
}

.mfp-arrow-left:after {
  border-right: 17px solid #FFF;
  margin-left: 31px;
}

.mfp-arrow-left:before {
  margin-left: 25px;
  border-right: 27px solid #3F3F3F;
}

.mfp-arrow-right {
  right: 0;
}

.mfp-arrow-right:after {
  border-left: 17px solid #FFF;
  margin-left: 39px;
}

.mfp-arrow-right:before {
  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-holder .mfp-close {
  top: -40px;
}

.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: #000;
}

/* Main image in popup */
img.mfp-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  line-height: 0;
  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: #444;
}

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

.mfp-figure figure {
  margin: 0;
}

.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-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-figure small {
    display: inline;
    margin-left: 5px;
  }
  .mfp-img-mobile .mfp-bottom-bar {
    background: rgba(0, 0, 0, 0.6);
    bottom: 0;
    margin: 0;
    top: auto;
    padding: 3px 5px;
    position: fixed;
    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;
  }
}

@media all and (max-width: 900px) {
  .mfp-arrow {
    -webkit-transform: scale(0.75);
    -ms-transform: scale(0.75);
        transform: scale(0.75);
  }
  .mfp-arrow-left {
    -webkit-transform-origin: 0;
    -ms-transform-origin: 0;
        transform-origin: 0;
  }
  .mfp-arrow-right {
    -webkit-transform-origin: 100%;
    -ms-transform-origin: 100%;
        transform-origin: 100%;
  }
  .mfp-container {
    padding-left: 6px;
    padding-right: 6px;
  }
}

/*
    #############

    GRID

    ############# */
.container, [id=page] {
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 800px) {
  .container, [id=page] {
    padding-left: 60px;
    padding-right: 60px;
  }
}

.container, [id=page] {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.container:after, [id=page]:after {
  content: " ";
  display: block;
  clear: both;
}

/*
    #############

    LAYOUT

    ############# */
html {
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-font-feature-settings: "liga","kern";
  font-feature-settings: "liga","kern";
  font-family: Lato, "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  font-size: 16px;
  color: #4a4a4a;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

p, ul, dl, ol, .list, blockquote {
  margin: 1.25em 0;
}

figure {
  margin: 0;
}

figure img {
  display: block;
}

img, svg {
  max-width: 100%;
  height: auto;
}

.no-js .lazyload {
  display: none;
}

.fadein {
  opacity: 0;
  -webkit-transition: opacity .3s ease-in-out;
  transition: opacity .3s ease-in-out;
}

.fadein.lazyloaded {
  opacity: 1;
}

h1, h2, h3, h4, h5, h5, h6 {
  margin: 1.25em 0;
  color: #333;
}

h1 {
  font-size: 1.625em;
}

h2 {
  font-size: 1.375em;
}

h3 {
  font-size: 1.25em;
}

h4 {
  font-size: 1.125em;
}

h4 {
  font-size: 1.0625em;
}

h5 {
  font-size: 1em;
}

h6 {
  font-size: 1em;
}

dl dt, dl dd {
  display: inline;
  margin: 0;
}

dl dd:after {
  content: '\A';
  white-space: pre;
}

.list {
  padding: 0;
  list-style-position: inside;
  margin: 1em 0;
}

.list li + li {
  margin-top: .5em;
}

table {
  border: 1em solid rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.2);
  width: 100%;
  font-size: .75em;
}

table thead {
  background: rgba(0, 0, 0, 0.6);
  color: white;
}

table caption {
  background: rgba(0, 0, 0, 0.05);
}

table tbody {
  background: rgba(255, 255, 255, 0.8);
}

table th, table td {
  padding: .5em;
}

table th, table caption {
  text-align: center;
  text-transform: uppercase;
  padding: 1em .5em;
  font-weight: normal;
}

table caption {
  padding-bottom: 0;
  padding-top: 1.25em;
}

::-moz-selection {
  color: white;
  background: #DFDD3F;
  text-shadow: none;
}

::selection {
  color: white;
  background: #DFDD3F;
  text-shadow: none;
}

.size-auto, .size-full, .size-large, .size-medium, .size-thumbnail {
  max-width: 100%;
  height: auto;
}

img.alignright, .wp-caption.alignright {
  clear: right;
  margin: 0 0 .75em 1.5em;
}

img.alignleft, .wp-caption.alignleft {
  margin: 0 1.5em .75em 0;
}

@media (min-width: 640px) {
  img.alignleft, img.alignright, .wp-caption.alignleft, .wp-caption.alignright {
    max-width: 50vw;
  }
}

img.aligncenter, .wp-caption.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption img {
  width: 100%;
  display: block;
}

.wp-caption p {
  margin: .5em 0 0 0;
}

@media (min-width: 640px) {
  .alignright {
    float: right;
  }
}

@media (min-width: 640px) {
  .alignleft {
    float: left;
  }
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/*
    #############

    HELPERS

    ############# */
.single-post .post header {
  *zoom: 1;
}

.single-post .post header:after {
  content: "";
  display: table;
  clear: both;
}

.page:not(body) header > *:first-child, .page:not(body) .entry > *:first-child, .page:not(body) .entry-summary > *:first-child, .post .entry > *:first-child, [id=sidebar] .widget > *:first-child, [id=sidebar] .widget header > *:first-child, [id=footer] .widget > *:first-child, [id=footer] .textwidget > *:first-child {
  margin-top: 0;
}

.page:not(body) header > *:last-child, .page:not(body) .entry > *:last-child, .page:not(body) .entry-summary > *:last-child, .post .entry > *:last-child, [id=sidebar] .widget > *:last-child, [id=sidebar] .widget header > *:last-child, [id=footer] .widget > *:last-child, [id=footer] .textwidget > *:last-child {
  margin-bottom: 0;
}

/*
    #############

    modules

    ############# */
.gallery {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-flow: row wrap;
      -ms-flex-flow: row wrap;
          flex-flow: row wrap;
  margin-bottom: -30px !important;
}

.gallery .gallery-item {
  margin-bottom: 30px;
  margin-right: 30px;
}

.gallery .gallery-item img {
  min-width: 100%;
}

.gallery .gallery-item .gallery-caption {
  font-size: .75em;
  padding: .75em 1em;
  background: #eee;
}

.gallery .gallery-item {
  width: calc((100% - 30px)/2);
}

.gallery .gallery-item:nth-child(2n) {
  margin-right: 0;
}

@media (min-width: 640px) {
  .gallery.gallery-columns-3 .gallery-item {
    max-width: calc((100% - 60px)/3);
  }
  .gallery.gallery-columns-3 .gallery-item:nth-child(2n) {
    margin-right: auto;
  }
  .gallery.gallery-columns-3 .gallery-item:nth-child(3n) {
    margin-right: 0;
  }
}

@media (min-width: 640px) and (max-width: 959px) {
  .gallery.gallery-columns-4 .gallery-item {
    max-width: calc((100% - 60px)/3);
  }
  .gallery.gallery-columns-4 .gallery-item:nth-child(2n) {
    margin-right: auto;
  }
  .gallery.gallery-columns-4 .gallery-item:nth-child(3n) {
    margin-right: 0;
  }
}

@media (min-width: 960px) {
  .gallery.gallery-columns-4 .gallery-item {
    max-width: calc((100% - 90px)/4);
  }
  .gallery.gallery-columns-4 .gallery-item:nth-child(2n) {
    margin-right: auto;
  }
  .gallery.gallery-columns-4 .gallery-item:nth-child(4n) {
    margin-right: 0;
  }
}

.wp-caption, .widget .gallery-item {
  position: relative;
}

.wp-caption .wp-caption-text, .widget .gallery-item .wp-caption-text {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: .5em 1em;
  background-color: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.8);
  visibility: hidden;
  font-size: .75em;
}

.wp-caption:hover .wp-caption-text, .widget .gallery-item:hover .wp-caption-text {
  visibility: visible;
}

.page:not(body) header {
  margin-bottom: 2em;
}

.page:not(body) .entry-header {
  padding: 1em 0;
  position: relative;
}

.page:not(body) .entry-header h2 {
  margin: 0;
}

.page:not(body) .entry-header time {
  font-family: Merriweather;
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
}

.page:not(body) .entry-header:after {
  content: '';
  position: absolute;
  top: 100%;
  right: 30%;
  left: 0;
  height: 2px;
  background: #de5f3f;
}

.page:not(body) .entry-summary {
  margin-top: 1em;
  color: #4a4a4a;
}

.page:not(body) .more-link {
  display: inline-block;
  border-radius: 2px;
  background-color: #de5f3f;
  padding: .75em 1em .625em;
  color: #fff;
  font-family: "Josefin Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}

.page:not(body) .more-link:hover {
  background-color: #DFDD3F;
  color: black;
}

.page:not(body) + .page {
  border-top: 1px solid rgba(159, 185, 164, 0.4);
}

ul.page-numbers {
  list-style: none;
  padding: 0;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  row-gap: 1em;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
  font-family: "Josefin Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

ul.page-numbers a.page-numbers {
  padding: .5em;
}

ul.page-numbers .page-numbers {
  margin: 0 1em;
}

ul.page-numbers .page-numbers > * {
  display: block;
  padding: .5em;
  min-width: 2em;
  text-align: center;
  border: 3px solid #de5f3f;
  border-radius: 3px;
  color: #de5f3f;
}

ul.page-numbers .page-numbers.current > *, ul.page-numbers .page-numbers a:hover {
  border-color: #de5f3f;
  background: #de5f3f;
  color: white;
}

@media (max-width: 640px) {
  .post header > img, .post header .wp-caption, .post header figure, body:not(.single-post) .post > img, body:not(.single-post) .post .wp-caption, body:not(.single-post) .post figure {
    margin-bottom: 1em;
  }
}

@media (min-width: 640px) {
  .post header > img, .post header .wp-caption, .post header figure, body:not(.single-post) .post > img, body:not(.single-post) .post .wp-caption, body:not(.single-post) .post figure {
    float: left;
    margin: 0 1.5em .75em 0;
    max-width: 30vw;
  }
  .post header > img > *, .post header .wp-caption > *, .post header figure > *, body:not(.single-post) .post > img > *, body:not(.single-post) .post .wp-caption > *, body:not(.single-post) .post figure > * {
    float: none;
    max-width: auto;
  }
}

.post {
  overflow: hidden;
  padding: 2em 0 3em 0;
}

@media (min-width: 640px) {
  .post {
    padding: 3em 0 4em 0;
  }
}

.post:first-child {
  padding-top: 0;
}

.post header > * {
  display: block;
}

.post header + * {
  margin-top: 1em;
}

.single-post .post header + * {
  margin-top: 2em;
}

.post .post-category, .post time {
  font-family: "Josefin Sans";
  letter-spacing: 0.1875em;
  text-transform: uppercase;
  color: #ccc;
  margin: 0 0 .5em 0;
}

.post h1 {
  color: #333;
  line-height: 1.25;
  margin: 0;
}

.single-post .post h1 {
  font-size: 2.25em;
}

.post .post-author {
  color: #de5f3f;
  font-family: "Josefin Sans";
  font-size: 1.375em;
  font-weight: normal;
  font-style: normal;
  letter-spacing: 0.0625em;
  margin-top: .325em;
}

.post time {
  margin-top: .5em;
}

.post .entry a {
  color: #de5f3f;
}

.post .entry a:hover {
  text-decoration: underline;
}

.post > * {
  max-width: 60rem;
}

.post p + h1, .post p + h2, .post p + h3, .post p + h4, .post p + h5, .post p + h6 {
  margin-top: calc(2vmin + 2em);
}

.post .more-link {
  display: inline-block;
  border-radius: 2px;
  background-color: #de5f3f;
  padding: .75em 1em .625em;
  color: #fff !important;
  font-family: "Josefin Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}

.post .more-link:hover {
  background-color: #DFDD3F;
  color: black;
  text-decoration: none !important;
}

.post + .post {
  border-top: 1px solid rgba(159, 185, 164, 0.4);
}

.search-form .search-field, .search-form .search-submit {
  border-radius: 2px;
  border: 2px solid #aaa;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding: .5em;
  color: #4a4a4a;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.5;
  outline: none;
  width: 16em;
}

.search-form .search-label {
  display: none;
}

.search-form .search-field:focus {
  border-color: #DFDD3F;
}

.search-form .search-submit {
  border-color: transparent;
  background-color: transparent;
  background-position: center;
  text-indent: -119988px;
  overflow: hidden;
  text-align: left;
  width: 3em;
  margin-left: -36px;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.search .page-header {
  text-align: center;
}

.search .page-header h1 {
  color: #9b9b9b;
  font-family: Merriweather;
  font-size: 24px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 1px;
  line-height: 40px;
}

.search .page-header span {
  color: #333;
  font-size: 30px;
  font-weight: 400;
  line-height: 40px;
}

[id=sidebar] {
  font-size: .875em;
}

[id=sidebar] .widget header + * {
  margin-top: 1em;
}

[id=sidebar] .widget + .widget {
  margin-top: 2em;
}

[id=sidebar] .widget-title {
  color: #333;
  font-family: "Josefin Sans";
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: .25em;
  border-bottom: 2px solid #de5f3f;
}

[id=sidebar] .widget-title a {
  padding: 0;
}

[id=sidebar] ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  letter-spacing: 0.0625em;
  color: #4d4b52;
  font-family: "Merriweather";
}

[id=sidebar] ul ul a {
  padding-left: 1em;
  position: relative;
}

[id=sidebar] ul li:not(:first-child), [id=sidebar] ul ul ul li {
  border-top: 1px solid #e2e2e2;
}

[id=sidebar] ul a {
  display: block;
  padding: .5em 0;
  text-decoration: none;
}

[id=sidebar] ul a:first-letter {
  text-transform: uppercase;
}

[id=sidebar] .textwidget a {
  text-decoration: underline;
}

[id=sidebar] a {
  -ms-word-break: normal;
  word-break: normal;
}

[id=sidebar] a:hover, [id=sidebar] [class*=current] > a {
  color: #de5f3f;
}

.team {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-flow: row wrap;
      -ms-flex-flow: row wrap;
          flex-flow: row wrap;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.team-member {
  width: 100%;
  margin: 0 0 2em 0;
  text-align: center;
}

@media (min-width: 440px) and (max-width: 799px) {
  .team-member {
    width: 45%;
    margin: 0 2.5% 2em 2.5%;
  }
}

@media (min-width: 800px) and (max-width: 1259px) {
  .team-member {
    width: 28%;
    margin: 0 2.5% 2em 2.5%;
  }
}

@media (min-width: 1260px) {
  .team-member {
    width: 20%;
    margin: 0 2.5% 2em 2.5%;
  }
}

.team-member:last-child {
  margin-right: auto;
}

.team-member .member-photo {
  position: relative;
  height: 0;
  padding-top: 75%;
  width: 100%;
  overflow: hidden;
  border-radius: 3px;
  display: block;
}

.team-member .member-photo img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto !important;
  width: auto;
  height: auto;
  max-height: 100%;
  max-width: 100%;
  border-radius: 3px;
}

.team-member .member-name {
  font-family: "Josefin Sans";
  font-size: 1.125em;
  font-weight: 400;
  margin: 1em 0 .5em 0;
}

.team-member .member-employer {
  color: #333;
  font-family: "Josefin Sans";
  font-size: .625em;
  font-weight: 700;
  text-transform: uppercase;
  color: #de5f3f;
  line-height: 1.5;
  display: block;
}

/*
    #############

    HEADER

    ############# */
[id=header] {
  position: relative;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
  color: #333;
  font-family: "Josefin Sans", sans-serif;
}

[id=header] .container {
  position: relative;
}

[id=header] .container:after {
  content: '';
  position: absolute;
  top: 20px;
  right: 0;
  bottom: 0;
  left: 0;
  background: url("../images/ui/mountains.svg") no-repeat right bottom;
  background-size: contain;
  z-index: -1;
}

[id=header] .logo {
  display: inline-block;
  height: 120px;
  background: url("../images/ui/logo.svg") no-repeat;
  background-size: contain;
  font-size: 1.25em;
  font-weight: bold;
  padding-top: 20px;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  [id=header] .logo {
    margin-top: -10px;
    margin-left: -10px;
    text-align: right;
    line-height: 1.25;
  }
}

@media (min-width: 640px) and (max-width: 799px) {
  [id=header] .logo {
    padding-right: 200px;
  }
}

@media (min-width: 800px) {
  [id=header] .logo {
    font-size: 1.5em;
    padding-left: 180px;
    height: 120px;
  }
}

[id=header] .top-bar {
  position: absolute;
  top: 20px;
  right: 20px;
}

@media (max-width: 639px) {
  [id=header] .top-bar {
    top: 60px;
    overflow: hidden;
  }
  [id=header] .top-bar .search-form {
    float: none;
  }
  [id=header] .top-bar .nav-toggle {
    clear: right;
    float: right;
  }
  [id=header] .top-bar .lang {
    float: left;
    margin-top: 10px;
  }
}

@media (min-width: 640px) {
  [id=header] .top-bar {
    right: 60px;
    overflow: hidden;
  }
  [id=header] .top-bar > * {
    float: left;
  }
  [id=header] .top-bar > * + .lang {
    margin-left: .5em;
  }
}

[id=header] .lang {
  margin: 0;
  padding: 0;
  list-style-type: none;
  overflow: hidden;
}

[id=header] .lang li {
  border-radius: 2px;
  border: 2px solid #aaa;
}

[id=header] .lang li.active, [id=header] .lang li:hover {
  border-color: #333;
}

[id=header] .lang a {
  display: block;
  text-indent: -119988px;
  overflow: hidden;
  text-align: left;
  width: 18px;
  height: 12px;
  background-size: cover;
  background-position: center;
}

@media (max-width: 639px) {
  [id=header] .lang li {
    float: left;
    margin-right: 4px;
  }
}

@media (min-width: 640px) {
  [id=header] .lang li + li {
    margin-top: 2px;
  }
}

[id=header] .nav-toggle {
  background-position: left center;
  padding: .5em 0 .5em 1em;
  font-weight: bold;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  [id=header] [id=nav] {
    position: absolute;
    right: 60px;
    bottom: 20px;
    left: 180px;
  }
}

/*
    #############

    NAVIGATION

    ############# */
[id=nav] {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (max-width: 40em) {
  [id=nav] {
    padding: 1em 0;
    font-size: 12px;
  }
  [id=nav] li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  [id=nav] a {
    padding: .25em 0;
    display: block;
  }
  [id=nav] ul ul li:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  [id=nav] ul ul a {
    padding-left: 1.5em;
  }
  [id=nav] ul ul ul a {
    padding-left: 3em;
  }
}

@media (min-width: 40em) {
  [id=nav] {
    clip: auto !important;
    position: absolute !important;
    overflow: visible !important;
    text-align: right;
  }
  [id=nav] ul, [id=nav] li {
    width: auto;
  }
  [id=nav] ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  [id=nav] ul, [id=nav] li {
    width: auto;
  }
  [id=nav] > ul > .menu-item {
    position: relative;
    display: inline-block;
    margin-top: .5em;
  }
  [id=nav] > ul > .menu-item + li {
    margin-left: 2em;
  }
  [id=nav] > ul > .menu-item > .sub-menu {
    position: absolute;
    top: 100%;
    left: -2em;
    margin-top: 20px;
    visibility: hidden;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
  }
  [id=nav] > ul > .menu-item > .sub-menu .sub-menu {
    list-style: circle !important;
  }
  [id=nav] > ul > .menu-item > .sub-menu .sub-menu li:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  [id=nav] > ul > .menu-item > .sub-menu .sub-menu a {
    padding-left: 3em;
  }
  [id=nav] > ul > .menu-item:focus .sub-menu, [id=nav] > ul > .menu-item:hover .sub-menu {
    visibility: visible;
  }
  [id=nav] [class*=current] > a, [id=nav] a:hover {
    color: #de5f3f;
  }
  [id=nav] [class*=current] > a {
    color: #de5f3f;
    font-weight: bold;
  }
  [id=nav] .sub-menu {
    background-color: white;
    padding: 0;
    z-index: 10;
    text-align: left;
    white-space: nowrap;
  }
  [id=nav] .sub-menu li {
    max-width: 24em;
  }
  [id=nav] .sub-menu li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  [id=nav] .sub-menu a {
    display: block;
    padding: .75em 2em;
    white-space: nowrap;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
  }
  [id=nav] .sub-menu-trigger {
    position: relative;
    background-size: 0;
  }
  [id=nav] .sub-menu-trigger:after {
    content: '';
    background: inherit;
    background-size: auto;
    position: absolute;
    top: 50%;
    right: 12px;
    margin-top: -6px;
    width: 16px;
    height: 12px;
  }
}

[id=nav] .menu > .menu-item-has-children {
  position: relative;
}

[id=nav] .menu > .menu-item-has-children > .sub-menu:before {
  content: '';
  position: absolute;
  top: -20px;
  right: 0;
  bottom: 100%;
  left: 0;
}

.sub-menu-hidden .sub-menu {
  height: 0;
  overflow: hidden;
}

.sub-menu-hidden.visible .sub-menu {
  height: auto;
  overflow: visible;
}

.sub-menu-trigger {
  background: url("../images/ui/plus.svg") no-repeat right center;
  padding-right: 2em !important;
}

.visible .sub-menu-trigger {
  background-image: url("../images/ui/minus.svg") !important;
}

.sub-menu-trigger:not(:first-child) {
  position: absolute;
  top: 0;
  right: 0;
  width: 2em;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  text-indent: -119988px;
  overflow: hidden;
  text-align: left;
}

/*
    #############

    MAIN

    ############# */
[id=page] {
  padding-top: 20px;
  padding-bottom: 30px;
}

@media (min-width: 640px) {
  [id=page] {
    padding-top: 8vmin;
    padding-bottom: 12vmin;
  }
}

@media (min-width: 800px) {
  [id=main]:not(:only-child) {
    float: left;
    width: calc(100% - 320px);
  }
}

@media (min-width: 800px) {
  [id=sidebar] {
    float: right;
    width: calc(280px);
  }
}

/*
    #############

    FOOTER

    ############# */
[id=footer] {
  padding-top: 30px;
  padding-bottom: 40px;
  background-color: #4c4a51;
  color: white;
  position: relative;
}

@media (min-width: 640px) {
  [id=footer] {
    padding-top: 8vmin;
    padding-bottom: 8vmin;
  }
}

[id=footer] .logo {
  display: none;
  height: 120px;
  width: 100%;
  margin: 0 auto;
  background: url("../images/carpathian-bear-logo.svg") no-repeat center;
  background-size: auto 100%;
  -webkit-transform: scaleX(-1);
      -ms-transform: scaleX(-1);
          transform: scaleX(-1);
  position: absolute;
  bottom: 100%;
  left: 0;
  text-indent: -119988px;
  overflow: hidden;
  text-align: left;
}

@media (min-width: 640px) {
  [id=footer] .container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-flow: row nowrap;
        -ms-flex-flow: row nowrap;
            flex-flow: row nowrap;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
}

[id=footer] .container:after {
  content: none;
}

@media (min-width: 440px) and (max-width: 639px) {
  [id=footer] .gallery .gallery-item {
    max-width: calc((100% - 60px)/3);
  }
  [id=footer] .gallery .gallery-item:nth-child(2n) {
    margin-right: 30px;
  }
  [id=footer] .gallery .gallery-item:nth-child(3n) {
    margin-right: 0;
  }
}

@media (max-width: 640px) {
  [id=footer] .widget + * {
    margin-top: 30px;
  }
}

@media (min-width: 640px) {
  [id=footer] .widget {
    width: calc((100% - 40px)/2);
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 0;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-flow: column nowrap;
        -ms-flex-flow: column nowrap;
            flex-flow: column nowrap;
  }
}

[id=footer] .widget:last-child {
  -webkit-box-ordinal-group: 0;
  -webkit-order: -1;
      -ms-flex-order: -1;
          order: -1;
}

[id=footer] .textwidget {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-flow: column nowrap;
      -ms-flex-flow: column nowrap;
          flex-flow: column nowrap;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
  width: 100%;
}

[id=footer] .widget-title {
  color: inherit;
  line-height: 1;
}

[id=footer] a {
  color: #DFDD3F;
}

[id=footer] a:hover {
  text-decoration: underline;
}
