.bbd-mai-home-hero__wrapper {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, auto);
  grid-column-gap: 24px;
  grid-row-gap: 16px;
  height: 100%;

  slideshow-slide {
    height: 100%;
  }

  @media screen and (min-width: 1220px) {
    grid-template-rows: repeat(2, 1fr);
    grid-row-gap: 24px;
  }
}

.bbd-mai-home-hero__info {
  grid-area: 1 / 1 / 2 / 13;
  background: var(--color-background);
  padding: var(--padding-2xl);

  @media screen and (min-width: 1220px) {
    grid-area: 1 / 1 / 3 / 6;
    padding: var(--padding-6xl) var(--padding-7xl);
  }

  .button {
    background: var(--button-background-color);
    color: var(--color-primary-button-text);
    border: 1px solid var(--button-background-color);
  }
}

.bbd-mai-home-hero__slider {
  grid-area: 2 / 1 / 3 / 13;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--spacing);

  @media screen and (min-width: 1220px) {
    grid-area: 1 / 6 / 3 / 13;
  }

  .slide__image-container {
    position: static;
    aspect-ratio: 37 / 18;

    @media screen and (min-width: 1220px) {
      max-height: 100%;
      aspect-ratio: unset;
      flex-grow: 2;
      min-height: calc(100% - 84px);
    }
  }

  slideshow-slide {
    display: grid;
    grid-template-rows: auto 40px;
    row-gap: 16px;

    @media screen and (min-width: 1220px) {
      grid-template-rows: auto 80px;
      row-gap: 24px;
    }

    .slide__content .button {
      height: 44px;
      border-radius: 0 !important;

      @media screen and (min-width: 1220px) {
        height: 80px;
      }
    }
  }
}

.bbd-mai-home-hero {
  .slideshow-toolbar {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding-top: 16px;

    @media screen and (min-width: 1220px) {
      padding-top: 0;
    }
  }

  slideshow-controls[pagination-position='center'] {
    max-width: 280px;
    align-self: flex-end;
  }

  slideshow-component {
    padding-bottom: 16px;
    height: 100%;

    @media screen and (min-width: 1220px) {
      padding-bottom: 0;
    }

    slideshow-arrows {
      position: absolute;
      top: auto;
      right: 0;
      bottom: 12px;
      left: auto;
      display: flex;
      padding-right: 0;

      button {
        background: var(--color-background);
      }
    }

    .slideshow-controls__counter {
      border-radius: 4px;
      background: rgba(from var(--color-border) r g b / 50%);
      color: var(--color-caption);
      width: 44px;
      height: 44px;
      margin-left: 0;
      margin-bottom: 12px;

      @media screen and (max-width: 1219px) {
        display: none;
      }

      .slash {
        color: var(--color-caption);
        padding: 0;
      }
    }
  }
}
