.imageList {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0 40px;
  margin: 50px 0px;
}
.imageList li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  width: 100%;
  cursor: pointer;
  padding-bottom: 50px;
}
.imageList li > div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
}
.imageList li > div > img {
  width: 100%;
  position: relative;
  z-index: -1;
}
.imageList li > div h2 {
  font-size: 16px;
  line-height: 40px;
}
.imageList li > div:nth-child(1) h2 {
  width: 100%;
  text-align: center;
  background-color: #f5f5f5;
}
.imageList li > div:nth-child(2) {
  -webkit-box-shadow: 0 0 0 3px #48c8d8 inset;
          box-shadow: 0 0 0 3px #48c8d8 inset;
}
.imageList li > div:nth-child(2) h2 {
  width: 100%;
  text-align: center;
  color: #fff;
  background-color: #48c8d8;
}
.imageList li .arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}
.imageList li > p {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
  text-align: center;
}

.boxs {
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  z-index: 10;
  width: 100%;
  height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.boxs .bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.popup {
  display: grid;
  width: 95%;
  max-height: 90vh;
  max-width: 1000px;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  overflow-y: scroll;
  background-color: #fff;
  z-index: 2;
  padding: 50px 30px 30px 30px;
  position: relative;
}
.popup > div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
}
.popup > div > img {
  width: 100%;
  position: relative;
  z-index: -1;
}
.popup > div h2 {
  font-size: 16px;
  line-height: 40px;
}
.popup > div:nth-child(1) h2, .popup > div:nth-child(3) h2, .popup > div:nth-child(5) h2, .popup > div:nth-child(7) h2 {
  width: 100%;
  text-align: center;
  background-color: #f5f5f5;
}
.popup > div:nth-child(2), .popup > div:nth-child(4), .popup > div:nth-child(6), .popup > div:nth-child(8) {
  -webkit-box-shadow: 0 0 0 3px #48c8d8 inset;
          box-shadow: 0 0 0 3px #48c8d8 inset;
}
.popup > div:nth-child(2) h2, .popup > div:nth-child(4) h2, .popup > div:nth-child(6) h2, .popup > div:nth-child(8) h2 {
  width: 100%;
  text-align: center;
  color: #fff;
  background-color: #48c8d8;
}
.popup .close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}
.popup .close i {
  font-size: 24px;
}

.popup.big {
  max-width: 1300px;
}

@media (max-width: 700px) {
  .imageList {
    grid-template-columns: 1fr;
  }
  .popup {
    padding: 50px 15px 15px 15px;
    grid-template-columns: 1fr;
    max-height: 80vh;
  }
  .arrow {
    width: 30px;
  }
}