.work-images-list {
  line-height: 0;
  font-size: 0;
  text-align: center;
}

/* .work-image {
  display: inline;
} */

.flickity-enabled {
  position: relative;
}
.flickity-enabled:focus {
  outline: none;
}
.flickity-enabled.flickity-enabled.is-draggable {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.flickity-enabled.flickity-enabled.is-draggable .flickity-viewport {
  cursor: move;
  cursor: -webkit-grab;
  cursor: grab;
}
.flickity-enabled.flickity-enabled.is-draggable .flickity-viewport.is-pointer-down {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}
.flickity-enabled .flickity-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100% !important;
}
.flickity-enabled .flickity-slider {
  position: absolute;
  width: 100%;
  height: 100%;
}

#lightbox {
  background: rgba(255, 255, 255);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  z-index: 999;
}

.slider {
  width: 100%;
  height: calc(100% - 6em);
}

.slide {
  width: auto;
  height: 100%;
  display: flex;
  align-items: center;

  padding: 2em 5em;
  box-sizing: border-box;

  opacity: 0.2;
  transition: opacity var(--hover-transition-duration);
}

.slide.is-selected {
  opacity: 1;
}

.slide img, video {
  max-width: 100%;
  max-height: 100%!important;
  height: auto;
  object-fit: contain;
}

.exit {
  position: absolute;
  top: var(--body-margin);
  right: var(--body-margin);
  text-align: center;
  cursor: pointer;
  font-family:"NeueHaasGroteskText-Bold";
  z-index: 9999;
}

.exit::after {
  content: "X";
}

.exit:hover {
  color: var(--light-gray);
  transition: color var(--hover-transition-duration);
}

.prev, .next {
  position: absolute;
  width: 25%;
  height: 100%;
  top: 0;
  bottom: 0;
  cursor: pointer;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.caption {
  position: fixed;
  bottom: 1em;

  width: 100%;
  text-align: center;
}

.caption p {
  margin: 0;
}

@media only screen and (max-width: 719px) {
  .prev, .next {
    display: none;
  }

  .slide {
    padding: 2em 1em;
    box-sizing: border-box;
  }
}
