/* Nora Aria final delivery guards */
video.nora-autoplay-video,
video[autoplay] {
  pointer-events: none;
}

video.nora-autoplay-video::-webkit-media-controls,
video.nora-autoplay-video::-webkit-media-controls-enclosure,
video.nora-autoplay-video::-webkit-media-controls-panel,
video.nora-autoplay-video::-webkit-media-controls-play-button,
video.nora-autoplay-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
}

.type-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  grid-template-rows: minmax(112px, 18vh) minmax(0, 1fr) minmax(116px, 18vh);
  justify-items: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.type-gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.type-gallery-lightbox__stage {
  grid-row: 2;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0 24px;
}

.type-gallery-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 48px);
  max-height: min(56vh, 680px);
  object-fit: contain;
  touch-action: pinch-zoom pan-x pan-y;
  user-select: none;
  -webkit-user-drag: none;
}

.type-gallery-lightbox__close,
.type-gallery-lightbox__nav {
  width: 50px;
  height: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  position: relative;
  transition: border-color 260ms ease, color 260ms ease, background-color 260ms ease;
}

.type-gallery-lightbox__close {
  grid-row: 1;
  align-self: end;
}

.type-gallery-lightbox__navs {
  grid-row: 3;
  align-self: start;
  display: flex;
  gap: 54px;
}

.type-gallery-lightbox__close:hover,
.type-gallery-lightbox__nav:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.type-gallery-lightbox__close::before,
.type-gallery-lightbox__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 21px;
  height: 1.5px;
  background: currentColor;
  transform-origin: center;
}

.type-gallery-lightbox__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.type-gallery-lightbox__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.type-gallery-lightbox__nav::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 17px;
  height: 17px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.type-gallery-lightbox__nav--prev::before {
  left: 54%;
  transform: translate(-50%, -50%) rotate(-135deg);
}

.type-gallery-lightbox__nav--next::before {
  left: 46%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.meters-panel-motion {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 1120ms cubic-bezier(0.22, 0.84, 0.24, 1), opacity 780ms ease, transform 900ms cubic-bezier(0.22, 0.84, 0.24, 1);
  will-change: max-height, opacity, transform;
}

.meters-panel-motion.is-open {
  opacity: 1;
  transform: translateY(0);
}

.meters-panel-motion.is-closing {
  opacity: 0;
  transform: translateY(-8px);
}

.type-copy .meters {
  margin-bottom: -5px;
}

.typology-sequence .plan-site {
  margin-top: clamp(30px, 6vw, 52px);
  transition: margin-top 900ms cubic-bezier(0.22, 0.84, 0.24, 1);
}

@media (min-width: 1180px) {
  .typology-block h2 {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    text-align: right;
  }

  .typology-block nav {
    grid-column: 2;
    grid-row: 1;
  }

  .typology-block h3 {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    text-align: left;
  }

  .typology-block .type-meta {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: clamp(13px, 1.04vw, 20px);
    margin: clamp(46px, 4.16vw, 80px) 0 0;
    color: var(--green);
    font-size: clamp(13px, 0.83vw, 16px);
    line-height: 1.2;
  }

  .typology-block .type-meta strong {
    font-weight: 700;
  }

  .typology-block .type-meta__divider {
    display: block;
    width: clamp(20px, 1.4vw, 27px);
    height: 1px;
    background: currentColor;
  }

  .typology-block .type-layout {
    grid-row: 3;
    margin-top: clamp(32px, 2.08vw, 40px);
  }
}

@media (max-width: 767px) {
  .type-gallery-lightbox {
    grid-template-rows: 150px minmax(0, 1fr) 142px;
  }

  .type-gallery-lightbox__image {
    max-width: calc(100vw - 34px);
    max-height: min(48vh, 520px);
  }

  .type-gallery-lightbox__close,
  .type-gallery-lightbox__nav {
    width: 44px;
    height: 44px;
  }

  .type-gallery-lightbox__navs {
    gap: 42px;
  }

  .type-copy .meters {
    padding-bottom: 11px !important;
    margin-bottom: -5px !important;
  }

  .typology-sequence .plan-site {
    margin-top: 24px !important;
  }
}
