.modal {
  animation: fade-in 0.8s;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
  transition: visibility 1s, opacity 1s;
}

.modal_overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal_content {
  position: relative;
  top: 0;
  width: 50%;
  height: 50%;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  background-color: white;
  align-items: center;
  display: grid;
  grid-template:
    "img img name" 120px
    "img img place" 30px
    "img img explain" auto / auto;
}

.hidden {
  display: none;
  opacity: 0;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.modal_content > img {
  grid-area: img;
  position: relative;
  width: 300px;
  height: 280px;
  justify-self: center;
  align-self: center;
  border-radius: 10px;
}
.modal_content > h1 {
  grid-area: name;
  justify-self: self-start;
  align-self: flex-end;
  margin: 0px;
}

.modal_place {
  grid-area: place;
  justify-self: self-start;
  align-self: center;
  font-size: 12px;
}

.modal_explain {
  grid-area: explain;
  justify-self: self-start;
  align-self: flex-start;
  font-size: 14px;
}

.review {
  all: unset;

  grid-area: explain;
  justify-self: self-end;
  align-self: flex-end;
  margin-right: 10px;
  margin-bottom: 10px;

  width: 40%;
  height: 30px;

  cursor: pointer;
  color: white;
  background-color: #0984e3;

  font-size: 12px;
  text-align: center;

  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  transition: background-color 0.3s;
}

.review:hover {
  background-color: rgb(49, 104, 150);
}
