.modal {
  background-color: rgba(0, 0, 0, 0.75);
  position: fixed;
  width: 100vw;
  height: 100vh;
  /* padding: 40px; */
  margin: 0px;
  overflow-y: scroll;
  transition: opacity 0.4s;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

@media (width < 600px) {
  .modal {
    /* padding: 5vw !important; */
  }
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal.active .window {
  top: 0px;
}

.modal .window {
  width: 50vw;
  background-color: #EDEDED;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 40px auto;
  max-width: 1000px;
  position: relative;
  padding: 20px;
  top: -20px;
  transition: top 0.4s;
}

.modal .head {
  display: grid;
  grid-template-columns: 1fr 30px;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.modal .head .title {
  font-size: 24px;
}

.modal .close {
  background-color: var(--rojo);
  border-radius: 100px;
  width: 30px;
  aspect-ratio: 1;
  cursor: pointer;
  display: grid;
  align-items: center;
  justify-items: center;
  position: relative;
  color: white;
}

.modal .close::after {
  content: 'X';
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  line-height: 20px;
  position: absolute;
  z-index: 1;
}

.modal .close:hover {
  color: white;
  background-color: red;
}

.image-autowidth {
  width: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: var(--shadow);
}


.modal .full {
  width: calc(100vw - 120px);
  margin: 40px auto;
  max-width: 820px;
}


@media (width < 600px) {
  .modal .full {
    width: calc(100vw - 40px);
    margin: 0px;
  }
}
