.gd-special-hero {
  position: relative;
  container: gd-special-hero__desktop / inline-size;
  margin-top: var(--gd-special-hero-margin-top);
  margin-bottom: var(--gd-special-hero-margin-bottom);
}

.gd-special-hero__overlay-bg {
  container: gd-special-hero / inline-size;
}

.gd-special-hero__link {
  text-decoration: none;
}

.gd-special-hero__content {
  margin-top: 20px;
  background-color: var(--gd-special-hero-mobile-bg-color);
  padding: var(--gd-special-hero-mobile-padding);
  text-align: var(--gd-special-hero-text-align);
  border-radius: 4px;
}

.gd-special-hero__bg-color {
  background-color: var(--gd-special-hero-bg-color);
  height: var(--gd-special-hero-height);
}

.gd-special-hero__image {
  width: 100%;
  height: 100%;
  object-fit: var(--gd-special-hero-img-fit, cover);
}

.gd-special-hero__image--s {
  height: 580px;
}

.gd-special-hero__image--m {
  height: 870px;
}

.gd-special-hero__image--l {
  height: 1160px;
}

.gd-special-hero__content *:last-child {
  margin-bottom: 0;
}

@container gd-special-hero__desktop (min-width: 60rem) {
  .gd-special-hero__bg-image::before, 
  .gd-special-hero__bg-color::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, var(--gd-special-hero-desktop-overlay-opacity));
  }

  .gd-special-hero__content {
    position: absolute;
    z-index: 1;
    margin-top: 0;
    width: var(--gd-special-hero-desktop-container-width);
    background-color: var(--gd-special-hero-desktop-bg-color);
    padding: var(--gd-special-hero-desktop-padding);
  }

  .gd-special-hero__content--center-left {
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
  }

  .gd-special-hero__content--center {
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
  }

  .gd-special-hero__content--center-right {
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
  }
}

@container gd-special-hero (min-width: 0) {
  .gd-special-hero__bg-image::before,
  .gd-special-hero__bg-color::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, var(--gd-special-hero-desktop-overlay-opacity));
  }

  .gd-special-hero__content {
    position: absolute;
    z-index: 1;
    margin-top: 0;
    width: var(--gd-special-hero-desktop-container-width);
    background-color: var(--gd-special-hero-desktop-bg-color);
    padding: var(--gd-special-hero-mobile-padding);
  }

  .gd-special-hero__content--center-left {
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
  }

  .gd-special-hero__content--center {
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
  }

  .gd-special-hero__content--center-right {
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
  }
}

@container gd-special-hero (min-width: 60rem) {
  .gd-special-hero__content {
    padding: var(--gd-special-hero-desktop-padding);
  }
}


/* Customizations for boss */
@media screen and (max-width: 59.99em) {
  .gd-special-hero__image--s {
    max-height: 300px;
  }
  .gd-special-hero__image--m {
    max-height: 450px;
  }

  .gd-special-hero__content {
    width: 90%;
  }
}
