* {
  box-sizing: border-box;
}

:root {
  --large-tablet: 1100px;
  --tablet: 800px;
  --phone: 660px;
}

::selection,
::-moz-selection {
  background: var(--selection-color);
}

body {
  margin:3rem 4rem;
  background-color:var(--bg-color);
  color:var(--text-color);
  /* font-family: Arial, Helvetica, sans-serif; */
  font-family: "Barlow", sans-serif;
  line-height: 120%;
  /* font-size: 105%; */
}

@media screen and (max-width: 1100px){
  body {
    /* background:#cfdee3; */
  }
}

@media screen and (max-width: 660px){
  body {
    margin:2rem 2rem;
  }
}

img {
  /* width:100%; */
  max-width: 100%;
  /* max-height: 90vh; */
  max-height:75vh;
}

p {
  margin: 1rem 0;
  max-width: 700px;
}

b {
  font-weight: 500;
}

strong {
  font-weight: 500;
}

ul {
  padding-left:1.7rem;
}

li {
  padding-left: 1.5rem ;
  text-indent: -1rem ;
}

li::marker {
  content:"\2014";
}

hr {
  border:0;
  /* text-align: center; */
  margin-top:2rem;
  margin-bottom:2rem;
  margin-left:4rem;
  opacity:.6;
}

hr::after {
  content: '';
  width:8px;
  height:8px;
  border-radius: 100%;
  background:var(--text-color);
  display: block;

}

a {
  color:var(--link-color);
}

button {
  background:transparent;
  border:none;
  color:inherit;
  font-family: inherit;
  font-size: inherit;
  padding:0;
  cursor:pointer;
}

main {
  /* max-width: 700px; */
  margin-left:4rem;
  opacity:0;
  transition: opacity .1s steps(2);
}

@media screen and (max-width: 800px){
  main {
    margin-left:1rem;
  }

  hr {
    margin-left:0;
  }

  hr::after {
    margin:0 auto;
  }
}

@media screen and (max-width: 660px){
  main {
    margin-left:0;
  }
}

/* Nav */
/* ----------------- */
nav {
  margin-bottom:4rem;
}

.site-pages {
  margin-top:1rem;
  margin-left: 4rem;
}

.nav-item {
  display:inline-block;
  margin-right:1rem;
  /* margin-bottom:1rem; */
  text-decoration: none;
  /* transition: opacity .1s; */
}

.work-item {
  display:inline-block;
  position: relative;
}

.work-title {
  text-decoration: none;
}

.work-item.faded {
  opacity: .2;
}

.work-item.faded {
  opacity: .2;
}

.work-item.hidden {
  opacity:.04;
}

.item-tag {
  /* text-decoration: none !important; */
  color:#1d59a7;
  display: none;
  opacity:.8;
  position: absolute;
  margin-left:.5rem;
  bottom:-1rem;
  height:1rem;
  /* left:.5rem; */
  width:300px;
  /* white-space: preserve nowrap; */
  pointer-events: none;
  /* background:red; */
  /* left:50%;
  translate:-50% 0; */
}

.current-item {
  text-decoration: underline;
  font-weight: 500;
  /* border-bottom:1px solid; */
}

.nav-item.active {
  text-decoration: underline dotted;
}

.dropdown-btn {
  /* text-decoration: underline; */
}

.dropdown-btn.active {
  text-decoration:underline dotted;
}

.dropdown-items {
  display:none;
  margin-top:1rem;
  margin-left: 8rem;
  max-width:800px;

  flex-wrap: wrap;
  gap:1rem;
}

.dropdown-items.active {
  display: flex;
}

@media screen and (max-width: 1100px){
  .item-tag {
    margin-left:.5rem;
    left:0;
    bottom:-1rem;
  }
}

@media screen and (max-width: 800px){
  .site-pages {
    margin-left: 1rem;
  }

  .dropdown-items {
    margin-left: 2rem;
  }
}

@media screen and (max-width: 660px){
  .nav-item {
    margin-right: 2rem;
  }

  .site-pages {
    margin-top:2rem;
    margin-left: .5rem;
  }

  .dropdown-items {
    margin-left: 1rem;
    margin-top:2rem;
    gap:2rem;
  }

  .item-tag {
    display:none !important;
  }
}


/* Home */
/* ----------------- */
.home-gallery {
  max-width:700px;
  position:fixed;
  bottom:6rem;
  right:8rem;
}

img.home-image {
  max-height:fit-content;
}

.home-image {
  display:none;
  width:100%;
  opacity:0;
  transition: opacity .1s steps(2);
}

.home-image:first-of-type {
  display:block;
}

@media screen and (max-height: 720px) and (min-width: 800px) {
  .home-gallery {
    position: static;
    padding-top:2rem;
    display: flex;
    justify-content: end;
    align-items: end;
    max-width: 100%;
  }

  img.home-image {
    max-width: 60%;
  }
}

@media screen and (max-width: 1100px){

  .home-gallery {
    position: static;
    padding-top:4rem;
    display: flex;
    justify-content: end;
    align-items: end;
    max-width: 100%;
    /* background: lightpink; */
    /* height:65vh; */

  }
}

/* Blocks */
/* ----------------- */
.block {
  margin:2rem 0;
}

.block.slideshow {
  margin:1rem 0;
}

.credits {
  opacity:.7;
  /* margin:2rem 0; */
  font-size: 92%;
}

.block-description {
  opacity:.7;
  font-size: 95%;
  margin-top:-.5rem;
  margin-left:2rem;
}

.credits p {
  margin: .7rem 0;
}

.spacer {
  height:1rem;
}

.info-items {
  display: flex;
  flex-wrap:wrap;
  gap:.3rem 2rem;
  margin: 1rem 0;
  opacity:.7;
  font-size: 90%;
}

.video-wrap {
  width: 100%;
  max-width: 1000px;
  position: relative;
  padding-right:2rem;
}

.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%;
  padding-top:1rem;
}

@media screen and (max-width: 800px){
  .video-wrap {
    padding-right:1rem;
  }
}

@media screen and (max-width: 660px){
  .video-wrap {
    padding-right:0;
  }
}


/* Slideshow */
/* ----------------- */
.slideshow {
  /* width:1000px; */
  /* height:550px; */
  /* max-height:70vh; */
  position: relative;
  display: inline-block;
}

.slideshow-inner {
  position: relative;
}

.slideshow.active {
  margin-bottom:3rem;
}

/* .audio + .slideshow {
  margin:0 0 5rem 0;
} */

.slide {
  /* max-height: 600px; */
  /* width:1000px; */
  height:100%;
  display: flex;
  justify-content: start;
  align-items: center;
}

.slide img {
  /* max-height:70vh; */
}

.slide-nav {
  display:none;
  margin-top:1rem;
  margin-left:4rem;
  /* display: flex; */
  justify-content: start;
  position:relative;
  gap:1rem;
  opacity:.6;

  & button {
  opacity:.8;
  }
}

.counter {
  /* display: inline-block; */
  display: none;
  /* margin:0 1rem; */
  width: 70px;
  text-align: center;
}

.hidden-slide-nav {
  width:100%;
  height:100%;
  position: absolute;
  top:0;
  left:0;
  display: flex;
  z-index: 11;
  font-size: 130%;
  font-weight: lighter;


  & .prev {
    width:50%;
    height:100%;
    position: relative;
    opacity:0;
    transition: opacity .1s;
  }

  & .prev svg {
    position: absolute;
    top:50%;
    translate:0 -50%;
    left:-2rem;
    pointer-events: none;

    width:15px;
    height:15px;
  }

  & .prev:hover {
    opacity:.5;
  }

  & .next {
    width:50%;
    height:100%;
    position: relative;
    opacity:0;
    transition: opacity .1s;
  }

  & .next svg {
    position: absolute;
    top:50%;
    translate:0 -50%;
    right:-2rem;
    pointer-events: none;

    width:15px;
    height:15px;
  }

  & .next:hover {
    opacity:.5;
  }
}

.next:active, .prev:active {
  translate:0 .5px;
  opacity:0.6;
}

@media screen and (max-width: 800px){

  .slide-nav {
    display: flex;
    justify-content: center;
    margin-left:0;

    & button {
      padding:.5rem;
    }

    & button svg {
      width:15px;
      height:15px;
    }
  }

  .hidden-slide-nav {
    & .prev svg {
      left:-1.5rem;
    }

    & .next svg {
      right:-1.5rem;
    }
  }
}


/* specificity dictates that this reside here... */
.indented {
  margin-left:4rem;
}

.mobile-only {
  display:none;
}

@media screen and (max-width: 660px){
  .mobile-only {
    display:block;
  }

  .indented {
    margin-left:1rem;
  }

  .video-wrap.indented, .image.indented {
    margin-left:0;
  }
}
