@font-face {
  font-family: "Baikal";
  src: url("../fonts/Baikal-VF.ttf") format("truetype");
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
}

:root {
  --black: #000;
  --white: #fff;
  --grey: #ddd;
  --grey-transparent: rgb(221, 221, 221, 0.9);
  --sans: "Baikal", sans-serif;
  --mono: "Alpaga", monospace;
  --standard: 0.95rem;
  --big: 2.5rem;
  --line: 1px solid var(--black);
}

html {
  font-family: var(--sans);
  color: var(--black);
  font-size: var(--standard);
  height: 100%;
}

body {
  overflow-x: hidden;
  background-color: var(--grey);
  padding: 0 var(--standard);
  font-size: var(--standard);

  display: flex;
  flex-direction: column;

  min-height: 100%;
}

p {
  margin-bottom: 1rem;
}

.gridsection {
  display: inline-block;
  width: 100%;
}

img {
  width: 100%;
}

figure {
  width: 100%;
}

img[data-sizes="auto"] {
  display: block;
  width: 100%;
  background-color: var(--black);
}

.lazysrcset-ratio {
  position: relative;
}

.lazysrcset-ratio>img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--black);
}

.lazysrcset-ratio>img:after {
  display: block;
  width: 100%;
  height: 0;
  content: '';
  background-color: var(--black);
}

li {
  list-style: none;
}

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

.menu a {
  margin-left: var(--standard);
}

a:hover {
  text-decoration: underline;
}

header {
  font-size: var(--big);
  border-bottom: var(--line);
  text-transform: uppercase;
  line-height: 1;
  padding-top: var(--standard);
  padding-bottom: var(--standard);
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: var(--grey);
  transition: 0.6s;
}

.subnav {
  border-bottom: var(--line);
  padding-bottom: var(--standard);
  padding-top: var(--standard);
}

.project-head {
  border-bottom: var(--line);
  padding-bottom: var(--standard);
}

footer {
  padding-top: var(--standard);
  padding-bottom: var(--standard);
  margin-top: auto;
}

.menu {
  grid-column-start: 2;
  grid-column-end: 4;
  text-align: right;
}

.grid {
  display: grid;
  grid-gap: var(--standard);
  grid-template-columns: 1fr 1fr 1fr;
  padding-top: var(--standard);
}

.grid-2 {
  display: grid;
  grid-gap: var(--standard);
  grid-template-columns: 1fr 1fr;
  padding-top: var(--standard);
}

.grid-3 {
  display: grid;
  grid-gap: var(--standard);
  grid-template-columns: 2fr 1fr 1fr;
  padding-top: var(--standard);
}

#grid {
  margin-top: var(--standard);

}

#grid[data-columns]::before {
  content: '3 .column.size-1of3';
}

.column {
  float: left;
}

.size-1of3 {
  width: calc((100%/3) - (var(--standard)/1.5));
  padding: 0 calc(var(--standard)/2);
}

.size-1of3:first-child {
  padding: 0 calc(var(--standard)/2) 0 0;
}

.size-1of3:last-child {
  padding: 0 0 0 calc(var(--standard)/2);
}

.size-1of2 {
  width: calc((100%/2) - (var(--standard)/2));
  padding: 0 calc(var(--standard)/2);
}

.size-1of2:first-child {
  padding: 0 calc(var(--standard)/2) 0 0;
}

.size-1of2:last-child {
  padding: 0 0 0 calc(var(--standard)/2);
}

.size-1of1 {
  width: calc((100%/1));
  padding: 0;
}


figure {
  margin-bottom: var(--standard);
}

.half-grid {
  display: grid;
  grid-gap: var(--standard);
  grid-template-columns: 1fr 1fr;
  padding-top: var(--standard);
}

.mono {
  font-family: var(--mono);
}

.project {
  border-bottom: var(--line);
  padding-bottom: var(--standard);
}

.placeholder {
  display: block;
}

.footer,
.flex {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/*----------------------------------------Animations-------------------------------------------*/

/* .in-view img {
  animation: animate-in-view .6s ease-in-out forwards;
  transform: translate(0, 100%);
}

.js-observe figure {
  overflow: hidden;
}

.js-observe figure img {
  transform: translate(0, 100%);
}

@keyframes animate-in-view {
  0% {
    transform: translate(0, 100%);
  }

  100% {
    transform: translate(0, 0%);
  }
}

.grid .js-observe.in-view:nth-child(3n+1) img {
  animation-delay: 0s;
}

.grid .js-observe.in-view:nth-child(3n+2) img {
  animation-delay: 0.2s;
}

.grid .js-observe.in-view:nth-child(3n+3) img {
  animation-delay: 0.4s;
} */

/*----------------------------------------------------------------------------------------*/
/*----------------------------------------Tablet-------------------------------------------*/
/*----------------------------------------------------------------------------------------*/

@media screen and (max-width: 890px) {

  :root {
    --big: 1rem;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .placeholder {
    display: none;
  }
}

@media screen and (max-width: 480px) {

  .grid {
    grid-template-columns: 1fr;
  }

}

/*----------------------------------------------------------------------------------------*/
/*----------------------------------------Mobile-------------------------------------------*/
/*----------------------------------------------------------------------------------------*/

@media screen and (max-width: 380px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

}


/*----------------------------------------------------------------------------------------*/
/*----------------------------------------480PX-------------------------------------------*/
/*----------------------------------------------------------------------------------------*/


@media screen and (max-width: 480px) {
  #grid[data-columns]::before {
    content: '1 .column.size-1of1';
  }
}

/*----------------------------------------------------------------------------------------*/
/*----------------------------------------889PX-------------------------------------------*/
/*----------------------------------------------------------------------------------------*/

@media screen and (min-width: 481px) and (max-width: 889px) {


  #grid[data-columns]::before {
    content: '2 .column.size-1of2';
  }

}

/*-----------------------------------------------------------------------------------------*/
/*----------------------------------------890+px-------------------------------------------*/
/*-----------------------------------------------------------------------------------------*/

@media screen and (min-width: 890px) {
  #grid[data-columns]::before {
    content: '3 .column.size-1of3';
  }
}
