#open_dialog {
  margin: 0 auto;
}

.newsletterpopup__container {
  background: transparent;
  border: none;
  overflow: visible
}

.newsletterpopup {
  position: relative;
  width: 500px;
  max-width: 100%;
  background-color: var(--color-white);
  overflow: hidden;
  padding: 0;
  margin: 0 auto;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 0 #0000, 0 0 #0000, 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.newsletterpopup__body {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  padding: 0.5rem;
  gap: 0.5rem;
  width: 100%;
}

.newsletterpopup__figure {
  display: none;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  margin: 0;
}
.newsletterpopup__image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
}

.newsletterpopup__titleblock {
  padding: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletterpopup__close-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}
.newsletterpopup__close-container button {
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--color-dark);
  color: var(--color-light);
  display: block;
  outline: none;
  border: none;
  border-radius: 100%;
  padding: 0;
  margin: 0;
  position: relative;
}
.newsletterpopup__close-container svg {
  width: 80%;
  height: 80%;
  color: var(--color-light);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.newsletterpopup__title {
  font-family: 'Neue Bit', sans-serif;
  color: var(--color-text);
  font-size: 3rem;
  font-weight: bold;
  line-height: 0.75em;
  text-align: center;
}

.newsletterpopup__description {
  color: var(--color-gray-dark);
  font-size: 1rem;
  max-width: 20ch;
  text-align: center;
  margin: 0 auto;
}

.newsletterpopup__button {
  border-top: 1px solid var(--color-gray);
}

@media screen and (min-width: 450px) {
  .newsletterpopup__body {
    grid-template-columns: 2fr 3fr;
  }
  .newsletterpopup__figure {
    padding-bottom: 0;
    display: block;
    height: 100%;
  }

  .newsletterpopup__titleblock {
    padding: 0 0 1rem 1rem;
  }

  .newsletterpopup__title {
    text-align: unset;
  }
  .newsletterpopup__description {
    text-align: unset;
    margin: 0;
  }
}