.hero {
  --hero-icon-size: clamp(62px, 6.5vw, 90px);
  width: 100%;
  height: auto;
  position: relative;
}

/* Top Black Box */
.display-box {
  box-sizing: border-box;
  width: 82%;
  height: auto;
  aspect-ratio: 1580 / 600;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position:absolute;
  left:15px;
  right:0;
  z-index: 1;
  top: 45px;
  background-color: #171717;
  border: 2px solid #40bfff;
  border-radius: 12px;
  box-shadow:
    0 0 8px rgba(64, 191, 255, 0.9),
    0 0 24px rgba(0, 132, 255, 0.55),
    inset 0 0 10px rgba(64, 191, 255, 0.25);
  overflow: hidden;
}

.display-box img,
.display-box video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;

  opacity: 1;
  transition: opacity 400ms ease;

  border-radius: inherit;
}

.display-box img {
  object-fit: contain;
}

.display-box video {
  object-fit: cover;
  object-position: center top;
}

.display-box.is-title-intro video,
.display-box video.is-title-media {
  object-position: center center;
}

.display-box .large-preview.is-incoming,
.display-box .large-preview.is-outgoing {
  opacity: 0;
  pointer-events: none;
}

.display-box.is-clickable {
  cursor: pointer;
}

.display-box.is-clickable:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.scene {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  perspective: 1200px;
}

/* Projector */
.projector-wrapper {
  position: relative;
  width: min(100%, 1300px);
}

.projector-wrapper--video {
  margin-top: 160px;
}

.projector-wrapper.is-content-fitted {
  height: var(--projector-content-height);
  overflow: hidden;
}

.projector-wrapper--video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse closest-side at center,
    transparent 55%,
    rgba(0, 0, 0, 0.45) 78%,
    var(--surface-page) 100%
  );
  pointer-events: none;
}

.projector-wrapper--video.is-content-fitted::after {
  inset: 0 0 auto;
  height: var(--projector-full-height);
}

.projector {
  width: 100%;
  height: auto;
  display: block;
  filter: blur(clamp(0.4px, 0.12vw, 0.6px));
}

.carousel {
  position: absolute;
  left: 50%;
  top: 39%;
  width: 90%;
  height: 42%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

/* Thumbnails */
.hero[data-hero-icons] button.item {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 50%;
  left: 50%;
  box-sizing: border-box;
  width: var(--hero-icon-size);
  height: var(--hero-icon-size);
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.1),
    rgba(204, 204, 204, 0.82)
  );
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: normal;
  cursor: pointer;
  pointer-events: auto;
  transform-origin: center;
  will-change: transform, opacity;
  color: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.hero[data-hero-icons] button.item.is-active {
  border-color: rgba(64, 191, 255, 0.95);
  box-shadow:
    0 0 0 2px rgba(64, 191, 255, 0.72),
    0 0 14px rgba(64, 191, 255, 0.9);
}

.hero[data-hero-icons] button.item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero[data-hero-icons] .item .thumb {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}

.hero[data-hero-icons] .item span {
  position: absolute;
  top: calc(100% + clamp(4px, 0.5vw, 8px));
  bottom: auto;
  left: 50%;
  width: max(80px, 140%);
  transform: translateX(-50%);
  color: #fff;
  font-weight: 500;
  font-size: clamp(12px, 1.5vw, 15px);
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  text-shadow: 0 1px 4px #000, 0 1px 8px #000;
  pointer-events: none;
}

@media (max-width: 767px) {
  .hero {
    --hero-icon-size: clamp(48px, 14vw, 62px);
  }

  .display-box {
    top: 30px;
  }

  .projector-wrapper--video {
    margin-top: 120px;
  }

  .hero[data-hero-icons] .carousel {
    top: 18%;
    width: 98%;
    height: 48%;
  }

}

@media (max-width: 767px) and (orientation: landscape) {
  /* Let the hero establish its content height instead of clipping it to the viewport. */
  #home-section {
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .display-box img,
  .display-box video,
  .hero[data-hero-icons] button.item {
    transition: none;
  }
}
