/* WORK INDEX */

.js-work-index {
  width: 100%;
}

.js-work-header,
.js-work-row__inner {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 2fr 0.5fr;
  align-items: center;
  gap: 24px;
}

.js-work-header {
  padding: 8px 0;
  top: 0;
  position: sticky;
  z-index: 2;
  background-color: #fff;
  border-bottom: 1px solid #000;
}

.js-work-header h5 {
  margin: 0;
}

.js-work-row {
  border-bottom: 1px solid #000;
  position: relative;
  overflow: visible;
}

.js-work-row__inner {
  padding: 14px 0;
  position: relative;
  z-index: 1;
}

.js-work-col h2,
.js-work-col h3,
.js-work-col h4,
.js-work-col h5 {
  margin: 0;
}

.js-work-row__inner .js-work-col--type h5 {
  text-transform: none !important;
}

.js-work-link {
  text-decoration: underline;
  color: inherit;
}

/* THUMBNAIL */

.js-work-col--thumb {
  max-height: 70px;
  overflow: hidden;
}

.js-wi-thumb {
  width: auto;
  max-height: 70px;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 3px;
  flex-shrink: 0;
}

.js-wi-thumb img,
.js-wi-thumb video {
  width: auto !important;
  height: 100%;
  max-height: 70px;
  object-fit: unset;
  display: block;
  pointer-events: none;
}

/* FILTER BAR */

.js-wi-filter-bar {
  display: flex;
}

.js-wi-filter-select {
  font-family: "Helvetica Now Text", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.04em;
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: 1px solid #000;
  border-radius: 3px;
  padding: 8px 36px 8px 12px;
  cursor: pointer;
  color: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  outline: none;
}

.js-wi-filter-select:focus {
  border-color: #000;
}

/* LIGHTBOX */

#js-wi-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

#js-wi-lightbox.js-wi-lightbox--open {
  display: flex;
}

.js-wi-lightbox__inner {
  max-width: 70vw;
  max-height: 70vh;
  cursor: default;
  overflow: hidden;
}

.js-wi-lightbox__inner img,
.js-wi-lightbox__inner video {
  display: block;
  max-width: 70vw;
  max-height: 70vh;
  width: auto;
  border-radius: 3px;
  height: auto;
  object-fit: contain;
}

/* STATIC PREVIEW — tablet + mobile */

.js-wi-preview-static {
  display: none;
  width: 100%;
  overflow: hidden;
}

.js-wi-preview-static img,
.js-wi-preview-static video {
  width: auto;
  height: 100%;
  max-height: 70px;
  border-radius: 10px;
  object-fit: unset;
  display: block;
}

/* TABLET */

@media (min-width: 768px) and (max-width: 1024px) {
  .js-wi-preview-static {
    display: none;
  }
}

/* MOBILE */

@media (max-width: 767px) {

  .js-wi-lightbox__inner {
    max-width: 80vw;
    max-height: 80vh;
  }

  .js-wi-lightbox__inner img,
  .js-wi-lightbox__inner video {
    max-width: 80vw;
    max-height: 80vh;
  }

  .js-wi-preview-static {
    display: block;
  }

  .js-work-header {
    display: none;
  }

  .js-work-row__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0;
  }

  .js-work-col--thumb {
    display: none;
  }

  .js-work-col {
    width: 100%;
    padding: 5px 0 0 0;
  }

  .js-work-col+.js-work-col {
    border-top: none;
  }

  .js-wi-preview-static {
    border-top: none;
    border-bottom: none;
    margin-top: 0;
    padding: 10px 0;
  }

  .js-work-row {
    display: grid;
    gap: 15px;
    grid-template-columns: 2fr 1fr;
  }
}