.sds-hero {
  --header-height: 115px;
  max-width: 1920px;
  position: relative;
  z-index: 1;
  padding: 0 !important;
  overflow: hidden;
 
  height: min(
    calc(100svh - var(--header-height)),
    1080px
  );
}

.sds-hero-background {
  height: 550px;
  margin-top: -550px;
  background-color: var(--sds-light-grey);
  z-index: 0; /* behind content */
  width: 100%;
  position: absolute;
  bottom: 0;
}

.sds-hero h1,
.sds-hero h2 {
  font-size: 3.25rem;
  font-weight: 800;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 15px;
  color: var(--white);
  text-shadow: 2px 2px 2px rgba(28, 28, 28, .5);
  padding: 0 15px;
}

.sds-hero p {
  font-size: 24px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 45px;
  color: var(--white);
  text-shadow: 2px 2px 2px rgba(28, 28, 28, .5);
  padding: 0 15px;
}

.sds-hero a.btn-primary {
  font-weight: 600 !important;
  display: block;
  margin: 45px auto 0 !important;
  width: fit-content;
  position: relative;
  z-index: 2;
  backface-visibility: hidden;
  mix-blend-mode: normal;
  contain: paint;
}

.sds-hero a.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #cc0000;
  z-index: -1;
}

.sds-hero .animation-container {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.sds-hero .media-wrapper {
  position: relative;

  width: 100%;
  height: min(
    calc(100svh - var(--header-height)),
    1080px
  );

  max-width: 1920px;

  overflow: hidden;

  margin: 0 auto;
  pointer-events: none;
  will-change: width;
  contain: paint;
}


.sds-hero .media-controls {
  width: 32px;

  --button-position: 40px;

  position: absolute;

  right: var(--button-position);
  bottom: var(--button-position);

  z-index: 3;

  pointer-events: auto;
}

.sds-hero .media-controls > div > img {
  height: 32px !important;
  width: 32px !important;
  opacity: .35;
}

.sds-hero .media-controls > div.play-btn,
.sds-hero .media-controls > div.pause-btn {
  cursor: pointer;
}

.sds-hero .media-controls > div.play-btn {
  display: none;
}


.sds-hero .animation-container img,
.sds-hero .animation-container video {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;
}

.sds-hero video {
  transform: translateZ(0);
}

.sds-hero .container {

  position: absolute;
  inset: 0;

  z-index: 2;
}

.sds-hero .container .row {
  height: 100%;
}

.sds-hero .container .row .col-12 {

    position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  width: 100%;

  padding: 0 45px;

  text-align: center;
}

@media (max-width: 991px) {
  .sds-hero h1,
  .sds-hero h2 {
    font-size: 2.5rem;
  }
  
  .sds-hero p.preamble {
    font-size: 18px;
    max-width: 550px;
  }
}

@media (max-width: 768px) {
  
  .sds-hero {
    --header-height: 75px;
  }

  .sds-hero .media-wrapper {
    height: calc(100svh - var(--header-height));
  }
  
  
  .sds-hero h1,
  .sds-hero h2 {
    font-size: 2rem;
  }
  
  .sds-hero p {
    font-size: 1.125rem;
  }
  
  .sds-hero .animation-container video,
  .sds-hero .animation-container img {
    object-position: center top;
  }
  
  
}

@media (max-width: 480px) {
  .sds-hero {
    padding-bottom: 0;
  }
  
  .sds-hero .container .col-12 {
    padding: 0 15px !important;
  }
  
  .sds-hero .media-controls {
        --button-position: 15px;
  }
}