/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.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
 *
 * 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
 */

.visually-hidden {
  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 .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.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
 *
 * 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;
  }

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

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

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

/*********
 * THEME *
 *********/

:root {
  --base-font-size-vw: 15px;
  --gutter: 15px;
  --contentMargTop: 100px;
}

@media (min-width: 64em) {
  :root {
    --base-font-size-vw: 1.3vw;
    --contentMargTop: 9vw;
  }
}

/* Vendors extensions */
.col-xs,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-offset-0,.col-xs-offset-1,.col-xs-offset-10,.col-xs-offset-11,.col-xs-offset-12,.col-xs-offset-2,.col-xs-offset-3,.col-xs-offset-4,.col-xs-offset-5,.col-xs-offset-6,.col-xs-offset-7,.col-xs-offset-8,.col-xs-offset-9 {
  padding-right: calc(var(--gutter)/2);
  padding-left: calc(var(--gutter)/2);
}

/* General */
html, body {
  background: #D9D9D9;
}
body {
  margin: 0;
  padding: 0;
  margin-left: calc(var(--gutter)/2);
  margin-right: calc(var(--gutter)/2);
}

* {
  font-family: "Inter", serif;
  font-size: var(--base-font-size-vw);
  line-height: 1.3;
}

h1, h2, h3, h4, h5, h6, p {
  font-weight: normal;
  margin: 0;
  padding: 0;
}

h3 {
  text-transform: uppercase;
}

p + p,
p + h3 {
  padding-top: 1.3em;
}

a {
  text-decoration: none;
  color: inherit;
}
a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 1px;
}
@media (min-width: 64em) {
  a:hover {
    text-decoration-thickness: 1.5px;
    text-underline-offset: 1.5px;
  }
}

/* Grid */
.row {
  margin-left: 0;
  margin-right: 0;
}

.col-xs-12 + .col-xs-12 {
  margin-top: calc(var(--gutter)*2);
}
@media (min-width: 64em) {
  .col-xs-12 + .col-xs-12 {
    margin-top: 0;
  }
}

.hide-mobile {
  display: none;
}
@media (min-width: 64em) {
  .hide-mobile {
    display: block;
  }
}

/* Header */
.header {
  overflow: hidden;
  position: sticky;
  top: var(--gutter);
  z-index: 10;
  mix-blend-mode: difference;
  color: white;
  line-height: 1;
  text-transform: uppercase;
}

.header a:hover {
  text-decoration: none;
}

[data-activate-proj-mode]:hover {
  cursor: pointer;
}

.header__last-item {
  text-align: right;
}
@media (min-width: 64em) {
  .header__last-item {
    text-align: left;
  }
}

/* General */
.page-container {
  margin-top: var(--contentMargTop);
  margin-bottom: var(--contentMargTop);
}

/* Images grid */
.grid-container {
  display: flex;
  flex-wrap: wrap;
  margin: calc(var(--gutter)/-2);
}

.grid-container__item {
  display: inline-block;
  margin: calc(var(--gutter)/2);
  height: 30vw;
}
@media (min-width: 64em) {
  .grid-container__item {
    height: 12vw;
  }
}

.grid-container__item img {
  width: auto;
  height: 100%;
  display: block;
}

.grid-container__item:hover {
  cursor: pointer;
}


.list-container {
  display: flex;
  flex-direction: column;
}

.list-container__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-top: 2px solid;
}

.list-container__item:hover {
  text-decoration: none;
  opacity: 0.7;
}

.list-container__item-col {
  padding-top: var(--gutter);
  padding-bottom: var(--gutter);
}
.list-container__item-col > * {
  display: inline-block;
  padding-right: var(--gutter);
}

.list-container__item--head {
  text-transform: uppercase;
  border-top: 0;
}



/* Homepage */
.projects-container {
  display: none;
}

.projects-container.projects-container--active {
  display: flex;
}


/* Project */
.project-grid-container {
  display: flex;
  flex-wrap: wrap;
  margin: calc(var(--gutter)/-2);
}

.project-grid-container__item {
  flex-basis: calc(50% - var(--gutter));
  flex-shrink: 0;
  flex-grow: 0;
  margin: calc(var(--gutter)/2);
}
@media (min-width: 64em) {
  .project-grid-container__item {
    flex-basis: calc(25% - var(--gutter));
  }
}

.project-grid-container__item img {
  width: 100%;
  height: auto;
}

.project-grid-container__item:hover {
  cursor: pointer;
}

.project-grid-container__item--active {
  flex-basis: calc(100% - var(--gutter));
}
@media (min-width: 64em) {
  .project-grid-container__item--active {
    flex-basis: calc(50% - var(--gutter));
  }
}


/* table years */
.table-years p {
  display: flex;
}

.table-years span:first-child {
  padding-right: var(--gutter);
  flex-basis: 2.5em;
  flex-shrink: 0;
}

.table-years p + p {
  padding-top: 0;
}

/* Playground */
.playground__img {
  cursor: pointer;
  padding-bottom: var(--gutter);
}
.playground__img img {
  width: 100%;
  height: auto;
}