.aside {
  margin: 0;
  background-color: var(--font-color-black);
  padding: var(--space-s) var(--space-l);
  transform: translate(calc(100% * 1.5), 0);
  transition:
    transform 0.75s ease,
    display 0.75s allow-discrete,
    overlay 0.75s allow-discrete;
}

.aside:modal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: 100%;

  max-width: 100dvw;
  max-height: 100dvh;

  gap: var(--space-m);

  overflow-y: scroll;

  position: fixed;
  top: 0;
  right: 0;
  transform: translate(0, 0);

  @media (min-width: 1440px) {
    transform: translate(46%, 0);
    width: 70%;
    right: 0;
    max-width: calc(100% - 2em - 6px);
    max-height: 100dvh;
    padding: var(--font-size-display-l) var(--space-xxxl);
    gap: var(--space-l);
  }
}

@starting-style {
  .aside:modal {
    transform: translate(calc(100% * 1.5), 0);
  }
}

.aside__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

.aside__text {
  color: var(--font-color-brand);
  font-family: Mulish;
  font-size: var(--font-size-copy-s);
  font-style: normal;
  font-weight: var(--font-weight-regular);
  line-height: var(--font-line-height-copy-m);
  margin: 0;
}

.aside__title {
  color: var(--font-color-brand);
  font-family: var(--font-heading);
  font-size: var(--font-line-height-display-xl);
  font-style: normal;
  font-weight: var(--font-weight-regular);
  line-height: normal;
  margin: 0;
}

.aside__img {
  width: 100%;
  flex-shrink: 0;
  align-self: stretch;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.aside__video {
  width: 100%;
  flex-shrink: 0;
  align-self: stretch;
  aspect-ratio: 16/9;
}
