/* =========================================================
   HERO SVG DASHBOARD
   ========================================================= */

.hero__dashboard {
  width: min(100%, 750px);
  justify-self: end;
  margin-top: 2rem;
}

.hero__dashboard .hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Code window wrapper for the SVG */
.hero__dashboard .code-window {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Top browser / code bar */
.hero__dashboard .code-window__bar {
  display: none;
  /* Hide the bar since SVG already has its own header */
}

/* The SVG fills the window */
.hero__dashboard .code-window .hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero__dashboard {
    width: min(100%, 590px);
  }
}

@media (max-width: 900px) {
  .hero__dashboard {
    width: 100%;
    max-width: 680px;
    justify-self: center;
    margin-top: var(--space-xl);
  }
}

@media (max-width: 650px) {
  .hero {
    padding-top: calc(var(--header-h) + 1rem);
    padding-bottom: 2rem;
  }

  .hero__dashboard {
    margin-top: 3rem;
    max-height: 80vh;
    overflow: hidden;
  }

  .hero__dashboard .code-window {
    max-height: 75vh;
  }
}

@media (max-width: 430px) {
  .hero__dashboard {
    max-height: 78vh;
  }

  .hero__dashboard .code-window {
    max-height: 72vh;
    border-radius: var(--radius-md);
  }

  .hero__dashboard .hero-img {
    border-radius: var(--radius-md);
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero__dashboard .hero-img,
  .hero__dashboard .code-window {
    transition: none;
    transform: none;
  }
}