.modal {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal-window-container {
  flex: 0 0 auto;
  width: 50%;
  height: auto;
  display: flex;
  padding: 0px;
  position: relative;
  flex-wrap: wrap;
  margin-top: 0px;
  min-height: auto;
  align-items: center;
  margin-bottom: 0px;
  flex-direction: row;
  justify-content: space-between;
}

.modal-window-inner {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 600px;
  display: flex;
  padding: 40px;
  align-items: center;
  border-radius: 30px;
  flex-direction: column;
  justify-content: center;
  background-color: var(--dl-color-theme-accent2);
}

.modal-window-image {
  width: 100px;
  object-fit: cover;
  margin-bottom: 20px;
}

.modal.hidden {
  display: none;
}

.modal:not(.hidden) {
  display: flex;
}

.close-icon {
  cursor: pointer;
  font-size: 45px;
  position: absolute;
  top: 10px;
  right: 30px;
}

@media(max-width: 767px) {
  .modal-window-container {
    width: 80%;
  }
}
@media(max-width: 479px) {
  .visible {
    padding: 1rem;
  }
  .modal-window-container {
    width: 100%;
    height: auto;
    flex-direction: column;
  }
  .modal-window-inner {
    margin-right: 0px;
    margin-bottom: 20px;
  }
}
