/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/*--------------------------------------------------------------
## Typography
--------------------------------------------------------------*/

h1,
h2,
h3,
h4,
h5,
h6 {
	position: relative;
	font-size: 1rem;
	font-weight: normal;
}

h2 {

}

ul li {
	list-style: none;
}

a {
	text-decoration: none;
	outline: none;
}

a,
a:hover,
a:active,
a:visited,
a:focus {
	color: #111;
}

p {
	margin-top: 0;
	margin-bottom: 1em;
}

p, ul {
  font-size: 1.2rem;
  line-height: 130%;
}

@media screen and (min-width: 700px) {
  p, ul {
    font-size: 1.4rem
  }
}

@media screen and (min-width: 900px) {
  p {
	   margin-bottom: 1.5em;
  }
}

@media screen and (min-width: 1700px) {
  p, ul {
    font-size: 1.6rem
  }
}

/*--------------------------------------------------------------
## General Styles
--------------------------------------------------------------*/

html,
body,
div,
canvas,
section,
figure,
img,
ul,
li,
h1,
h2,
h3,
h4,
h5,
h6 {
	padding: 0;
	margin: 0;
}

html {
	font-size: 1.125rem;
	box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

:root {
	font-size: 16px;
}

body,
button,
input,
select,
optgroup,
textarea {
	color: #111;
}

body {
	width: 100%;
	padding: 0;
  font-family: 'Helvetica', 'Arial', sans-serif;
  overflow: hidden;

	text-rendering: geometricPrecision;

	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-moz-text-size-adjust: none;
	-webkit-text-size-adjust: none;
	-ms-text-size-adjust: none;
}

img, video {
	display: block;
	width: 100%;
	height: auto;
}

*:focus {
	outline: none;
}

::-moz-selection {
  color: #fff;
  background-color: #000;
}

::selection {
  color: #fff;
	background-color: #000;
}

/*--------------------------------------------------------------
## Button
--------------------------------------------------------------*/

.btn {
  position: fixed;
  width: 2.1em;
  height: 2.1em;
  top: 1em;
  right: 1em;
  border-radius: 100%;
  background-color: #000000;
	cursor: pointer;
  z-index: 10;
}

.cross {
  position: absolute;
  width: 1em;
  height: 1em;
  top: 50%;
  left: 50%;
  margin: -0.5em 0 0 -0.5em;
}

.cross:hover {
  opacity: 1;
}

.cross:before,
.cross:after {
  content: ' ';
  position: absolute;
  height: 1em;
  width: 3px;
  left: 50%;
  margin-left: -1px;
  background-color: #ffffff;

  -webkit-transition: transform .3s ease;
     -moz-transition: transform .3s ease;
      -ms-transition: transform .3s ease;
       -o-transition: transform .3s ease;
          transition: transform .3s ease;
}

.cross:before {
  -webkit-transform: rotate(0);
     -moz-transform: rotate(0);
      -ms-transform: rotate(0);
       -o-transform: rotate(0);
          transform: rotate(0);
}

.cross:after {
  -webkit-transform: rotate(-90deg);
     -moz-transform: rotate(-90deg);
      -ms-transform: rotate(-90deg);
       -o-transform: rotate(-90deg);
          transform: rotate(-90deg);
}

.btn.active .cross:before {
  -webkit-transform: rotate(45deg);
     -moz-transform: rotate(45deg);
      -ms-transform: rotate(45deg);
       -o-transform: rotate(45deg);
          transform: rotate(45deg);
}

.btn.active .cross:after {
  -webkit-transform: rotate(-45deg);
     -moz-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
       -o-transform: rotate(-45deg);
          transform: rotate(-45deg);
}

@media screen and (min-width: 700px) {
  .btn {
    width: 2.5em;
    height: 2.5em;
    top: 2em;
    right: 2em;
  }

  .cross {
    width: 1.2em;
    height: 1.2em;
    margin: -0.6em 0 0 -0.6em;
  }

  .cross:before,
  .cross:after {
    height: 1.2em;
    width: 4px;
    margin-left: -2px;
  }
}

@media screen and (min-width: 900px) {
  .btn {
    width: 3em;
    height: 3em;
  }

  .cross {
    width: 1.5em;
    height: 1.5em;
    margin: -0.75em 0 0 -0.75em;
  }

  .cross:before,
  .cross:after {
    height: 1.5em;
    width: 5px;
    margin-left: -3px;
  }
}

@media screen and (min-width: 1700px) {
  .btn {
    width: 3.5em;
    height: 3.5em;
  }

  .cross {
    width: 1.8em;
    height: 1.8em;
    margin: -0.9em 0 0 -0.9em;
  }

  .cross:before,
  .cross:after {
    height: 1.8em;
  }
}

/*--------------------------------------------------------------
## Columns
--------------------------------------------------------------*/

.flex-columns {
	display: -webkit-flex;
	display: -ms-flex;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
	position: relative;
  width: 100%;
}

.flex-columns:after {
  content: '';
  flex: auto;
}

.flex-columns > div {
	position: relative;
  box-sizing: border-box;
}

.flex-columns > .col--1-2 {
  margin-right: 0;
  width: 100%;
}

.flex-columns > .col--1-2:nth-child(2n) {
  margin-right: 0;
}

@media screen and (min-width: 1400px) {
  .flex-columns > .col--1-2 {
    margin-right: 2%;
    width: calc(1/2*100% - (1 - 1/2)*2%);
  }
}

/*--------------------------------------------------------------
## Header
--------------------------------------------------------------*/

.site-header {
  display: -webkit-flex;
	display: -ms-flex;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  left: 0;
  bottom: 0;
  padding: 1em;
  z-index: 1;
  pointer-events: none;
  background:
}

.site-logo {
  width: 15em;
}

.site-description {
  display: none;
  align-self: flex-end;
  width: 20em;
}

.site-description h1,
.site-description h2 {
  position: absolute;
  text-indent: -9999px;
}

.site-logo svg .st0 {
  fill: #000000;
}

.hero {
  position: relative;
	width: 100%;
  height: 100%;
	height: 100vh;
	overflow: hidden;
}

@media screen and (min-width: 700px) {
  .site-header {
    padding: 2em;
  }

  .site-logo {
    width: 20em;
  }
}

@media screen and (min-width: 900px) {
  .site-description {
    display: block;
  }

  .site-logo {
    width: 25em;
  }
}

@media screen and (min-width: 1700px) {
  .site-logo {
    width: 30em;
  }
}

/*--------------------------------------------------------------
## Panel
--------------------------------------------------------------*/

.panel {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  border: 0;
  background: #ffffff;
  z-index: 5;

  -webkit-transform: translate3d(100%,0,0);
     -moz-transform: translate3d(100%,0,0);
      -ms-transform: translate3d(100%,0,0);
       -o-transform: translate3d(100%,0,0);
          transform: translate3d(100%,0,0);

  -webkit-transition: transform .8s cubic-bezier(0.8, 0, 0.2, 1);
		 -moz-transition: transform .8s cubic-bezier(0.8, 0, 0.2, 1);
		  -ms-transition: transform .8s cubic-bezier(0.8, 0, 0.2, 1);
			 -o-transition: transform .8s cubic-bezier(0.8, 0, 0.2, 1);
			 		transition: transform .8s cubic-bezier(0.8, 0, 0.2, 1);
}

.panel.visible {
  -webkit-transform: translate3d(0,0,0);
     -moz-transform: translate3d(0,0,0);
      -ms-transform: translate3d(0,0,0);
       -o-transform: translate3d(0,0,0);
          transform: translate3d(0,0,0);
}

.panel .container {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  padding: 6em 1em 1em;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

.panel .content--contact .block-text ul {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media screen and (min-width: 700px) {
  .panel .container {
    padding: 8em 3em 2em;
  }
}

@media screen and (min-width: 900px) {
  .panel {
    width: 50%;
    border-left: 1px solid #000000;
  }
}

@media screen and (min-width: 1700px) {
  .panel .container {
    padding: 10em 4em 2em;
  }
}

@media screen and (max-width: 700px) {
  .panel .content--contact > div:nth-child(2) {
    margin-top: 1em;
  }
}

@media screen and (max-width: 1400px) {
  .panel .content--contact > div:nth-child(2) {
    margin-top: 1.5em;
  }
}

/*--------------------------------------------------------------
## Flickity - Basic Styles
--------------------------------------------------------------*/

.flickity-enabled {
  position: relative;
}

.flickity-enabled:focus {
	outline: none;
}

.flickity-viewport {
  overflow: hidden;
  position: relative;
  height: 100%;
}

.flickity-slider {
  position: absolute;
  width: 100%;
  height: 100%;
}

.flickity-enabled.is-draggable {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.flickity-enabled.is-draggable .flickity-viewport {
  cursor: move;
  cursor: -webkit-grab;
  cursor: grab;
}

.flickity-enabled.is-draggable .flickity-viewport.is-pointer-down {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

.flickity-button {
  position: absolute;
  background: transparent;
  border: none;

	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	-moz-opacity: 0;
	-khtml-opacity: 0;
	opacity: 0;
}

.flickity-button svg {
  display: none !important;
}

.flickity-button:focus {
  outline: none;
}

.flickity-button:active {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	-moz-opacity: 0;
	-khtml-opacity: 0;
	opacity: 0;
}

.flickity-button:disabled {
	cursor: auto;
  pointer-events: none;

	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	-moz-opacity: 0;
	-khtml-opacity: 0;
	opacity: 0;
}

.flickity-button-icon {
  fill: transparent;
	visibility: hidden;

	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	-moz-opacity: 0;
	-khtml-opacity: 0;
	opacity: 0;
}

.flickity-prev-next-button {
  width: 50%;
  height: 100%;
	top: 0;
}

.flickity-prev-next-button.previous {
	left: 0;
	cursor: url('img/arrow-left.png') 30 30, pointer;
}

.flickity-prev-next-button.next {
	right: 0;
	cursor: url('img/arrow-right.png') 30 30, pointer;
}

/* right to left */
.flickity-rtl .flickity-prev-next-button.previous {
  left: auto;
  right: 10px;
}
.flickity-rtl .flickity-prev-next-button.next {
  right: auto;
  left: 10px;
}

.flickity-prev-next-button .flickity-button-icon {
  position: absolute;
  left: 20%;
  top: 20%;
  width: 60%;
  height: 60%;
}

.flickity-page-dots {
  position: absolute;
  width: 100%;
  bottom: -25px;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
  line-height: 1;
}

.flickity-rtl .flickity-page-dots {
	direction: rtl;
}

.flickity-page-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 8px;
  background: #333;
  border-radius: 50%;
  opacity: 0.25;
  cursor: pointer;
}

.flickity-page-dots .dot.is-selected {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter: alpha(opacity=100);
	-moz-opacity: 1;
	-khtml-opacity: 1;
	opacity: 1;
}

/* Fade CSS */
/*.gallery-home .flickity-slider {
  transform: none !important;
}

.gallery-home .gallery-cell {
  left: 0 !important;
  z-index: -1;

  opacity: 0;

  transition: opacity 1.4s ease-in-out;
}

.gallery-home .gallery-cell.is-selected {
	z-index: 0;

  opacity: 1;

	transition: opacity 2s ease-in-out;
}*/

/*--------------------------------------------------------------
## Flickity - Home Slider
--------------------------------------------------------------*/

.gallery-home {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
}

.gallery-home .gallery-cell {
  width: 100%;
  height: 100%;
	margin-right: 0;
}

.gallery-home,
.gallery-home .gallery-cell,
.gallery-home .gallery-cell.is-selected {
  background-color: #fff;
}

.gallery-home .gallery-cell .gallery-cell-wrapper {
	position: absolute;
	width: 100%;
	height: 100vh;
	top: 0;
	left: 0;
	z-index: 100;
}

.gallery-home .gallery-cell .image-slide {
	position: absolute;
	width: 100%;
	height: 100vh;
	top: 0;
	left: 0;
  background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.gallery-home .gallery-cell video {
	display: block;
	width: 100%;
	height: 100vh;
  object-fit: cover!important;

  -webkit-background-size: cover;
  	 -moz-background-size: cover;
		 	-ms-background-size: cover;
			 -o-background-size: cover;
		 			background-size: cover;
}

@media screen and (min-width: 900px) {
  .gallery-home .gallery-cell {
  	margin-right: 1em;
  }

  .gallery-home .gallery-cell .image-slide {
    background-size: contain;
  	background-position: left bottom;
  }
}
