* {
  box-sizing: border-box;
}

@font-face {
  font-family: 'fluxisch else';
  src: url('../fonts/fluxischelse-regular.woff2') format('woff2'),
       url('../fonts/fluxischelse-regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'fluxisch else';
  src: url('../fonts/fluxischelse-bold.woff2') format('woff2'),
       url('../fonts/fluxischelse-bold.woff') format('woff');
  font-weight: bolder;
}

@font-face {
  font-family: 'fluxisch else';
  src: url('../fonts/fluxischelse-light.woff2') format('woff2'),
       url('../fonts/fluxischelse-light.woff') format('woff');
  font-weight: lighter;
}

::selection,
::-moz-selection {
  background: var(--selection-color);
}

body {
  background-color:var(--bg-color);
  color:var(--text-color);
  margin:0;
  padding:20px;
  background-size: 20vw;
  font-size: .95rem;
  /* min-height:100vh; */
  height: 100vh;
  position: relative;
  font-family: 'fluxisch else';
  font-weight: lighter;
  display:flex;
  flex-direction: column;
  /* justify-content: center; */
  /* white-space: nowrap; */
  padding:0;
}

a { 
  color:var(--link-color);
  text-decoration: none;
}

a:hover {
  /* text-decoration: underline; */
}

img {
  max-width: 100%;
  max-height: 80vh;
}

ul, ol {
  /* padding:1rem; */
  /* width:500px; */
  margin:0;
  padding-left:10px;
  width:100%;
}

li {
  margin-bottom:.7rem;
}

button {
  background:transparent;
  border-radius:0;
  border-width:1px;
  padding:5px;
  color:inherit;
  font-family: inherit;
  font-size: inherit;
  cursor:pointer;
}

.irreg-btn::after {
  content:'iregularity: off';
}

.irreg-btn.irregular::after {
  content:'iregularity: on';
}

/* row layout */
.home-flex {
  position: relative;
  min-width:100vw;
  height:100%;

  overflow-x: auto;

  padding:90px 40px;
  /* margin:0 auto; */
} 

.home-wrap {
  /* width:100%; */
  
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap:28px;
  height:100%;
}

.home-wrap.overflowing {
  align-content: start;
}

.grid-img {
  display: none;
}

.grid-img:first-of-type {
  display:block;
}

.grid-item { 
  transition:margin .5s;
  flex-shrink: 0;
  /* position: static; */
  position: relative;
  transition: .1s;
  /* width: calc(100% / 5); */

  /* hidden to be revealed later in js */
  display:none;
}

.grid-item.irregular {
  position:relative;
}

.faded {
  /* opacity:0; */
  transition: .1s .4s;
  /* mix-blend-mode: plus-lighter; */
  filter: grayscale(100%);
  opacity:0;
}

.grid-crop {
  /* mix-blend-mode: multiply; */
  position: relative;
}

.grid-item-title {
  position: absolute;
  /* bottom:-2.2rem; */
  margin-top:.2rem;
  left:50%;
  transform:translateX(-50%);
  /* max-width: 100%; */
  width:220px;
  z-index: 99;
  text-align: center;
  display:none;

  pointer-events: none;
}

.grid-item-title span {
  /* display: inline-block; */
  padding:0 .1rem;
  background-color: var(--bg-color);
}

.grid-crop:hover + .grid-item-title {
  /* display: block; */
}

.name {
  font-size: 1rem;
  /* font-style: italic; */
  /* font-weight: bold; */
  display: block;
}

.grid-crop.s1 img {
  max-width:145px;
  max-height:145px;
}

.grid-crop.s2 img {
  max-width:130px;
  max-height:130px;
}

.grid-crop.s3 img {
  max-width:115px;
  max-height:115px;
}

.grid-crop.s4 img {
  max-width:100px;
  max-height:100px;
}

.r1 {
  transform:rotate(0);
}

.r2 {
  transform:rotate(-.7deg);
}

.r3 {
  transform:rotate(-.1deg);
}

.r4 {
  transform:rotate(-.5deg);
}

.r5 {
  transform:rotate(.8deg);
}

.r6 {
  transform:rotate(.2deg);
}

.nav-upper {
  position: fixed;
  top:30px;
  left:50%;
  translate:-50%;
  z-index: 999;
}

.nav-hover {
  text-align: center;
  display: none;
  font-size: 1rem;
  padding:5px;
}

.nav-hover.active {
  display:block;
}

.nav-btn {
  /* margin-bottom:20px; */
  /* font-size:105%; */
  /* font-weight: bold; */
  pointer-events: auto;
  display: inline-block;
  text-align: center;
  width:100%;
  border:none;
  /* font-weight: bold; */
  font-size: 1rem;
}

.nav-lower {
  position: fixed;
  /* top:-30px; */
  /* left:40px; */
  bottom:30px;
  left:50%;
  translate:-50%;
  z-index: 999;
  /* pointer-events: none; */
  /* height:100%; */
  /* order: -999; */
  /* margin-right: 20px; */
}

.name {
  /* font-weight: bold; */
}

nav {
  position: fixed;
  top:40px;
  left:50%;
  translate:-50%;
  width:280px;
  padding:0 10px 0 20px;
  background-color: var(--bg-color);
  border:1px solid;
  padding:20px;
  /* height:100%; */
  /* order:99999; */
  /* border-right:1px solid; */
  /* margin-left: 50px; */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* position: absolute; */
  /* top: 1rem; */
  overflow-y: auto;
  display:none;
  text-align: center;

  z-index: 9999;
}

nav.active {
  display: block;
}

nav ul {
  list-style: none;
  margin:0;
  padding:0;
}

.nav-item {
  color:var(--text-fade);
  pointer-events: auto;
  background-color: var(--bg-color);
}

.nav-item:hover {
  color:var(--text-color);
}

.nav-item.highlighted {
  color:var(--text-color);
  /* background-color: var(--bg-color); */

  /* text-decoration: underline; */
  /* font-weight: bold; */
  /* letter-spacing: -.4px; */
}

.spacer {
  order:999;
  width:5%;
  height:100%;
}

.wall-space {
  width:10px;
  height:80px;
}

.top-left {
  order:-1;
  min-width:100px;
}

.menu-spacer {
  order:-9;
  height:100%;
  width:20px;
}

/* ----------------------- */
/* page layout */
.page-flex {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-start;
  /* align-items: flex-start; */
  align-content: center;
  /* align-content: start; */
  height:100%;
  column-gap:70px;
  overflow-x: auto;
  padding:70px 40px;
  position:relative;
  /* padding-left:330px; */
}

.page-flex.overflowing {
  align-content: start;
}

header {
  /* padding:30px 70px 0 330px; */
  position: fixed;
  /* width:100%; */
  left:50%;
  translate:-50%;
  top:30px;
}

.back-btn {
  position:fixed;
  top:29px;
  left:9px;
  /* font-family: sans-serif; */
  font-weight: bold;
}

h2 {
  font-size: .9rem;
}

header h2 {
  margin:0;
}

p {
  max-width:500px;
  margin: .5rem 0;
}

.img-wrap {
  margin: .5rem 0;
  max-width: 70vw;
  max-height: 100%;
  overflow: hidden;
}

.slideshow {
  height: 100%;
  width:95%;
  max-width:70vw;
  position: relative;
}

.slide {
  height:100%;
  width:100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.counter {
  font-size: 85%;
  position: absolute;
  top: -1.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
}

/* .slide:first-of-type {
  justify-content: flex-end;
}

.slide:last-of-type {
  justify-content: flex-start;
} */

.slide img {
  /* position: absolute; */
  max-width: 100%;
  max-height: 100%;
}

.next, .prev {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  border:0;
  cursor:pointer;
  width: 50%;
  height: 100%;
}

.prev {
  left:0;
  cursor:url('../cursor/prev.svg'), auto;
}

.next {
  right:0;
  cursor:url('../cursor/next.svg'), auto;
}

.video-wrap {
  width: 100%;
  /* margin: 4rem auto 7rem auto; */
  position: relative;
  /* margin-top:1rem; */
  max-width: 70vw;
  /* max-height: 60vh; */
}

.video-wrap div {
  padding:56.25% 0 0 0;
  position:relative;
}

iframe {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  border:none;
}

.video-caption {
  width: 100%;
  /* text-align: center; */
  font-size: .9rem;
  padding-top:1rem;
  padding-bottom:1rem;
  padding-left:30px;
}