/* UNIVERSAL */

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

@font-face {
  font-family: geneva;
  src: url(./geneva.woff);
  font-weight: normal;
}

/* HTML, BODY */

html {
  height: 100%;
}

body {
  background: white;
  min-height: 100%;
  font-family: "geneva", helvetica, arial, sans-serif;
  font-size: 12px;
  margin: 0;
}

/* TEXT, LINKS, LISTS */

p, li {
  width: 100%;
  font-size: 1em;
  letter-spacing: .04em;
  line-height: 1.2em;
}

p {
  margin-block-start: 0;
  margin-block-end: 1.2em;
  margin-inline-start: 0;
  margin-inline-end: 0;
}

ul {
  display: block;
  list-style-type: none;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
  padding-inline-start: 0;
  padding-left: 1.2em;
}

li {
  text-indent: -1.2em;
}

a {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

a p {
  color: inherit;
  text-decoration: underline;
}

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

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

a:active {
  color: inherit;
}

a:visited {
  color: inherit;
}

/* IMAGE, CANVAS */

img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

canvas {
  display: none;
}

/* INDEX ITEM */

.index-item {
  position: relative;
  display: inline-block;
  width: 50%;
  height: 50vh;
}

/* COLORBLOCK AND INFORMATION PAGE */

.colorblock {
  position: absolute;
  bottom: 0;
  right: 0;
  overflow: hidden;
}

.caption-wrapper {
  width: 100%;
  margin: 0;
  padding: 1.2em;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  overflow: hidden;
}

#title {
  text-transform: capitalize;
  margin-block-end: 0;
}

#navigation {
  margin-block-end: 0;
}

.details {
  padding-top: 1.2em;
}

.details p {
  margin-block-start: 0;
  margin-block-end: 0;
  padding-bottom: .4rem;
}

/* SLIDESHOW */

.slideshow-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.prev, .next {
  opacity: 0;
  border: none;
  position: absolute;
  width: 50%;
  height: 100%;
  font-size: 0;
  padding: 0;
  margin: 0;
  top: 0;
  z-index: 1;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.prev:hover {
  cursor: w-resize;
}

.next:hover {
  cursor: e-resize;
}

.text-item {
  padding: 1.8em;
  padding-left: 50%;
}

.text-item ul + p, .text-item ul + ul, .text-item p + p {
  margin-block-start: 2.4em;
}

/* MODAL */

#modal {
  display: none;
  cursor: pointer;
  z-index: 3;
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-size: auto;
  background-repeat: no-repeat;
  background-color: black;
}

/* SPECIAL CLASSES */

.cover {
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
  /* max-height: calc(100% - 3.6em); */
}

.gone {
  display: none;
}

.hidden {
  visibility: hidden;
}

.reduced-height {
  max-height: calc(100% - 3.6em);
}

#initials {
  display: none;
}

/* MEDIA QUERIES */

@media only screen and (min-width: 1200px) {

  .index-item {
    width: 33.33%
  }

}

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

  body {
    font-size: 15px;
  }

  .index-item {
    width: 100%;
  }

  .text-item {
    padding-left: 1.2em;
  }

  #full-name {
    display: none;
  }

  #initials {
    display: inline
  }

  #zoom-link {
    display: none;
  }

  #navigation {
    margin-block-end: 0;
  }

  /* MARQUEE */

  .marquee {
    margin: 0 -1.2em;
    overflow: hidden;
  }

  .marquee p {
    display: inline-block;
    height: 1.6em;
    width: max-content;
    padding-left: 100%;
    will-change: transform;
    animation: marquee 30s linear infinite;
  }

  .marquee p:hover {
    animation-play-state: paused
  }

  @keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
  }

}
