/* Project Viewer V2 */

.project-story-hero {
  background: none !important;
}

.project-hero-bg,
.project-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-hero-bg {
  background: linear-gradient(90deg,rgba(0,0,0,.58),rgba(0,0,0,.18) 48%,rgba(0,0,0,.08)),
              linear-gradient(0deg,rgba(0,0,0,.62),transparent 50%),
              var(--hero);
  background-size: cover;
  background-position: center;
}

.project-hero-video {
  object-fit: cover;
  filter: brightness(.86) contrast(1.04);
}

.has-video-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(0,0,0,.56),rgba(0,0,0,.16) 48%,rgba(0,0,0,.08)),
              linear-gradient(0deg,rgba(0,0,0,.62),transparent 50%);
  pointer-events: none;
}

.project-story-title {
  position: relative;
  z-index: 3;
}

.story-feature-media {
  min-height: 520px;
  border: 1px solid var(--line);
  background: #020303;
  overflow: hidden;
  cursor: pointer;
}

.story-feature-media img,
.story-feature-media video {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  filter: brightness(.9) contrast(1.06);
}

.media-gallery-grid figure {
  cursor: pointer;
}

.media-gallery-grid figure img,
.media-gallery-grid figure video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.86) contrast(1.04) saturate(.96);
  transition: .55s ease;
}

.media-gallery-grid figure:hover img,
.media-gallery-grid figure:hover video {
  transform: scale(1.045);
  filter: brightness(1) contrast(1.04) saturate(1.05);
}

.project-final {
  position: relative;
  overflow: hidden;
  background: none !important;
}

.project-final-bg,
.project-final-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-final-bg {
  background: linear-gradient(0deg,rgba(0,0,0,.62),rgba(0,0,0,.16)), var(--final);
  background-size: cover;
  background-position: center;
}

.project-final-video {
  object-fit: cover;
  filter: brightness(.74) contrast(1.05);
}

.project-final::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,rgba(0,0,0,.62),rgba(0,0,0,.12));
  pointer-events: none;
}

.project-final p {
  position: relative;
  z-index: 2;
}

.media-viewer {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.94);
  padding: clamp(18px, 4vw, 58px);
}

.media-viewer.is-open {
  display: flex;
}

.media-viewer-stage {
  width: min(1180px, 100%);
  height: min(760px, 82vh);
  display: grid;
  place-items: center;
}

.media-viewer-stage img,
.media-viewer-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.media-viewer-close,
.media-viewer-nav {
  position: absolute;
  z-index: 1000;
  border: 1px solid rgba(104,201,190,.36);
  background: rgba(0,0,0,.55);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}

.media-viewer-close {
  right: 24px;
  top: 24px;
  padding: 11px 15px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
}

.media-viewer-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 28px;
}

.media-viewer-prev { left: 24px; }
.media-viewer-next { right: 24px; }

@media(max-width:700px) {
  .media-viewer-nav {
    top: auto;
    bottom: 24px;
    transform: none;
  }
}
