* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background: white;
  overflow-x: hidden;
}

body {
  cursor: auto;
}

h1, h2 {
  text-transform: uppercase;
  font-size: 0.9rem;
  line-height: 1.25;
  /* font-family: "Georgia", "Times New Roman", serif; */
  font-family: "Arial Narrow", "Helvetica", sans-serif;
  font-weight: normal;
}

.intro {
  /* display: flex; */
  /* flex-direction: column; */
  /* align-items: center; */
  position: fixed;
  top: 42vh;
  margin: 0px 0px 0px 20px;
  /* text-align: center; */
}

.accent {
  max-width: 10vw;
  display: block;
  margin: 4px;
}

.shift {
  transform: translateX(20px);
}

.clock {
  position: fixed;
  top: 42vh;
  right: 0;
  margin: 0px 15px 0px 0px;
  text-align: right;
}

.clock-box, .showTime {
  display: inline;
}

/* ------------------- */
/* Gallery Layout */
/* ------------------- */

.gallery {
  width: 100%;
  /* centers first image on load */
  padding-top: 48vh;
  padding-bottom: 20vh;
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: center;

  position: relative;

  /* spacing between projects */
  margin: 6vh auto;

  transform-origin: center center;
}

/* lift first panel upward so image starts centered */

.panel:first-child {
  margin-top: -40vh;
}

/* ------------------- */
/* Carousel */
/* ------------------- */

.carousel {
  position: relative;
  width: 88vw;
  height: 68vh;
  overflow: hidden;
  cursor: auto;
}

.carousel.multi-image {
  cursor: none;
}

.carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 1.5s ease,
    transform .25s ease;
}

.carousel img.active {
  opacity: 1;
}

.lastimage {
  margin: 0px;
  padding: 0px;
}

/* ------------------- */
/* Caption */
/* ------------------- */

.caption {
  position: relative;
  z-index: 2;
  width: 30vw;
  /* max-width: 320px; */
  min-width: 220px;
  margin-top: 1rem;
  text-align: center;
  /* font-family: "Georgia", "Times New Roman", serif; */
  font-family: "Arial Narrow", "Helvetica", sans-serif;
  font-size: .8rem;
  line-height: 1.25;
  transition: transform .25s ease;
}

/* ------------------- */
/* Cursor */
/* ------------------- */

#cursor {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  text-align: center;
  /* font-family: "Georgia", "Times New Roman", serif; */
  font-family: "Arial Narrow", "Helvetica", sans-serif;
  font-size: .8rem;
  transition: opacity .2s ease;
  mix-blend-mode: difference;
  color: white;
}

.cursor-direction {
  display: block;
}

.cursor-count {
  display: block;
}

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

@media (max-width: 768px) {

  h1 {
    font-size: 1.5rem;
    text-align: left;
  }

  .intro {
    position: relative;
    top: 10px;
    align-content: center;
    margin: 0px 0px 75px 0px;
    transform: translateX(42.5vw);
  }

  .clock {
    opacity: 0%;
  }

  .carousel {
    width: 85%;
    height: auto;
  }

  .carousel img.active {
    position: relative;
    width: 100%;
    height: auto;
  }

  .carousel img.active.portrait {
    width: 60%;
    margin: 0 auto;
    display: block;
  }

  .caption {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    width: 75vw;
    /* margin: 0px 0px 5px 0px; */
  }
}
